problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03105
u328755070
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = list(map(int, input().split()))\nans = min(C, A//B)\nprint(ans)\n', 'A, B, C = list(map(int, input().split()))\nans = min(C, B//A)\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s124289394', 's779321582']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p03105
u332366029
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['def main():\n A, B, C = input().split(" ")\n count = B // A\n return min(count, C)\n \nif __name__ == \'__main__\':\n main()', 'def main():\n A, B, C = map(int, input().split(" "))\n count = B // A\n return min(count, C)\n \nif __name__ == \'__main__\':\n main()', 'def main():\n A, B, C = map(int, input().split(" "))\n count = B // A\n print(min(count, C))\n \nif __name__ == \'__main__\':\n main()']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s019303784', 's789220042', 's803832741']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[121, 131, 131]
p03105
u338208364
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["s = input()\nlength=len(s)\nl = int(len(s)/2)\ndef erase_01_10(moji):\n moji = moji.replace('01','').replace('0011','').replace('000111','')\n moji = moji.replace('10','').replace('1100','').replace('111000','')\n return moji\nfor i in range(l):\n if s == erase_01_10(s):\n break\n s = erase_01_10(s)\nprint(length-len(s))\n", 'N = list(map(int,input().split()))\n#print(N)\nans = int(N[1]/N[0])\nprint(min(ans,N[2]))']
['Wrong Answer', 'Accepted']
['s508339143', 's659578420']
[3060.0, 2940.0]
[17.0, 17.0]
[320, 86]
p03105
u340010271
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A=int(input())\nB=int(input())\nC=int(input())\nwhile A<1 or A>100 or B<1 or B>100 or C<1 or C>100:\n\tA=int(input())\n B=int(input())\n C=int(input())\nD=B//A-C\nif D>0:\n print(C)\nelse:\n print(B//A)\n', 'A,B,K=map(int,input().split())\ni=1\nj=2\nif A%j==0 and B%j==0 and i<K:\n i+=1\n j+=1\nprint(j)', 'A=int(input())\nB=int(input())\nC=int(input())\nwhile A<1 or A>100 or B<1 or B>100 or C<1 or C>100:\n A=int(input()),B=int(put()),C=int(input())\nD=B//A-C\nif D>0:\n print(C)\nelse:\n print(B//A)', 'A=int(input()),B=int(put()),C=int(input())\nwhile A<1 or A>100 or B<1 or B>100 or C<1 or C>100:\n A=int(input()),B=int(put()),C=int(input())\nD=B//A-C\nif D>0:\n print(C)\nelse:\n print(B//A)', 'A=int(input())\nB=int(input())\nC=int(input())\nwhile A<1 or A>100 or B<1 or B>100 or C<1 or C>100:\n\tA=int(input())\n B=int(input())\n C=int(input())\nD=B//A-C\nif D>0:\n print(C)\nelse:\n print(B//A)', 'A=int(input())\nB=int(input())\nC=int(input())\nD=B//A-C\nif D>0:\n print(C)\nelse:\n print(B//A)', 'A,B,C=map(int,input().split())\nprint(min(C,B//A))']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s043685747', 's096774215', 's300277856', 's435052817', 's864925737', 's903533965', 's186661206']
[2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 20.0, 18.0, 17.0, 18.0]
[199, 91, 188, 186, 198, 92, 49]
p03105
u344959886
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C=map(int,input().split())\n\n\nmin(int(B/A),C)', 'A,B,C=map(int,input().split())\n\n\nprint(min(int(B/A),C))\n']
['Wrong Answer', 'Accepted']
['s891568572', 's554970950']
[2940.0, 2940.0]
[18.0, 18.0]
[48, 56]
p03105
u345483150
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c=map(int, input().split())\nif a-b*c>=0:\n print(c)\nelse:\n print(b//a)', 'a, b, c=map(int, input().split())\nif b-a*c>=0:\n print(c)\nelse:\n print(b//a)']
['Wrong Answer', 'Accepted']
['s751841616', 's717127257']
[2940.0, 2940.0]
[18.0, 18.0]
[77, 77]
p03105
u347452770
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['str = int(input()).split()\na = str[0]\nb = str[1]\nc = str[2]\n\nif b / a > c:\n\tprint(c)\n\nelse:\n\tprint(int(b / a))', 'str = input().split()\na = int(str[0])\nb = int(str[1])\nc = int(str[2])\n \nif b // a > c:\n\tprint(c)\nelse:\n\tprint(b // a)']
['Runtime Error', 'Accepted']
['s006760505', 's247814383']
[2940.0, 2940.0]
[17.0, 18.0]
[110, 117]
p03105
u347912669
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = list(map(int, input().split()))\ntotal_yen = a * c\nif total_yen <= b:\n print(total_yen)\nelse:\n print(b//a)', 'cost, amount, satisfaction = list(map(int, input().split()))\n\ntotal_yen = cost * satisfaction\n\n\nif total_yen <= amount:\n print(satisfaction)\nelse:\n print(amount // cost)']
['Wrong Answer', 'Accepted']
['s632203550', 's578814450']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 374]
p03105
u350697094
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\n\nif A>B:\n print(0)\nelif A*C>=B:\n print(int(C))\nelse:\n print(int(B/A))', 'A, B, C = map(int, input().split())\n\nif A>B:\n print(0)\nelif A*C<=B:\n print(int(C))\nelse:\n print(int(B/A))']
['Wrong Answer', 'Accepted']
['s561069267', 's311183548']
[3060.0, 2940.0]
[17.0, 17.0]
[108, 108]
p03105
u350880240
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = [int(i) for i in "1 2 3".split()]\nans = min(B//A, C)\nprint(ans)', 'A, B, C = [int(i) for i in "1 2 3".split()]\nans = min(B//A, C)\nprint(ans)', 'A, B, C = [int(i) for i in input().split()]\nans = min(B//A, C)\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s282042376', 's646205103', 's130077666']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 20.0]
[73, 73, 73]
p03105
u353797797
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['sn,bn=map(int,input().split(" "))\nfu=[int(sn*(sn-1)/2)]\ngr_si=[n for n in range(sn+1)]\nsiL_gr=[[n] for n in range(sn+1)]\nsiL_br=[]\nfor _ in range(bn):\n siL_br.append(list(map(int, input().split(" "))))\nsiL_br=siL_br[::-1]\n\nfor bri in range(bn-1):\n si1,si2=siL_br[bri]\n gr1 = gr_si[si1]\n gr2 = gr_si[si2]\n if gr1==gr2:\n fu.append(fu[bri])\n else:\n lengr1 = len(siL_gr[gr1])\n lengr2 = len(siL_gr[gr2])\n if lengr1<lengr2:\n gr1,gr2=gr2,gr1\n fu.append(fu[bri]-lengr1*lengr2)\n for si in siL_gr[gr2]:\n gr_si[si]=gr1\n siL_gr[gr1]+=siL_gr[gr2]\n\nprint(*fu[::-1],sep="\\n")\n', 'a,b,c=map(int,input().split(" "))\nif a*c<=b:\n print(c)\nelse:\n print(b//a)']
['Runtime Error', 'Accepted']
['s460111361', 's491745579']
[3064.0, 2940.0]
[18.0, 17.0]
[650, 79]
p03105
u357751375
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["b = input()\nif b == 'A':\n print('T')\nelif b == 'C':\n print('G')\nelif b == 'G':\n print('C')\nelse:\n print('A')", 'a,b,c = map(int,input().split())\ns = b // a\nif s > c:\n print(c)\nelse:\n print(s)']
['Wrong Answer', 'Accepted']
['s133069554', 's762675596']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 85]
p03105
u361826811
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['\n\nimport sys\nimport numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nA, B,C = map(int, readline().split())\nprint(max(B//A,C))\n', '\n\nimport sys\nimport numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nA, B,C = map(int, readline().split())\nprint(min(B//A,C))\n']
['Wrong Answer', 'Accepted']
['s422653024', 's000693050']
[12396.0, 17860.0]
[153.0, 258.0]
[274, 274]
p03105
u363407238
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['s = input()\nprint(2*min(s.count("0"),s.count("1")))', 'a,b,c=map(int,input().split())\nans=0\nwhile b >= a:\n if c == 0:\n break\n else:\n b = b-a\n c -= 1\n ans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s681791129', 's548678480']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 148]
p03105
u363610900
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\nprint(B//A if B//C <= C else C)\n', 'A, B, C = map(int, input().split())\nprint(C if A * C <= B else B // A)']
['Wrong Answer', 'Accepted']
['s917996940', 's401595758']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 70]
p03105
u364541509
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\nB // A = D\nif D >=C:\n print(C)\nelse:\n print(D)', 'A, B, C = map(int, input().split())\nD = B // A \nif D >=C:\n print(C)\nelse:\n print(D)']
['Runtime Error', 'Accepted']
['s616278734', 's732445549']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 85]
p03105
u366482170
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=map(int,input().split())\nprint(max(c,b//a))', 'a,b,c=map(int,input().split())\nprint(min(c,b//a))']
['Wrong Answer', 'Accepted']
['s959526724', 's732678891']
[2940.0, 2940.0]
[17.0, 18.0]
[49, 49]
p03105
u370661635
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['# -- coding: utf-8 --\n\na,b,k=map(int,input().split())\n\ncount = []\n\nfor ii in range(1, 101):\n if a % ii == 0 and b % ii == 0:\n count.append(ii)\n\nprint(count[-k])\n', '# -- coding: utf-8 --\na, b, c= map(int, input().split())\n\nmon_lim = int(b/a)\nif mon_lim < c:\n print(mon_lim)\nelse:\n print(c)\n']
['Runtime Error', 'Accepted']
['s952344653', 's850723755']
[2940.0, 2940.0]
[18.0, 17.0]
[171, 131]
p03105
u370721525
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input())\nif A*C <= B:\n print(C)\nelse:\n print(B//A)', 'A, B, C = map(int, input().split())\nif A*C <= B:\n print(C)\nelse:\n print(B//A)']
['Runtime Error', 'Accepted']
['s407276381', 's913979244']
[9092.0, 9092.0]
[26.0, 28.0]
[71, 79]
p03105
u371467115
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,k=map(int,input().split())\ncnt=0\nfor i in range(100,0,-1):\n if a%i==0 and b%i==0:\n cnt+=1\n if cnt==k:\n print(i)\n break\n', 'a,b,k=map(int,input().split())\ncnt=0\nfor i in range(1,101):\n if a%i==0 and b%i==0:\n cnt+=1\n if cnt==k:\n print(i)\n break\n', 'a,b,c=map(int,input().split())\nif b//a>c:\n print(c)\nelse:\n print(b//a)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s423330307', 's962782947', 's474218908']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[134, 131, 72]
p03105
u371921392
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = (int(i) for in input().split())\nsho=B//A\n\nif sho >= C :\n print(C)\nelse:\n print(sho)', 'A,B,C = (int(i) for i in input().split())\nsho=B//A\n\nif sho >= C :\n print(C)\nelse:\n print(sho)']
['Runtime Error', 'Accepted']
['s045256285', 's718822917']
[2940.0, 3064.0]
[17.0, 18.0]
[97, 99]
p03105
u373047809
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\nprint(max(b // a, c))', 'a, b, c = map(int, input().split())\nprint(min(b // a, c))']
['Wrong Answer', 'Accepted']
['s681227840', 's421760033']
[2940.0, 2940.0]
[17.0, 18.0]
[57, 57]
p03105
u376099073
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,K = map(int,input().split())\nP = []\nfor i in range(1,min(A,B)+1):\n if A%i==0 and B%i==0:\n P.append(i)\nprint(P[len(P)-K])', 'A,B,C = map(int,input().split())\nt=B//A \nif t>C:\n print(C)\nelse:\n print(t)\n']
['Runtime Error', 'Accepted']
['s742903790', 's729450769']
[3060.0, 2940.0]
[17.0, 17.0]
[134, 97]
p03105
u378299699
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int, input().split())\ncount = 0\nans = 0\nfor i in range(1,min(a,b) + 1):\n if a % i == 0 and b % i == 0:\n count += 1\n if count == c:\n ans = i\n break\nprint(ans)\n\n', 'a,b,c = map(int, input().split())\nprint(min(b // a,c))\n']
['Wrong Answer', 'Accepted']
['s759274162', 's196436038']
[2940.0, 2940.0]
[18.0, 18.0]
[198, 55]
p03105
u379692329
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = [int(x) for x in input().split()]\nprint(max(int(B/A), C))', 'A, B, C = [int(x) for x in input().split()]\nprint(min(int(B/A), C))']
['Wrong Answer', 'Accepted']
['s087452766', 's050371106']
[2940.0, 2940.0]
[18.0, 17.0]
[67, 67]
p03105
u381585104
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\nprint(min(b//a,a*c))', 'a,b,c = map(int,input().split())\nprint(min(b//a,c))']
['Wrong Answer', 'Accepted']
['s037031247', 's053291257']
[2940.0, 2940.0]
[20.0, 17.0]
[53, 51]
p03105
u385244248
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int,input().split())\nprint(min(C,A//B))', 'A,B,C = map(int,input().split())\nprint(min(C,B//A))']
['Wrong Answer', 'Accepted']
['s853023064', 's204180343']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 51]
p03105
u386819480
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = (int(_) for _ in input().split())\n\nprint(min(c, int(b/a))', "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(A: int, B: int, C: int):\n print(min(C, int(B/A)))\n return\n\n\n# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n C = int(next(tokens)) # type: int\n solve(A, B, C)\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Accepted']
['s400215227', 's045350779']
[2940.0, 3060.0]
[17.0, 19.0]
[65, 617]
p03105
u390694622
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=map(int,input().split())\nprint(max(c,b//a))', 'a,b,c=map(int,input().split())\nprint(min(c,b//a))']
['Wrong Answer', 'Accepted']
['s150204716', 's793726573']
[2940.0, 2940.0]
[18.0, 18.0]
[49, 49]
p03105
u392029857
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\nprint(b//a)', 'a,b,c = map(int, input().split())\nprint(min(b//a, c))']
['Wrong Answer', 'Accepted']
['s414436466', 's673835884']
[2940.0, 2940.0]
[18.0, 18.0]
[44, 53]
p03105
u393481615
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['cost, money, enogh = map(int, input().split())\n\ntimes = money // cost\nif(times > enough):\n print(enough)\nelse:\n print(times)\n', 'cost, money, enough = map(int, input().split())\n\ntimes = money // cost\nif(times > enough):\n print(enough)\nelse:\n print(times)\n']
['Runtime Error', 'Accepted']
['s342182773', 's490008260']
[2940.0, 2940.0]
[18.0, 18.0]
[131, 132]
p03105
u393512980
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\nprint(min(a // b, c))', 'a, b, c = map(int, input().split())\nprint(min(b // a, c))']
['Wrong Answer', 'Accepted']
['s987436956', 's694212831']
[2940.0, 2940.0]
[18.0, 19.0]
[57, 57]
p03105
u395894569
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int, input().split())\nprint(c) if a*c=<b else print(b//a)', 'a,b,c = map(int, input().split())\nprint(c) if a*c<=b else print(b//a)']
['Runtime Error', 'Accepted']
['s311155767', 's047590467']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 69]
p03105
u396391104
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\nprint(min(a//b, c))', 'a,b,c = map(int,input().split())\nprint(min(b//a, c))\n']
['Wrong Answer', 'Accepted']
['s594090619', 's919082347']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 53]
p03105
u396971285
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int, input().split())\n \na=int(a)\nb=int(b)\nc=int(c)\nx=int(x)\n\nx=b//a\n \nif x>=c:\n print(c)\nelse :\n print(x)\n', 'a=input()\nb=input()\nc=input()\n \na=int(a)\nb=int(b)\nc=int(c)\nx=int(x)\n\nx=b//a\n \nif x>=c:\n print(c)\nelse \n print(x)\n', 'a=input()\nb=input()\nc=input()\n \na=int(a)\nb=int(b)\nc=int(c)\nx=int(x)\n\nx=b//a\n \nif x>=c:\n print(c)\nelse :\n print(x)\n', 'a=input()\nb=input()\nc=input()\n \na=int(a)\nb=int(b)\nc=int(c)\nx=int(x)\n\nx=b//a\n \nif(x>=c)\nprint(c)\nelse \nprint(x)\n', 'a=input()\nb=input()\nc=input()\n \na=int(a)\nb=int(b)\nc=int(c)\nx=int(x)\n\nx=b//a:\n \nif x>=c:\n print(c)\nelse :\n print(x)\n', 'a=input()\nb=input()\nc=input()\n \n a=int(a)\n b=int(b)\n c=int(c)\n x=int(x)\n x=b//a\n \n if(x>=c)\n print(c)\n else \n print(x)\n', 'a=input()\n b=input()\n c=input()\n \n int(a)\n int(b)\n int(c)\n int(x)\n x=b//a\n \n if(x>=c)\n print(c)\n else \n print(x)', 'A, B, C=map(int, input().split())\n\n\n\n\nif A*C<=B:\n print(C)\nelse:\n if A*C>B:\n print(B//A)\n else:\n print("0")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s100123711', 's409574541', 's420318204', 's851171459', 's913016672', 's918944868', 's990495538', 's379308544']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[122, 117, 118, 113, 119, 138, 133, 219]
p03105
u398983698
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=map(int,input().split())\nx=int(b/a)\nif(x=<c):\n print(x)\nelse:\n print(c)\n', 'a,b,c=map(int,input().split())\nx=int(b/a)\nif x<=c:\n print(x)\nelse:\n print(c)']
['Runtime Error', 'Accepted']
['s596241895', 's183121661']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 78]
p03105
u399388436
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['S=input()\nprint(min(S.count("0"),S.count("1"))*2)\n', 'A,B,C=map(int,input().split())\n# print(f"{A},{B},{C}")\nif B-A*C>=0:\n print(C)\nelse:\n print(int(B/A))']
['Wrong Answer', 'Accepted']
['s131150594', 's204070367']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 106]
p03105
u400221789
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["S = input()\nA = S.count('0')\nB = S.count('1')\nprint(2*min(A,B))\n", 'a,b,c=map(int,input().split())\nif b/a < c:\n print(int(b/a))\nelse:\n print(c)']
['Wrong Answer', 'Accepted']
['s988071662', 's433469326']
[2940.0, 2940.0]
[17.0, 18.0]
[64, 77]
p03105
u404676457
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\ns = b // a\ng = a * c\nif a > g:\n print(c)\nelse:\n print(s)', 'a, b, c = map(int, input().split())\ns = b // a\ng = a * c\nif b > g:\n print(c)\nelse:\n print(s)']
['Wrong Answer', 'Accepted']
['s389059758', 's724359694']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 98]
p03105
u407535999
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['ABC=input().split()#2 11 4\nA=int(A);B=int(B);C=int(C)\ncount=0\nwhile A<=B:\n count+=1\n B=B-A\nif count<C:\n print(str(count))\nelse:\n print(str(C))', 'ABC=input().split()#2 11 4\nA=int(ABC[0]);B=int(ABC[1]);C=int(ABC[2])\ncount=0\nwhile A<=B:\n count+=1\n B=B-A\nif count<C:\n print(str(count))\nelse:\n print(str(C))\n']
['Runtime Error', 'Accepted']
['s379127090', 's897382327']
[3060.0, 2940.0]
[18.0, 18.0]
[154, 170]
p03105
u408791346
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\n\nprint(b//a)', 'a, b, c = map(int, input().split())\n\nif b//a >= c:\n print(c)\nelse:\n print(b//a)']
['Wrong Answer', 'Accepted']
['s954436240', 's737392627']
[2940.0, 2940.0]
[20.0, 17.0]
[48, 85]
p03105
u411544692
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\n\nmin(int(B/A), C)', 'A, B, C = map(int, input().split())\n\nprint(min(int(B/A), C))']
['Wrong Answer', 'Accepted']
['s332416302', 's196374814']
[2940.0, 3064.0]
[17.0, 17.0]
[53, 60]
p03105
u423585790
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['#A\na, b, c = map(int, input().split())\nprint(min(a//b, c))', '#A\n\na, b, c = map(int, input().split())\nprint(min(b//a, c))\n\n#B\n"""\na, b, k = map(int, input().split())\nfor i in range(1,max(a, b)+1):\n if a % i == 0 and b % i == 0:\n k -= 1\n if k == 0:\n print(i)\n"""']
['Wrong Answer', 'Accepted']
['s433072784', 's711329956']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 228]
p03105
u425019904
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['class Union_find(object):\n def __init__(self, N):\n \n self.parent = [-1]*(N)\n \n def root(self, A):\n if self.parent[A] < 0:\n return A\n else:\n \n self.parent[A] = self.root(self.parent[A])\n return self.parent[A]\n def size(self, A):\n return -self.parent[self.root(A)]\n \n def connect(self, A, B):\n \n A = self.root(A)\n B = self.root(B)\n if A == B:\n return False\n \n if self.size(A) < self.size(B):\n A, B = B, A\n self.parent[A] += self.parent[B]\n self.parent[B] = A\n return True\n\nN, M = list(map(int, input().split()))\nA = []\nB = []\nfor _ in range(M):\n a, b = list(map(int, input().split()))\n A.append(a-1)\n B.append(b-1)\nuni = Union_find(N)\nresult = []\nunconv = int(N*(N-1)/2)\nfor a, b in zip(reversed(A), reversed(B)):\n result.append(unconv)\n size_a = uni.size(a)\n size_b = uni.size(b)\n if uni.connect(a, b):\n unconv -= size_a*size_b\nfor r in reversed(result):\n print(r)\n', 'A, B, C = list(map(int, input().split()))\nmax_i = B//A\nprint(min(max_i, C))\n']
['Runtime Error', 'Accepted']
['s481020403', 's494812038']
[3064.0, 2940.0]
[18.0, 18.0]
[1360, 76]
p03105
u432333240
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A_B_C = [int(x.strip()) for x in input().split()]\nprint(A_B_C = [int(x.strip()) for x in input().split()])', 'A_B_C = [int(x.strip()) for x in input().split()]\nprint(min(int(A_B_C[1]/A_B_C[0]), A_B_C[2]))']
['Runtime Error', 'Accepted']
['s090568551', 's878767169']
[2940.0, 2940.0]
[18.0, 18.0]
[106, 94]
p03105
u434872492
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int,input().split())\n\nx = 0\ny = 0\n\nwhile x <= C:\n if A > B:\n break\n if y >= B:\n break\n y += A\n x += 1\n\nprint(x)', 'A, B, C = map(int,input().split())\n\na = A\nb = b\ncount = 0\nif a > b:\n print(0)\n\nwhile b - a >= 0:\n if count <= C:\n break\n b -= a\n count += 1\n\nprint(count)', 'A, B, K = map(int,input().split())\nlistAB = []\nfor i in range(min(A,B)):\n if A%(i+1) == 0 and B % (i+1) == 0:\n listAB.append(i+1)\nlistAB.sort(reverse = True)\nif A == 1 or B == 1:\n print(1)\nelse:\n print(listAB[K-1])', 'A, B, C = map(int,input().split())\n\na = A\nb = b\ncount = 0\nif a > b:\n print(0)\n\nwhile b - a >= 0:\n if count == C:\n break\n b -= a\n count += 1\n\nprint(count)', 'import math\n\nA, B, C = map(int,input().split())\n\nif B - A*C < 0:\n print(math.floor(B/A))\nelse:\n print(C)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s277726097', 's771521454', 's824169377', 's917976567', 's336239190']
[3064.0, 2940.0, 3060.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 19.0]
[151, 172, 230, 172, 110]
p03105
u436982376
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\n\nif a//b > c:\n print(c)\nelif a//b <= c:\n print(a//b)', 'a,b,c = map(int,input().split())\n\nif b//a > c:\n print(c)\nelif b//a <= c:\n print(b//a)']
['Wrong Answer', 'Accepted']
['s367870796', 's231542696']
[2940.0, 2940.0]
[17.0, 18.0]
[87, 87]
p03105
u438662618
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\nprint(min(-(-B//A), C)', 'S = input()\n\ncount = 0\nindex = -1\n\nprint(2 * min(S.count("0"), S.count("1")))', 'a, b, c = map(int, input().split())\nprint(min(b//a, c))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s898612147', 's953342774', 's707884051']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[58, 77, 56]
p03105
u439312138
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int,input().split())\n\nprint(B//A,C)', 'A,B,C = map(int,input().split())\n \nprint(min(B//A,C))']
['Wrong Answer', 'Accepted']
['s631835722', 's309251192']
[2940.0, 2940.0]
[18.0, 17.0]
[47, 53]
p03105
u440129511
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c= map(int,input().split())\nif a*c>b :print(c)\nelse:print(b//a)', 'a,b,c= map(int,input().split())\nif a*c<b :print(c)\nelse:print(b//a)']
['Wrong Answer', 'Accepted']
['s621190444', 's416716215']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 67]
p03105
u440478998
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\n\nprint(a//b) if a//b<c else print(c)', 'a,b,c = map(int,input().split())\n\nprint(b//a) if b//a<c else print(c)']
['Wrong Answer', 'Accepted']
['s009342680', 's622654977']
[9092.0, 9020.0]
[27.0, 27.0]
[69, 69]
p03105
u441320782
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int,input().split())\n\nif C >= A*B:\n print(C)\nelse:\n for i in range(1,C+1):\n if B < A*i:\n break\n print(i-1)', 'A,B,C = map(int,input().split())\n\nif B >= A*C:\n print(C)\nelse:\n for i in range(1,C+1):\n if B < A*i:\n break\n print(i-1)\n']
['Wrong Answer', 'Accepted']
['s316484663', 's890646924']
[2940.0, 3060.0]
[17.0, 20.0]
[129, 130]
p03105
u446711904
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=map(int,input().split())\nprint(max(b//a,c))', 'a,b,c=map(int,input().split())\nprint(c if a//b>=c else a//b)', 'a,b,c=map(int,input().split())\nprint(c if b//a<=c else b//a)', 'a,b,c=map(int,input().split())\nprint(b//a if b//a<=c else c)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s085437619', 's593033117', 's948340799', 's753240444']
[2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[49, 60, 60, 60]
p03105
u448655578
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['price, wallet, m = map(int, input().split())\nif wallet // price >= m:\n print(price*m)\nelse:\n print(wallet // price)', 'price, wallet, m = map(int, input().split())\nif wallet // price >= m:\n print(m)\nelse:\n print(wallet // price)\n']
['Wrong Answer', 'Accepted']
['s813893804', 's620857708']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 112]
p03105
u450221211
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a=list(input())\nprint(2*min(a.count("0"),a.count("1")))\n', 'a,b, c = map(int, input().split())\n\nable=int(b/a)\nif c>=able:\n print(able)\nelse:\n print(c)\n']
['Wrong Answer', 'Accepted']
['s907646226', 's454116427']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 97]
p03105
u450983668
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=map(int,input().split());print(min(b,c)//a)', 'a,b,c=map(int,input().split());print(min(b//a,c))']
['Wrong Answer', 'Accepted']
['s753703732', 's082060079']
[3060.0, 2940.0]
[19.0, 18.0]
[49, 49]
p03105
u451017206
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['100 1 10', 'A, B, C = map(int, input().split())\nprint(min(B//A, C))']
['Runtime Error', 'Accepted']
['s357520638', 's397397464']
[2940.0, 2940.0]
[17.0, 17.0]
[8, 55]
p03105
u452070976
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['L = list(input())\nL_ = []\na = L.pop(0)\ncnt = 0\n\nwhile True:\n if len(L) == 0:\n break\n else:\n b = L.pop(0)\n if a is not b:\n cnt += 1\n # L = L_ + L\n # L_ = []\n a = L_.pop(0)\n elif a is b:\n L_.append(a)\n a = b\n # print(L_, a, L)\n\nprint(cnt * 2)\n\n', 'a, b, c = map(int, input().split())\nres = b // a\nif res > c:\n res = c\nprint(res)']
['Runtime Error', 'Accepted']
['s765310938', 's641932734']
[2940.0, 2940.0]
[19.0, 18.0]
[314, 81]
p03105
u455317716
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = [int(x) for x in input().split()]\nprint(min(a//b, c))', 'a,b,c = [int(x) for x in input().split()]\nprint(min(b//a, c))']
['Wrong Answer', 'Accepted']
['s580159143', 's458844619']
[2940.0, 2940.0]
[18.0, 17.0]
[61, 61]
p03105
u457901067
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input.split())\nprint(min(B//A, C))', 'A, B, C = map(int, input().split())\nprint(min(B//A, C))']
['Runtime Error', 'Accepted']
['s843349108', 's725937011']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 55]
p03105
u464689569
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a=int(input())\nb=int(input())\nc=int(input())\nif a*c<b:\n print(c)\nelse:\n print(b/a)', 'a=int(input())\nb=int(input())\nc=int(input())\nif a*b<c:\n print(c)\nelse:\n print(b/a)', 'import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n // TODO code application logic here\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int b=sc.nextInt();\n int c=sc.nextInt();\n if(a*c<b){\n System.out.println(c);\n }else{\n System.out.println(b/a);\n }\n } \n}', 'a,b,c = map(int,input().split())\nif a*c<b:\n print(c)\nelse:\n print(b//a)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s151706901', 's206014817', 's276942619', 's812235238']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[88, 88, 388, 77]
p03105
u466143662
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\n\nif A*C < B:\n print(C)\n\nelif A*C = B:\n print(C)\n\nelif A*C > B:\n print(B//A)', 'A, B, C = map(int, input().split())\n\nfor i in range(10000):\n if B > A:\n B-A*i\n continue\n if B < A:\n print(i)\n break', 'A, B, C = map(int, input().split())\n\nif A*C < B:\n print(C)\n\nif A*C = B:\n print(C)\n\nif A*C > B:\n print(B//A)', 'A,B,C = map(int, input().split())\nif C*A<=B:\n print(C)\nelse:\n print(B//A)']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s353968422', 's784241911', 's864575807', 's156228275']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0, 19.0]
[120, 149, 116, 79]
p03105
u468972478
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\nprint(min(c, a // b))', 'a, b, c = map(int, input().split())\nprint(c if a // b >= c else a // b)', 'a, b, c = map(int, input().split())\nprint(min(c, (a //b)))', 'a, b, c = map(int, input().split())\nprint(min(c, b // a))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s155806760', 's338003809', 's872032648', 's122537989']
[8844.0, 9064.0, 9148.0, 8912.0]
[29.0, 24.0, 30.0, 27.0]
[57, 71, 58, 57]
p03105
u471181540
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int, input().split())\nans = b//a\nif ans >= c:\n ans = c', 'A,B,C = map(int, input().split())\nprint(min(C,B//A))']
['Wrong Answer', 'Accepted']
['s243649633', 's846917380']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 52]
p03105
u471684875
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["s=str(input())\nc=len(s)\n\nfor _ in range(10000):\n s=s.replace('01','')\n s=s.replace('10','')\nprint(c-len(s))", 'import sys\ninput = sys.stdin.readline\n\n\na,b,c=map(int,input().split())\nprint(min(c,b//a))\n\n\n']
['Wrong Answer', 'Accepted']
['s164703508', 's300927777']
[2940.0, 2940.0]
[22.0, 17.0]
[121, 92]
p03105
u472696272
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split)\nprint(min(b//a,c))\n', 'a,b,c = map(int,input().split())\nprint(min(b//a,c))\n']
['Runtime Error', 'Accepted']
['s821897245', 's092314563']
[2940.0, 3316.0]
[17.0, 22.0]
[50, 52]
p03105
u474514603
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['def sol(a, b, c):\n return min(int(b/a), c)', 'def sol(a, b, c):\n return max(int(b/a), c)', '#-*- coding: utf-8 -*-\n"""\noj dl https://atcoder.jp/contests/abc116/tasks/abc116_d -d test-d\noj test -d test-d -c "python abc116d.py"\noj test -d test-d -c "python abc116d.py" test-d/sample-3.in\n"""\nfrom collections import defaultdict\nimport sys\nimport math\nfrom datetime import datetime\n\ndef sol(a, b, c):\n return min(int(b/a), c)\n\n\ndo_submit = True\n\n\ndef input_parse(input_str):\n lines = [x.strip() for x in input_str.split("\\n") if x.strip()]\n parsed_lines = [list(map(int, line.split())) for line in lines]\n a, b, c = parsed_lines[0]\n return a, b, c\n\n\nif not do_submit:\n a, b, c = input_parse("""\n 2 11 4\n """)\n print(sol(a, b, c))\nelse:\n a, b, c = list(map(int, input().split()))\n print(sol(a, b, c))\n # S = input().strip()\n # print(sol(S))\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s143762108', 's672571751', 's171666768']
[2940.0, 3064.0, 3824.0]
[17.0, 18.0, 27.0]
[45, 43, 803]
p03105
u476124554
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['from collections import deque\nS =input()\ncounter = 0\nS = list(S)\nq = deque([])\nfor i in range(len(S)):\n q.append(S[i])\nfor i in range(1000000):\n if q:\n s1 = q.pop()\n else:\n break\n if q:\n s2 = q.pop()\n else:\n break\n if(s1 != s2):\n counter+=2\n else:\n q.appendleft(s1)\n q.append(s2)\nprint(counter)', 'import queue\ncounter = 0\nS = input()\nS = list(S)\nq = queue.Queue()\nflg = 1\nfor i in range(len(S)):\n q.put(S[i])\nfor i in range(10000):\n if(q.empty()):\n break\n else:\n if (flg == 1):\n s1 = q.get()\n s2 = q.get()\n if (s1 != s2):\n counter+=2\n flg = 1\n else:\n s1 = s2\n flg = 0\nprint(counter)', 'import queue\na,b,c = map(int,input().split())\nq = queue.LifoQueue()\nfor i in range(1,100):\n if(a%i == 0 and b%i == 0):\n q.put(i)\nif c != 1:\n for i in range(c-1):\n q.get()\nprint(q.get())', 'import math\na,b,c = map(int,input().split())\n\nif a * c <= b:\n print(c)\nelse:\n print(math.floor(b / a))']
['Wrong Answer', 'Wrong Answer', 'Time Limit Exceeded', 'Accepted']
['s061782895', 's575918385', 's778498055', 's904899940']
[3316.0, 3952.0, 3952.0, 2940.0]
[22.0, 2104.0, 2104.0, 18.0]
[364, 328, 193, 108]
p03105
u481514236
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int,input().split())\nprint( B // A )', 'A,B,C = map(int,input().split())\nx = B // A\nprint( C if C < x else x )']
['Wrong Answer', 'Accepted']
['s844560679', 's108648032']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 70]
p03105
u482019060
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['from collections import deque\ns = deque(input())\n\ncnt = 0\ni = 1\n\nwhile i < len(s):\n while len(s) != 0 and s[i - 1] != s[i]:\n s.pop(i)\n s.pop(i - 1)\n i -= 1\n cnt += 2\n i += 1\n\nprint(cnt)\n', 'A, B, C = map(int, input().split())\n\nif B // A < C:\n print(B // A)\nelse:\n print(C)']
['Runtime Error', 'Accepted']
['s123027280', 's634725789']
[3444.0, 2940.0]
[21.0, 17.0]
[220, 88]
p03105
u483645888
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, k = map(int, input().split())\nprint([i for i in range(1,101) if a%i+b%i<1][-k])', 'a, b, c = map(int, input().split())\nans = b//a\nprint(c if ans>c else ans)']
['Runtime Error', 'Accepted']
['s149123402', 's773706031']
[2940.0, 2940.0]
[18.0, 17.0]
[85, 73]
p03105
u484229314
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = [int(v) for v in input().split()]\nprint(min(A//B,C))', 'A,B,C = [int(v) for v in input().split()]\nprint(max(A//B,C)', 'A,B,C = [int(v) for v in input().split()]\nprint(min(B//A,C))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s569245308', 's588231045', 's377006741']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[60, 59, 60]
p03105
u487288850
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\nprint(max(c,b//a))', 'a,b,c = map(int,input().split())\nprint(min(c,b//a))']
['Wrong Answer', 'Accepted']
['s216092947', 's618292373']
[8964.0, 9084.0]
[25.0, 26.0]
[51, 51]
p03105
u488178971
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["s = input()\ncnt=0\n\nfor i in range(len(s)//2):\n if '10' in s:\n cnt+=2 * s.count('10')\n s=s.replace('10', '') \n elif '01' in s:\n cnt+=2 * s.count('01')\n s=s.replace('01', '') \nprint(cnt)", 'a,b,c =map(int,input().split())\n\nif b //a < c:\n print(b//a)\nelse:\n print(c)']
['Wrong Answer', 'Accepted']
['s381642243', 's683314008']
[3060.0, 2940.0]
[17.0, 17.0]
[218, 81]
p03105
u489959379
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, c = map(int, input().split())\n\nif a * c <= b:\n print(a * c)\nelse:\n print(b // a)', "import sys\n\nsys.setrecursionlimit(10 ** 7)\nf_inf = float('inf')\nmod = 10 ** 9 + 7\n\n\ndef resolve():\n a, b, c = map(int, input().split())\n if c * a <= b:\n print(c)\n else:\n print(b // a)\n\n\n\nif __name__ == '__main__':\n resolve()\n"]
['Wrong Answer', 'Accepted']
['s755786278', 's655108650']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 251]
p03105
u492447501
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['S = input()\n\nS = list(map(int, S.split()))\n\nA = S[0]\nB = S[1]\nC = S[2]\n\nD = int(A/B)\n \nif D > C:\n print(C)\nelse D < C:\n print(D)', 'A, B, C = map(int, input().split())\n\nprint(max(B//A, C))\n', 'A, B, C = map(int, input().split())\n\nprint(min(B//A, C))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s040860656', 's056928565', 's433718073']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[137, 57, 56]
p03105
u494151155
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = [int(_) for _ in input().split]\nn = min(B//A,C)\nprint(n)', 'A,B,C = [int(_) for _ in input().split()]\nn = min(B//A,C)\nprint(n)\n']
['Runtime Error', 'Accepted']
['s691560602', 's528806096']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 67]
p03105
u495218088
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\n\ncoin_sound_cnt = B//A\nif coin_sound_cnt > C:\n return C\nelse:\n return coin_sound_cnt\n', 'A, B, C = map(int, input().split())\n\ncoin_sound_cnt = A//B\nif coin_sound_cnt > C:\n print(C)\nelse:\n print(coin_sound_cnt)\n', 'A, B, C = map(int, input())\n\ncoin_sound_cnt = B//A\nif coin_sound_cnt > C:\n return C\nelse:\n return coin_sound_cnt', 'A, B, C = map(int, input().split())\n\ncoin_sound_cnt = B//A\nif coin_sound_cnt > C:\n print(C)\nelse:\n print(coin_sound_cnt)\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s287022752', 's496313599', 's865583990', 's839983974']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 18.0]
[123, 123, 114, 123]
p03105
u496407619
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['N, M = [int(elm) for elm in input().split(" ")]\nbridges = [[int(elm) for elm in input().split(" ")] for _ in range(M)]\n\nclass Graph:\n pass\n\ngraph = {}\nfor node in range(1, N+1):\n graph[node] = [node]\n #graph_mem[node] = []\n\ngraph_n_mem = [0] + [1 for i in range(N)]\nn_all_pairs = N * (N-1) // 2\n\n\n\n\ndef calc_out(n_list):\n out = n_all_pairs\n for elm in n_list:\n if elm <= 1:\n continue\n tmp = elm * (elm-1) // 2\n out -= tmp\n return out\n\nouts = []\nfor A, B in reversed(bridges):\n #print(graph_n_mem)\n #print("before AB", A, B)\n A = graph[A][0]\n B = graph[B][0]\n \n if graph[A] != graph[B]:\n #graph_n_mem[A] += len(graph[B])\n graph_n_mem[A] += graph_n_mem[B]\n graph_n_mem[B] = 0\n\n graph[A] += graph[B]\n for node in graph[A]:\n graph[node] = graph[A]\n \n #graph_mem[A] += graph_mem[B]\n \n\n out = calc_out(graph_n_mem)\n outs.append(out)\n\nouts = outs[::-1]\nouts = outs[1:] + [n_all_pairs]\nfor out in outs:\n print(out)', 'A, B, C = list(map(int, input().split(" ")))\n\nn = B // A\nout = min(n, C)\nprint(out)']
['Runtime Error', 'Accepted']
['s070278271', 's196646958']
[3064.0, 2940.0]
[17.0, 17.0]
[1115, 83]
p03105
u500942659
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a, b, k = (int(i) for i in input().split())\nx = []\nc = max(a, b)\nfor i in range(1, c+1):\n if (a % i == 0) and (b % i == 0):\n x.append(i)\n\nprint(x[-k])', 'a,b,c = map(int, raw_input().split())\nd = (int)(b/a)\nprint(min(d, c))', 'a, b, c = (int(i) for i in input().split()) \nprint(min(c,(int)(b/a)))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s279240763', 's966615256', 's867036312']
[3060.0, 2940.0, 2940.0]
[19.0, 18.0, 17.0]
[161, 69, 71]
p03105
u502028059
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
["a = int(input('A'))\nb = int(input('B'))\nc = int(input('C'))\n\ncount = 0\nfor i in range(b // a):\n if i >= c:\n break\n count += 1\n\nprint(count)", 'A,B,C = map(int,input().split())\nans = 0\n\nwhile B >= A and C != ans:\n B -= A\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s819078453', 's335885442']
[3060.0, 2940.0]
[17.0, 17.0]
[152, 103]
p03105
u502389123
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, C = map(int, input().split())\n\nK = A // B\n\nif K > C:\n print(C)\nelse:\n print(K)\n', 'A, B, C = map(int, input().split())\n\nK = B // A\n\nif K > C:\n print(C)\nelse:\n print(K)\n']
['Wrong Answer', 'Accepted']
['s212889175', 's858529044']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 91]
p03105
u503111914
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a = list(map(int.input().split()))\nif a[1]//a[0] == 0:\n print(0)\nelif a[1]//a[0]> a[2]:\n print(a[2])\nelse:\n print(a[1]//a[0])', 'A,B,C = map(int.input().split())\nif B//A == 0:\n print(0)\nelif B//A > C:\n print(C)\nelse:\n print(B//A)', 'A,B,C = map(int.input().split())\nif B//A < C:\n print(B//A)\nelse:\n print(C)', 'a = list(map(int,input().split()))\nif a[1]//a[0] == 0:\n print(0)\nelif a[1]//a[0]> a[2]:\n print(a[2])\nelse:\n print(a[1]//a[0])']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s098041897', 's506583122', 's686389128', 's604128778']
[3060.0, 2940.0, 2940.0, 3060.0]
[18.0, 19.0, 19.0, 17.0]
[128, 103, 76, 128]
p03105
u504588563
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c=[int(x) for x input().split()]\nprint(b//a,c)', 'a,b,c=[int(x) for x in input().split()]\nprint(min(b//a,c))']
['Runtime Error', 'Accepted']
['s744593133', 's749791652']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 58]
p03105
u505893372
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int, input().split())\n\nprint(max(int(B//A),C))', 'A,B,C = map(int, input().split())\n\nprint(min(int(B//A),C))']
['Wrong Answer', 'Accepted']
['s280520891', 's358159084']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 58]
p03105
u507116804
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,x,c=map(int,input().split())\n\nk=x//a\n\nprint(max(k,c))', 'a,b,c=map(int, input().split())\n\nm=b//a\n\nif m>=c:\n print(c)\nelse:\n print(m)\n']
['Wrong Answer', 'Accepted']
['s029761387', 's953242151']
[2940.0, 2940.0]
[17.0, 17.0]
[55, 78]
p03105
u508273185
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['import math\nA = int(input())\nB = int(input())\nC = int(input())\n\nif B >= A * C:\n print(C)\nelse :\n print(math.floor(B/A))\nif A > B:\n print(0)', 'import math\nA = int(input())\nB = int(input())\nC = int(input())\nif A > B:\n print(0)\nelse :\n if B >= A * C:\n print(C)\n else :\n print(math.floor(B/A))', 'import math\na, b, c = map(int, input().split())\n\nif a > b:\n print(0)\nelse :\n if b >= a * c:\n print(c)\n else :\n print(math.floor(b/a))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s597404242', 's603715454', 's589323443']
[3060.0, 3060.0, 3060.0]
[18.0, 17.0, 17.0]
[148, 170, 156]
p03105
u509830642
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['import sys\ninput = sys.stdin.readline\ndef print_ans(A, B, C):\n """Test Case\n >>> print_ans(2, 11, 4)\n 4\n >>> print_ans(3, 9, 5)\n 3\n >>> print_ans(100, 1, 10)\n 0\n """\n print(max(C, B // A))\n\n\nif __name__ == \'__main__\':\n A, B, C = map(int, input().rstrip().split())\n print_ans(A, B, C)\n\n\n', 'import sys\ninput = sys.stdin.readline\ndef print_ans(A, B, C):\n """Test Case\n >>> print_ans(2, 11, 4)\n 4\n >>> print_ans(3, 9, 5)\n 3\n >>> print_ans(100, 1, 10)\n 0\n """\n print(min(C, B // A))\n\n\nif __name__ == \'__main__\':\n A, B, C = map(int, input().rstrip().split())\n print_ans(A, B, C)\n\n\n']
['Wrong Answer', 'Accepted']
['s963686934', 's485265953']
[2940.0, 3064.0]
[17.0, 17.0]
[319, 319]
p03105
u514687406
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['a,b,c = map(int,input().split())\nprint(min((b//a),c)', 'a,b,c = map(int,input().split())\nprint(min(b//a,c))']
['Runtime Error', 'Accepted']
['s101811538', 's537161134']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 51]
p03105
u519939795
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, K = map(int, input().split())\n \ncand = []\nfor i in range(100,0,-1):\n if A%i == 0 and B%i == 0:\n cand += [i]\nprint(cand[K-1])', 'A, B, C = map(int, input().split())\nprint(min(C, B//A))']
['Runtime Error', 'Accepted']
['s943939751', 's824946816']
[2940.0, 2940.0]
[17.0, 17.0]
[134, 55]
p03105
u520619848
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A, B, times = map(int,input().split())\n\ntemp = 0\ntemp1 = 0\ndivisor = []\ncounter = 0\n\nif A >= B:\n temp = A\n temp1 = B\n\nelse:\n temp = B\n temp1 = A\n\nfor i in range(1,temp1):\n if temp1 % i == 0 and i != temp1:\n divisor.append(i)\n\nprint(divisor)\nfor j in (reversed(divisor)):\n if temp % j ==0:\n counter += 1\n if counter == times:\n print(j)\n break\n \n\n', 'fee, money, times = map(int,input().split())\n\nif money/fee >= times:\n print(times)\n\nelse:\n print(int(money/fee))']
['Wrong Answer', 'Accepted']
['s156963242', 's594901738']
[3060.0, 2940.0]
[21.0, 17.0]
[371, 116]
p03105
u524534026
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A = list(map(int, input().split()))\na = A[1]//A[0]\nif a >= A[2]:\n print(a)\nelse:\n print(A[2])', 'A = list(map(int, input().split()))\na = A[1]//A[0]\nif a <= A[2]:\n print(a)\nelse:\n print(A[2])']
['Wrong Answer', 'Accepted']
['s594343001', 's404776069']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 99]
p03105
u525987461
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = list(map(int,input().split()))\nif A * C > B:\n print(int(B / A))\nelse:\n print((C)', 'A,B,C = list(map(int,input().split()))\nif A * C > B:\n print(int(B / A))\nelse:\n print(C)']
['Runtime Error', 'Accepted']
['s795701292', 's508648574']
[2940.0, 2940.0]
[18.0, 19.0]
[94, 93]
p03105
u527261492
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C = map(int,input().split())\n\nr = B%A\ns = (B-r)/A\n\nprint(min(C,s)\n', 'import numpy as np\nA,B,C = map(int,input().split())\n\nr = B%A\ns = (B-r)/A\n\nList = [C,s]\nprint(np.min(List))\n', 'A,B,C = map(int,input().split())\n\nr = B%A\ns = (B-r)/A\n\nprint(C,s)\n', 'A,B,C = map(int,input().split())\n\nList=[B//A,C]\nprint(min(List))\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s367844713', 's507477989', 's632642534', 's429609207']
[2940.0, 12496.0, 2940.0, 2940.0]
[17.0, 152.0, 17.0, 17.0]
[70, 107, 66, 65]
p03105
u530383736
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['# -*- coding: utf-8 -*-\n\nS = input().strip()\n#-----\n\nnum_red = S.count("0")\nnum_blue = len(S) - num_red\n\nprint( min(num_red,num_blue) * 2 )\n', '# -*- coding: utf-8 -*-\n\nA,B,C = [int(i) for i in input().rstrip().split()]\n\nmax = B // A\nif max < C:\n print(max)\nelse:\n print(C)\n']
['Wrong Answer', 'Accepted']
['s249719441', 's451331356']
[2940.0, 2940.0]
[17.0, 17.0]
[140, 132]
p03105
u535423069
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['import sys\n \nstdin = sys.stdin\n\nmod = 1000000007\ninf = 1 << 60\n \nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip()\nnas = lambda: stdin.readline().split()\n\na, b, c = na()\nif a * c <= b:\n print(a * c)\nelse:\n print(b // a)', 'import sys\n \nstdin = sys.stdin\n\nmod = 1000000007\ninf = 1 << 60\n \nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip()\nnas = lambda: stdin.readline().split()\n\na, b, c = na()\nprint(min(b // a, c))']
['Wrong Answer', 'Accepted']
['s006193858', 's547960706']
[3060.0, 3060.0]
[17.0, 18.0]
[291, 257]
p03105
u537782349
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['print("")', 'a, b, c = map(int, input().split())\nprint(min(b // a, c))\n']
['Wrong Answer', 'Accepted']
['s945971438', 's848402178']
[3068.0, 3316.0]
[18.0, 19.0]
[9, 58]
p03105
u544050502
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,K=list(map(int,input().split()))\ncount=0\nz=[A,B]\nfor i in range(max(z),0,-1):\n if (A%i==0)and(B%i==0):\n count+=1\n if count==K:\n ans=i\n break\nprint(ans)', 'A,B,K=list(map(int,input().split()))\ncount=0\nz=[A,B]\nfor i in range(1,max(z)+1):\n if (A%i==0)and(B%i==0):\n count+=1\n if count==K:\n ans=count\n break\nprint(ans)', 'a=list(map(int,input().split()))\nA=a[0]\nB=a[1]\nC=a[2]\nif B>=A*C:\n answer=C\nelse:\n answer=B//A\nprint(answer)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s630425447', 's913476190', 's753972392']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[172, 175, 109]
p03105
u548308904
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['inp = [int(i) for i in input().split()]\nli =[]\nli2 =[]\n\nfor k in range(1,inp[0]+1):\n f = inp[0] / k\n if f.is_integer():\n li.append(k)\n\nfor m in range(1,inp[1]+1):\n h = inp[1] / m\n if h.is_integer():\n li2.append(m)\n \nli3 = list(set(li) & set(li2))\nli3.sort()\nprint(li3[inp[2]-1])', 'inp = input().split()\nk = int(inp[1]) // int(inp[0])\nif k >= int(inp[2]):\n f = int(inp[2])\nelse:\n f = k\nprint(f)\n']
['Runtime Error', 'Accepted']
['s140032727', 's781048816']
[3064.0, 2940.0]
[18.0, 17.0]
[291, 115]
p03105
u554954744
2,000
1,048,576
Takahashi likes the sound when he buys a drink from a vending machine. That sound can be heard by spending A yen (the currency of Japan) each time. Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time. How many times will he hear the sound?
['A,B,C=map(int,input().split())\ncnt=0\nfor i in range(C):\n if B-=A>=0:\n cnt+=1\n else:\n break\nprint(cnt) ', 'A,B,C=3,9,5\ncnt=0\nfor i in range(C):\n B-=A\n if B>=0:\n cnt+=1\n else:\n break\nprint(cnt) ', 'A,B,C=map(int,input().split())\ncnt=0\nfor i in range(C):\n B-=A\n if B>=0:\n cnt+=1\n else:\n break\nprint(cnt)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s025818691', 's210511287', 's365429041']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[123, 110, 127]