tc = int(raw_input()) total = 0 while tc: tc -= 1 inp = int(raw_input()) if inp > 0: total += inp print total # end of source code
No comments:
Post a Comment