Skip to content

Commit

Permalink
Fixed Manasa and Stones
Browse files Browse the repository at this point in the history
  • Loading branch information
letitz committed Sep 27, 2014
1 parent 7818adc commit b635aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manasa_and_stones/manasa_and_stones.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
def print_possible_values(num_stones, a, b):
if num_stones <= 1:
print(0)
return
if a == b:
print((num_stones - 1) * a)
return
if a > b:
tmp = a
a = b
Expand Down

0 comments on commit b635aaa

Please sign in to comment.