-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCCC2001.py
45 lines (42 loc) · 965 Bytes
/
CCC2001.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
def j3():
money=int(input())
one=int(input())
two=int(input())
three=int(input())
played=0
while money > 0:
if money>0:
money-=1
one+=1
if one==35:
one=0
money+=30
played+=1
if money>0:
money-=1
two+=1
if two==100:
two=0
money+=60
played += 1
if money>0:
money-=1
three+=1
if three==10:
three=0
money+=9
played += 1
return played
print(j3())
def j4():
start=int(input())
streams={}
for n in range(start):
streams[n]=(int(input()))
i=0
while i!=77:
i = int(input())
if i==99:
temp=int(input())
sp=int(input())//100
streams[temp]=streams[temp]*sp