ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
2100
. Wedding Dinner
Python Solution.
Posted by
Vladislav Ershov
19 Jul 2019 20:04
f = int(input())
friends = []
cnt = 0
for i in range(f):
j = str(input())
if j[-4:] == "+one":
cnt += 200
else:
cnt+= 100
if ((cnt/100)+2) == 13:
cnt += 300
else:
cnt += 200
print(cnt)
I solve it by this
© 2000–2024
Timus Online Judge Team
. All rights reserved.