Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
1florentin committed Dec 5, 2017
2 parents 5051976 + 878302f commit 061633a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2017/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

| | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | Y
|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| Java ||| | | | | | | | | | | | | | | | | | | | | | |
| C++ ||| | | | | | | | | | | | | | | | | | | | | | |
| Python ||| | | | | | | | | | | | | | | | | | | | | | |
| Java ||| | | | | | | | | | | | | | | | | | | | | | |
| C++ ||| | | | | | | | | | | | | | | | | | | | | | |
| Python ||| | | | | | | | | | | | | | | | | | | | | | |

✓ = completed
~ = failed to complete
Expand Down
1 change: 1 addition & 0 deletions 2017/problem_d/problem_d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ int main() {
if (snow_incr.find(current_line) == snow_incr.end())
return 1;
snow_height += snow_incr[current_line];
if(snow_height < 0) snow_height = 0;
std::cout << snow_height << std::endl;
}
return 1;
Expand Down
2 changes: 2 additions & 0 deletions 2017/problem_d/problem_d.py3 → 2017/problem_d/problem_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
if curr_line == "end":
break
snow_height += snow_incr[curr_line]
if snow_height < 0:
snow_height = 0
print(snow_height)

0 comments on commit 061633a

Please sign in to comment.