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 | u556589653 | 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:\n print("C")\nelse:\n print(B % A)', 'a,b,c=map(int,input().split())\nif b//a>=c:\n print(c)\nelse:\n print(b//a)'] | ['Runtime Error', 'Accepted'] | ['s395329402', 's497176942'] | [2940.0, 2940.0] | [17.0, 18.0] | [78, 77] |
p03105 | u559313689 | 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,B+C,A+C))', 'A,B,C=map(int,input().split())\nprint(min(B//A,C))'] | ['Wrong Answer', 'Accepted'] | ['s014394175', 's590549798'] | [9012.0, 9132.0] | [29.0, 27.0] | [54, 49] |
p03105 | u571199625 | 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()\nN = len(S)\n \nfor _ in range(N):\n S = S.replace('01', '').replace('10', '')\n \nprint(N - len(S))", 'A, B, C=input().split()\nprint(int(B)/int(A))', 'A, B, C=input().split()\nX = int(int(B)/int(A))\n\nif X > int(C):\n print(C)\nelse:\n print(X)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s002059610', 's265500049', 's795271670'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [109, 44, 94] |
p03105 | u571445182 | 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? | ['\nA, B, C=map(int,input().split())\n\nTmp = -(-B//A)\nif A > C:\n print(C)\nelse:\n print(A)\n\n', 'A, B, C=map(int,input().split())\n \nTmp = B//A\nif Tmp > C:\n print(C)\nelse:\n print(Tmp)\n '] | ['Wrong Answer', 'Accepted'] | ['s410111584', 's511950978'] | [2940.0, 2940.0] | [19.0, 17.0] | [89, 90] |
p03105 | u572532976 | 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? | ['\nusing namespace std;\n\nint main() {\n int a, b, c, q;\n cin >> a >> b >> c;\n q = b/a;\n if(q < c){\n cout << q << endl;\n }else{\n cout << c << endl;\n };\n return 0;\n}', 'import fractions\n\n\ndef main():\n a = list(map(int, input().split()))\n b = fractions.gcd(a[0], a[1])\n c = b\n for i in range(a[2]-1):\n while True:\n c -= 1\n if b % c == 0:\n break\n print(c)\n\n\nmain()', 'a = list(map(int, input().split()))\nb = a[1]//a[0]\nprint(b if b < a[2] else a[2])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s498829577', 's885446090', 's856592857'] | [2940.0, 5692.0, 2940.0] | [18.0, 53.0, 18.0] | [214, 252, 81] |
p03105 | u576434377 | 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(C,B // A)', 'A,B,C = map(int,input().split())\n \nprint(min(C,B // A))'] | ['Wrong Answer', 'Accepted'] | ['s359524021', 's456165172'] | [2940.0, 3064.0] | [17.0, 18.0] | [47, 59] |
p03105 | u577579003 | 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\ndiv=[]\nfor i in range(1,min(a,b)+1):\n if(a%i==0 and b%i==0):\n div.append(i)\nif(div):\n div.reverse()\n print(div[k-1])\nelse:\n print(1)\n', 'a, b, c = map(int, input().split())\nprint(a,b,c)\nif(b/a>=c):\n print(c)\nelse:\n print(b//a)\n', 'a, b, c = map(int, input().split())\nif(b/a>=c):\n print(c)\nelse:\n print(b//a)\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s394525812', 's577270735', 's774766465'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 19.0] | [189, 96, 83] |
p03105 | u578953945 | 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 re\ns=input()\nm=0\nfor i in range(len(s)//2):\n dst = re.sub(r\'01|10\', "", s)\n dst = re.sub(r\'0000000000011111111111|1111111111100000000000\', "", dst)\n if dst == s:\n break\n m += len(s) - len(dst)\n s=dst\nprint(m)', 'a,b,c=map(int,input().split())\nprint(c if (b / a > c) else b // a)'] | ['Wrong Answer', 'Accepted'] | ['s896167939', 's088102164'] | [3188.0, 2940.0] | [20.0, 17.0] | [223, 66] |
p03105 | u587425560 | 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=0\nb=0\nfor i in range(len(s)):\n if s[i]=='0':\n a=a+1\n else:\n b=b+1\n\nif a>b:\n print(2*b)\nelse:\n print(2*a)\n", 'a,b,c=map(int,input().split())\nn=0\nn=b/a\nif n>c:\n n=c\nprint(int(n))'] | ['Wrong Answer', 'Accepted'] | ['s018438034', 's161448116'] | [2940.0, 2940.0] | [17.0, 17.0] | [143, 70] |
p03105 | u588633699 | 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 B//A < C:\n print(B//A)\nelse:\n print(C)', 'A, B, C = map(int, input().split())\n \nif A>B:\n print(0)\nelif B//A < C:\n print(B//A)\nelse:\n print(C)'] | ['Wrong Answer', 'Accepted'] | ['s331088205', 's014009836'] | [2940.0, 2940.0] | [18.0, 18.0] | [101, 102] |
p03105 | u600261652 | 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*C, B//A))', 'A, B, C = map(int, input().split())\nprint(min(A*C, B))', 'A, B, C = map(int, input().split())\nprint(min(C, B//A))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s022066605', 's924848982', 's884081960'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [57, 54, 55] |
p03105 | u600402037 | 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))\n', '# coding: utf-8\nimport sys\n\nsr = lambda: sys.stdin.readline().rstrip()\nir = lambda: int(sr())\nlr = lambda: list(map(int, sr().split()))\n\nA, B, C = lr()\ntime = B // A\nanswer = min(C, time)\nprint(answer)\n'] | ['Wrong Answer', 'Accepted'] | ['s649725199', 's378067733'] | [2940.0, 2940.0] | [17.0, 18.0] | [50, 202] |
p03105 | u603234915 | 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().spit())\n\nprint(min(b//a, c))\n', 'a, b, c= map(int, input().split())\n\nprint(min(b//a, c))\n\n'] | ['Runtime Error', 'Accepted'] | ['s116086073', 's895919324'] | [2940.0, 2940.0] | [18.0, 18.0] | [56, 57] |
p03105 | u604655161 | 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 ABC_120_A():\n A,B,C = map(int, input().split())\n if A*B >= B*C:\n print(C)\n else:\n print(int(B/A))\n\nif __name__ == '__main__':\n\n ABC_120_A()", "def ABC_120_A():\n A,B,C = map(int, input().split())\n if int(B/A) >= C:\n print(C)\n else:\n print(int(B/A))\n\nif __name__ == '__main__':\n\n ABC_120_A()"] | ['Wrong Answer', 'Accepted'] | ['s234502312', 's249499857'] | [2940.0, 2940.0] | [17.0, 17.0] | [169, 172] |
p03105 | u606878291 | 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(C, B // A))\n", "A, B, C = map(int, input().split(' '))\n\nprint(min(C, B // A))\n"] | ['Wrong Answer', 'Accepted'] | ['s048896998', 's154264935'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 62] |
p03105 | u609814378 | 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\nB_A = (B//A)\n\nif B_A <= C:\n print(C)\nelse:\n print(B_A)', 'A,B,C=map(int,input().split())\n\n\nB_A = B//A\n\nif B_A <= C:\n print(C)\nelse:\n print(B_A)', 'A,B,C=map(int,input().split())\n\n\nB_A = B//A\n\nprint(B_A)', 'A,B,C=map(int,input().split())\n\n\nB_A = (B//A)\n\nif B_A <= C:\n print(B_A)\nelse:\n print(C)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s080618135', 's606622596', 's664706694', 's350434636'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [93, 91, 55, 93] |
p03105 | u611090896 | 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'] | ['s625363812', 's494373642'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 51] |
p03105 | u616025987 | 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 re\n\nsi = input()\n\ndef count_zeroone(s, c):\n if(s.count('01') > 0 or s.count('10') > 0):\n f_r = s.count('10')\n s = re.sub('10','',s)\n f_l = s.count('01')\n s = re.sub('01','',s)\n return count_zeroone(s, (c+f_l+f_r))\n else:\n return (c)\nprint( (count_zeroone(si, 0) * 2 ) )", "import re\n\nsi = input()\n\ndef count_zeroone(s, c):\n f_l = s.count('01')\n if(f_l > 0 or s.count('10') > 0):\n s = re.sub('01','',s)\n f_r = s.count('10')\n s = re.sub('10','',s)\n return count_zeroone(s, (c+f_l+f_r))\n else:\n return (c)\nprint( (count_zeroone(si, 0) * 2 ) )", 'a,b,k = map(int, input().split())\n\nl = []\n\ngreatest = a\n\nif(b > a):\n greatest = b\n \nfor i in range(1, greatest):\n if(a % i == 0 and b % i == 0):\n l.append(i)\n\nif(len(l) == 0):\n if(a == b):\n l.append(1)\n \nprint(str(l[len(l) - int(k)]))', "import re\n\nsi = input()\n\ndef count_zeroone(s, c):\n f_l = s.count('01')\n if(f_l > 0):\n s = re.sub('01','',s)\n f_r = s.count('10')\n if(f_r > 0):\n s = re.sub('10','',s)\n if(f_l > 0 or f_r > 0): \n return count_zeroone(s, (c+f_l+f_r))\n else:\n return (c)\nprint( (count_zeroone(si, 0) * 2 ) )\n", 'a,b,c = map(int, input().split())\n\nif( (b / a) >= c):\n print(c)\nelse:\n print(str(int(b/a)))\n '] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s080595108', 's533932532', 's895760153', 's984628453', 's242174493'] | [3188.0, 3188.0, 3064.0, 3188.0, 2940.0] | [19.0, 19.0, 17.0, 19.0, 17.0] | [296, 284, 247, 305, 98] |
p03105 | u616246675 | 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(len(re.findall('0', S)), len(re.findall('1', S))) * 2 if len(S) > 1 else 0)", 'A, B, C = map(int, input().split())\nprint(C if A * C < B else B //A)'] | ['Runtime Error', 'Accepted'] | ['s763273025', 's837581984'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 68] |
p03105 | u620806894 | 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 = 0\nX = 0\nwhile X<1:\n\t# print(L)\n\tK = len(L)-1\n\t\n\tfor i in range(K):\n\t\tif L[i]+L[i+1]==1:\n\t\t\tL.pop(i)\n\t\t\tL.pop(i)\n\t\t\tn=n+1\n\t\t\tbreak\n\t\telif i == K-1:\n\t\t\tX=1\n\n# print(L)\nprint(n*2)\n', 'A,B,C = map(int,input().split())\n\nprint(min(int(B/A), C))'] | ['Runtime Error', 'Accepted'] | ['s001375173', 's384216058'] | [2940.0, 2940.0] | [18.0, 17.0] | [191, 57] |
p03105 | u625549378 | 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? | ['#!/usr/bin/python\n\ninput_data = input().split()\n\nd1 = input_data[0]\nd2 = input_data[1]\nd3 = input_data[2]\ntotal = 0\n\nd4 = d2 % d1\nif d4 > d3:\n total += 1\n\nprint(total)', '#!/usr/bin/python\n\ninput_data = list(map(int,input().split()))\n\nd1 = input_data[0]\nd2 = input_data[1]\nd3 = input_data[2]\ntotal = 0\n\nd4 = d2 % d1\nif d4 > d3:\n total += 1\n\nprint(total)', '#!/usr/bin/python\n\ninput_data = list(map(int,input().split()))\n\nd1 = input_data[0]\nd2 = input_data[1]\nd3 = input_data[2]\ntotal = 0\n\nd4 = int(d2 / d1)\nif d4 > d3:\n total += 1\n\nprint(total)\n\n', '#!/usr/bin/python\n\ninput_data = list(map(int,input().split()))\n\nd1 = input_data[0]\nd2 = input_data[1]\nd3 = input_data[2]\ntotal = 0\n\nd4 = d2 / d1\nif d4 > d3:\n total += 1\n\nprint(total)\n', '#!/usr/bin/python\n\ninput_data = list(map(int,input().split()))\n\nd1 = input_data[0]\nd2 = input_data[1]\nd3 = input_data[2]\n\nd4 = int(d2 / d1)\nif d4 > d3:\n total = d3\nelse:\n total = d4\n\nprint(total)\n\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s365929991', 's559060954', 's665479619', 's750963679', 's638600361'] | [9020.0, 9116.0, 9196.0, 9168.0, 9120.0] | [24.0, 28.0, 28.0, 23.0, 28.0] | [170, 185, 192, 186, 203] |
p03105 | u626468554 | 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'] | ['s785545174', 's153815510'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 51] |
p03105 | u626684023 | 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(B // A if B // A < C else C)'] | ['Wrong Answer', 'Accepted'] | ['s405090969', 's289786132'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 70] |
p03105 | u627234757 | 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())\nindex = 0\nfor i in range(100, 0, -1):\n if int(A / i) == 0 and int(B / i) == 0:\n index += 1\n if(K == index):\n print(i)\n', 'A, B, C = map(int, input().split())\nmaximum = B // A\nprint(min(C, maximum))'] | ['Wrong Answer', 'Accepted'] | ['s455969549', 's643970767'] | [2940.0, 2940.0] | [18.0, 17.0] | [166, 75] |
p03105 | u627886394 | 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))\n"] | ['Wrong Answer', 'Accepted'] | ['s099855316', 's619353524'] | [2940.0, 2940.0] | [18.0, 17.0] | [62, 63] |
p03105 | u628070051 | 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(min(C,\u3000B\u3000//\u3000A))', 'A, B, C = map (int, input().split())\n\nprint(min(C, B // A))'] | ['Runtime Error', 'Accepted'] | ['s577166048', 's093642677'] | [9000.0, 9136.0] | [26.0, 30.0] | [65, 59] |
p03105 | u628874030 | 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,K=list(map(int, input().split()))\n divisors=[]\n count = 0\n for i in range(1,min(A,B)+1):\n if min(A,B)%i==0:\n divisors.append(i)\n for divisor in divisors:\n if max(A,B)%divisor==0:\n count+=1\n if count==K:\n print(divisor)\nif __name__ =='__main__':\n main()\n", 'def main():\n A,B,C = input().split()\n if int(B)//int(A)>int(C):\n print(C)\n else:\n print(int(B)//int(A))\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s228934629', 's749211602'] | [2940.0, 2940.0] | [17.0, 17.0] | [350, 166] |
p03105 | u629607744 | 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) )\n'] | ['Runtime Error', 'Accepted'] | ['s059917409', 's689827404'] | [2940.0, 2940.0] | [17.0, 18.0] | [51, 54] |
p03105 | u635958201 | 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())\nT=[]\nfor i in range(1,101):\n if A%i==0 and B%i==0:\n T.append(i)\nT=sorted(T,reverse=True)\nprint(T[K-1])', 'A,B,C = map(int,input().split())\nif B//A < C:\n print(B//A)\nelse:\n print(C)'] | ['Runtime Error', 'Accepted'] | ['s904974889', 's247760466'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 80] |
p03105 | u639343026 | 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))\n'] | ['Runtime Error', 'Accepted'] | ['s346804580', 's822601963'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 50] |
p03105 | u641460756 | 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())\nb=a[0]\nc=a[1]\nd=a[2]\ne=c/b\nif e>d:\n print(d)\nelif d>e:\n print(e)\n', 'a=list(input())\nb=a(0)\nc=a(1)\nd=a(2)\ne=c/b\nif e>d:\n print(d)\nelif d>e:\n print(e)\n', 'a=[input()]\nb=a(0)\nc=a(1)\nd=a(2)\ne=c/b\nif e>d:\n print(d)\nelif d>e:\n print(e)', 'a=[input()]\nb=a(0)\nc=a(1)\nd=a(2)\ne=c/b\nif e>>d:\n print(d)\nelif d>>e:\n print(e)\n', 'a=list(input().split())\nb=a[0]\nc=a[1]\nd=a[2]\ne=c/b\nif e>d:\n print(d)\nelif d>e:\n print(e)\n', 'a=list(input().split())\nb=int(a[0])\nc=int(a[1])\nd=int(a[2])\ne=int(c/b)\nif e>=d:\n print(d)\nelif d>e:\n print(e)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022946081', 's128616607', 's590165545', 's860875944', 's862234450', 's079887672'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [18.0, 17.0, 17.0, 17.0, 18.0, 20.0] | [83, 83, 78, 81, 91, 112] |
p03105 | u643714578 | 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'] | ['s789820057', 's747193167'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 49] |
p03105 | u645538982 | 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 input().split())\n\na=0\nfor i in range(C+1):\n\n B=B-A\n a+=1\n if B<=0:\n break\nprint(a)\n', 'A,B,C=(int(i) for i in input().split())\n\na=0\n\nfor i in range(C):\n if A>B:\n break\n B=B-A\n a+=1\n if B<=0:\n break\nprint(a)\n'] | ['Wrong Answer', 'Accepted'] | ['s338207104', 's576983109'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 146] |
p03105 | u646560152 | 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? | ['in_str = input()\ninput_list = map(int,in_str)\nper = input_list[0]\nmoney = input_list[1]\ntarget = input_list[2]\ntime = int(money/par)\nans = 0\nif(time>=target):\n ans = target\nelse:\n ans = time\nprint(ans)', 'in_str = input()\ninput_list = list(map(int,in_str.split()))\nper = input_list[0]\nmoney = input_list[1]\ntarget = input_list[2]\ntime = int(money/per)\nans = 0\nif(time>=target):\n ans = target\nelse:\n ans = time\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s564168323', 's009959316'] | [3060.0, 3060.0] | [17.0, 17.0] | [203, 218] |
p03105 | u655048024 | 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))\n', 'a,b,c = map(int,input().split())\nprint(min(c,b//a))\n'] | ['Wrong Answer', 'Accepted'] | ['s898346801', 's485330827'] | [9132.0, 9144.0] | [27.0, 28.0] | [52, 52] |
p03105 | u658627575 | 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#A, B, K = 12, 8, 2\n\n\nif A > B:\n\ttmp = B\n\tB = A\n\tA = tmp\n\t\n\ncount = 0\nans = 0\n\nfor i in range(1,A+1):\n\tif A % i == 0 and B % i == 0:\n\t\tcount += 1\n\t\tif count == K:\n\t\t\tans = i\n\t\t\tK = 0\n\t\t\tbreak\n\nprint(ans)', 'A,B,C = int(input().split())\nans = B//A\n\nif ans > C:\n\tans = C\n\nprint(ans)', 'A, B, K = map(int, input().split())\n\nif A > B:\n\ttmp = B\n\tB = A\n\tA = tmp\n\ncount = 0\nans = 0\n\nfor i in range(1,A+1):\n\tif A % i == 0 and B % i == 0\n\t\tcount += 1\n\t\tif count == K:\n\t\t\tans = i\n\t\t\tbreak\n\nprint(ans)', 'A,B,C = int(input().split())\nans = int(B/A)\n\nif ans > C:\n\tans = C\n\nprint(ans)', 'A,B,C = map(int,input().split())\n#A,B,C = 2,1,3\nans = B//A\n\nif ans > C:\n\tans = C\n\nprint(ans)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s246471514', 's625655306', 's716626196', 's834371744', 's855897481'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 18.0, 17.0] | [250, 73, 206, 77, 92] |
p03105 | u663014688 | 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\n\nA,B,C = map(int, input().split())\n\nif A * B < C:\n print(C)\nelse:\n print(B // A)', '\n\n\nA,B,C = map(int, input().split())\n\nif A * C < B:\n print(C)\nelse:\n print(B // A)'] | ['Wrong Answer', 'Accepted'] | ['s391391471', 's442098133'] | [2940.0, 2940.0] | [17.0, 17.0] | [148, 148] |
p03105 | u667084803 | 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'] | ['s785955780', 's435929095'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 53] |
p03105 | u667505876 | 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 = input()\nb = input()\nc = input()\n\nif a*c <= b:\n\tprint('高橋くんは' + a*c + '円以上持っているのでお気に入りの音を' + c + '回聞いて満足します。')\n \tprint(c)\n \nelse:\n \tprint('高橋くんが満足できないこともあります。')\n print(b/a)", '#coding:utf-8\na = input()\nb = input()\nc = input()\n\nif a*c <= b:\n print(c)\n print("高橋くんは8円以上持っているのでお気に入りの音を4回聞いて満足します。")\n\nelse:\n print(b/a)\n print("高橋くんが満足できないことがあります。")\n\n', '#coding:utf-8\n\na = input()\nb = input()\nc = input()\n\nif a*c <= b:\n\tprint(c)\n\nelse:\n\tprint(b/a)\n', "#coding:UTF-8\n\na = input()\nb = input()\nc = input()\n\nif a*c <= b:\n\tprint('高橋くんは' + a*c + '円以上持っているのでお気に入りの音を' + c + '回聞いて満足します。')\n \tprint(c)\n \nelse:\n \tprint('高橋くんが満足できないこともあります。')\n print('b/a')", 'a,b,c = map(int,input().split())\nnum = int(b/a)\n\nif num > c:\n\tprint(c)\n\nelse:\n\tprint(num)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s162299343', 's260748997', 's612267902', 's741012336', 's104218304'] | [2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [301, 286, 94, 303, 89] |
p03105 | u668352391 | 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(lambda x: int(x), input().split())\nif a * c <= b:\n print(a * c)\nelse:\n print(int(b/a))', 'a, b, c = map(lambda x: int(x), input().split())\nif a * c <= b:\n print(c)\nelse:\n print(int(b/a))'] | ['Wrong Answer', 'Accepted'] | ['s926281457', 's159292164'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 98] |
p03105 | u668503853 | 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'] | ['s251671004', 's817973385'] | [2940.0, 2940.0] | [18.0, 17.0] | [49, 49] |
p03105 | u670180528 | 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 fractions import*\na,b,k=map(int,input().split());c=0\nfor i in range(a,0,-1):\n c+=(gcd(a,b)%i==0)\n if c==k:print(i)', 'a,b,c=map(int,input().split());print(min(b//a,c))'] | ['Wrong Answer', 'Accepted'] | ['s388509014', 's820208842'] | [5048.0, 2940.0] | [35.0, 17.0] | [121, 49] |
p03105 | u670961163 | 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, b//a)', 'a, b, c= map(int, input().split())\nprint(min(c, b//a))'] | ['Runtime Error', 'Accepted'] | ['s006715438', 's760458224'] | [8968.0, 9104.0] | [25.0, 26.0] | [53, 54] |
p03105 | u671211357 | 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:\n print(B)\nelse:\n print(B//A)', 'A,B,C=map(int,input().split())\nif A*C<B:\n print(C)\nelse:\n print(B//A)\n'] | ['Wrong Answer', 'Accepted'] | ['s885638294', 's850417182'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 72] |
p03105 | u672898046 | 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())\nz = b // a\nif z >= c:\n print(c)\nelse:\n print(z)', 'a, b, c = map(int, input().split())\nz = b // a\nif z >= c:\n print(c)\nelse:\n print(z)'] | ['Runtime Error', 'Accepted'] | ['s867708507', 's597335377'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p03105 | u678167152 | 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? | ["\nclass UnionFind():\n def __init__(self, n):\n self.n = n\n self.parents = [-1] * n\n\n def find(self, x):\n if self.parents[x] < 0:\n return x\n else:\n self.parents[x] = self.find(self.parents[x])\n return self.parents[x]\n\n def union(self, x, y):\n x = self.find(x)\n y = self.find(y)\n\n if x == y:\n return\n\n if self.parents[x] > self.parents[y]:\n x, y = y, x\n\n self.parents[x] += self.parents[y]\n self.parents[y] = x\n\n def same(self, x, y):\n return self.find(x) == self.find(y)\n\n def roots(self):\n return [i for i, x in enumerate(self.parents) if x < 0]\n\n def members(self, x):\n root = self.find(x)\n return [i for i in range(self.n) if self.find(i) == root]\n\n def __str__(self):\n return '\\n'.join('{}: {}'.format(r, self.members(r)) for r in self.roots())\n\nN, M = map(int, input().split())\n\nA = [0]*M\nB = [0]*M\nfor i in range(M):\n A[i],B[i] = map(int, input().split())\n A[i] -= 1\n B[i] -= 1\n\nans = []\n\nA = A[::-1]\nB = B[::-1]\nuf = UnionFind(N)\ntotal = N*(N-1)//2\nans.append(total)\nfor i in range(M):\n if uf.same(A[i],B[i]):\n ans.append(total)\n continue\n m = abs(uf.parents[uf.find(A[i])])\n n = abs(uf.parents[uf.find(B[i])])\n \n #print(A[i]+1,m,B[i]+1,n)\n uf.union(A[i],B[i])\n total -= m*n\n ans.append(total)\n \n#print(ans) \n\nprint(*ans[:-1][::-1], sep='\\n')\n", 'A, B, C = map(int, input().split())\nprint(min(B//A,C))'] | ['Runtime Error', 'Accepted'] | ['s866587084', 's023316307'] | [3188.0, 3064.0] | [18.0, 19.0] | [1377, 54] |
p03105 | u681110193 | 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(min(a//b,c))', 'a,b,c=map(int,input().split())\n\nprint(min(b//a,c))\n'] | ['Wrong Answer', 'Accepted'] | ['s742206017', 's738193745'] | [2940.0, 2940.0] | [18.0, 17.0] | [50, 51] |
p03105 | u681444474 | 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())\nn = int(a/b)\nif n < c:\n print(n)\nelse:\n print(c)', 'a,b,c = map(int,input().split())\nn = int(b/a)\nif n < c:\n print(n)\nelse:\n print(c)'] | ['Wrong Answer', 'Accepted'] | ['s948581478', 's402971272'] | [2940.0, 3316.0] | [17.0, 18.0] | [83, 83] |
p03105 | u682730715 | 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\nimport sys\n\nimport heapq\nimport re\nimport bisect\nimport random\nimport math\nimport itertools\nfrom collections import defaultdict, deque\nfrom copy import deepcopy\nfrom decimal import *\n\ndef find(x):\n if node[x] < 0:\n return x\n else:\n node[x] = find(node[x])\n return node[x]\n\ndef unite(x, y):\n x = find(x)\n y = find(y)\n ret = False\n if x != y:\n ret = True\n if rank[x] > rank[y]:\n node[x] += node[y]\n node[y] = x\n else:\n node[y] += node[x]\n node[x] = y\n if rank[x] == rank[y]:\n rank[y] += 1\n return ret\n\ndef is_same(x, y):\n return find(x) == find(y)\n\ndef size(x):\n return -node[find(x)]\n\nn, m = map(int,input().split())\nnode = [-1 for i in range(n + 1)]\nrank = [0 for i in range(n + 1)]\ne = [[int(i) for i in input().split()] for i in range(m)]\nans = deque()\nnum = int((n * (n - 1)) // 2)\ns = 0\nfor i in e[::-1]:\n s1 = size(i[0])\n s2 = size(i[1])\n ans.appendleft(num)\n if unite(i[0], i[1]):\n num -= s1 * s2\nfor i in ans:\n print(i)\n', '# coding: UTF-8\nimport sys\n\nimport heapq\nimport re\nimport bisect\nimport random\nimport math\nimport itertools\nfrom collections import defaultdict, deque\nfrom copy import deepcopy\nfrom decimal import *\n\na, b, c = map(int, input().split())\n\ncnt = 0\nfor i in range(c):\n if b >= a:\n cnt += 1\n b -= a\n else:\n break\nprint(cnt)\n\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s985596138', 's253236219'] | [6724.0, 6864.0] | [65.0, 70.0] | [1129, 374] |
p03105 | u684695949 | 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? | ['in_s = input().rstrip()\nlst = list(in_s)\ncur=0\nwhile True:\n if cur+1 >= len(lst):\n break\n if lst[cur]!=lst[cur+1]:\n del lst[cur+1]\n del lst[cur]\n cur = max(0,cur-1)\n else:\n cur+=1\n\nprint(len(in_s) - len(lst))', 'a,b,c = [int(s) for s in input().split()]\nprint(min(b//a,c))'] | ['Wrong Answer', 'Accepted'] | ['s677745502', 's520820431'] | [3064.0, 2940.0] | [17.0, 17.0] | [252, 60] |
p03105 | u685244071 | 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\ncount = a // b\n\nif count < c:\n print(count)\nelse:\n print(c)', 'a, b, c = map(int, input().split())\n\ncount = b // a\n\nif count < c:\n print(count)\nelse:\n print(c)\n'] | ['Wrong Answer', 'Accepted'] | ['s937886890', 's655489072'] | [2940.0, 2940.0] | [18.0, 17.0] | [98, 99] |
p03105 | u685662874 | 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())\nmax=a*c\nif b >= max:\n print(c)\nelse:\n print(b//a)\n', 'a,b,c=map(int, input().split())\nif b >= a*c:\n print(c)\nelse:\n print(b//a)\n'] | ['Runtime Error', 'Accepted'] | ['s104441475', 's251166500'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 80] |
p03105 | u688375653 | 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())\nD=B//A\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(D)\nelse:\n print(C)\n'] | ['Wrong Answer', 'Accepted'] | ['s431509964', 's457900615'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 80] |
p03105 | u689835643 | 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? | ['x, y, z = map(int, input().split())\nif y // x >= z:\n print("z")\nelse:\n print(y//x)\n', 'x, y, z = map(int, input().split())\nif y // x >= z:\n print(z)\nelse:\n print(y//x)\n'] | ['Wrong Answer', 'Accepted'] | ['s754912552', 's277569063'] | [2940.0, 2940.0] | [18.0, 17.0] | [89, 87] |
p03105 | u690892152 | 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()))\np=B//A\nif p>=C:\n print(C)\nelse:\n print(p)', 'A,B,K=map(int,input().split())\nl=[]\np=A\nq=B\nif A>B:\n A=q\n B=p\nfor i in range(1,B+1):\n if A%i==0 and B%i==0:\n l.append(i)\n\nprint(l[K-1])\n', 'A,B,C=map(int,input().split())\np=B//A\nif p>=C:\n print(C)\nelse:\n print(p)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s380763914', 's932057390', 's841942036'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [75, 152, 74] |
p03105 | u692514846 | 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())\nif (B // A) > C:\n ans = C\nelse:\n ans = B // A\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s098699622', 's740031337'] | [2940.0, 2940.0] | [18.0, 18.0] | [48, 98] |
p03105 | u696728636 | 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(map(int, input().split()))\nl1 = []\na, b, c = l[0], l[1], l[2]\nm = min(a,b)\n\nfor i in range(1, m+1):\n if a%i==0 and b%i==0:\n l1.append(i)\n\nprint(sorted(set(l1))[c-1])', 'l = list(map(int, input().split()))\nl1 = []\na, b, c = l[0], l[1], l[2]\nm = min(a,b)\n\nfor i in range(1, m+1):\n if a%i==0 and b%i==0:\n l1.append(i)\n\nprint(sorted(set(l1))[c-1])', 'l = list(map(int, input().split()))\na, b, c = l[0], l[1], l[2]\n\nif b/a>c:\n print(c)\nelse:\n print(int(b/a))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s517992093', 's725926089', 's838628100'] | [3060.0, 3060.0, 2940.0] | [18.0, 18.0, 18.0] | [178, 178, 108] |
p03105 | u697713131 | 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 = map(int,input().split())\nisl1 = [0]*m\nisl2 = [0]*m\nfor i in range(m):\n (isl1[i], isl2[i]) = map(int,input().split())\n isl1[i] -= 1\n isl2[i] -= 1\nboss = [-1]*n\nmem = [1]*n\ndpt = [0]*n\nans = [0]*m\ns = (n*(n-1))//2\nans[m-1] = s\n \ndef sea(i, boss):\n m = 0\n while boss[i] >= 0:\n i = boss[i]\n m += 1\n return i,m\n \nfor j in range(m-1):\n i = m-j-1\n i1,i2 = isl1[i],isl2[i]\n p1,m1 = sea(i1, boss)\n p2,m2 = sea(i2, boss)\n if p1 != p2:\n if dpt[m1] < dpt[m2]:\n (p1,p2) = (p2,p1)\n boss[p2] = p1\n s -= mem[p1]*mem[p2]\n mem[p1] += mem[p2]\n mem[p2] = 0\n dpt[p1] = max(dpt[p1],dpt[p2]+1)\n ans[i-1] = s\n \nfor i in range(m):\n print(ans[i])', 'a,b,c = map(int,input().split())\nprint(min(c,b//a))'] | ['Runtime Error', 'Accepted'] | ['s758776226', 's817602718'] | [3064.0, 2940.0] | [18.0, 17.0] | [769, 51] |
p03105 | u698501671 | 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())\ni = 0\nwhile i < C or i < int B/A:\n i += 1\nprint(i)', 'A,B,C = map(int,input().split())\ni = 0\nwhile i < C and i < int(B/A):\n i += 1\nprint(i)'] | ['Runtime Error', 'Accepted'] | ['s575704759', 's057234507'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 88] |
p03105 | u701318346 | 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:\n print(C)\nelse:\n print(B//A)', 'A, B, C = map(int, input().split())\n\nif B // A >= C:\n\tprint(C)\nelse:\n\tprint(B // A)'] | ['Wrong Answer', 'Accepted'] | ['s796694269', 's631824121'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 83] |
p03105 | u708255304 | 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(input().split())\nprint(min(c, b//a))\n', '\n\n#include <cstdio>\nusing namespace std;\n\nint main(){\n //入力\n int A, B, C;\n cin >> A >> B >> C;\n\n //処理\n int ans = B / A;\n if (ans > C) ans = C;\n\n //出力\n cout << ans << endl;\n}\n', 'a, b, c = map(int, input().split())\nprint(min(c, b//a))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s052541480', 's224715276', 's618087831'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 19.0] | [51, 230, 56] |
p03105 | u708615801 | 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\nstdin = sys.stdin\n\ndef li(): return map(int, stdin.readline().split())\n\nA, B, C = tuple(li())\ntimes = B // A\nprint(min(A, C))\n', 'import sys\nstdin = sys.stdin\n\ndef li(): return map(int, stdin.readline().split())\n\nA, B, C = tuple(li())\ntimes = B // A\nprint(min(times, C))\n'] | ['Wrong Answer', 'Accepted'] | ['s753500996', 's791789507'] | [2940.0, 2940.0] | [18.0, 17.0] | [137, 141] |
p03105 | u710397511 | 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())\nprint(min(b/a,c))', 'a=int(input())\nb=int(input())\nc=int(input())\nprint(min(b//a,c))\n', 'a,b,c=map(int,input().split())\nprint(min(b//a,c))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s259011782', 's937440706', 's738478008'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 22.0] | [62, 64, 49] |
p03105 | u711690275 | 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\nargs = []\n\nargs.append(int(input()))\nargs.append(int(input()))\nargs.append(int(input()))\n\nresult = int(args[1] / args[0])\nif result > args[2]:\n result = args[2]\nprint(result)\n', 'import sys\n\nstrings = str(input())\nstrings_list = []\nfor s in strings:\n strings_list.append(s)\n\n\n\nflag = 1\nnum = 0\nwhile flag == 1:\n flag = 0\n for i in range(len(strings_list) - 1):\n if strings_list[i] != strings_list[i + 1]:\n del strings_list[i+1], strings_list[i]\n num += 2\n flag = 1\n break\n\nprint(num)\n', 'import sys\n\nargs = sys.argv\n\nresult = int(int(args[2]) / int(args[1]))\nif result > int(args[3]):\n result = int(args[3])\nprint(result)\n', 'import sys\n\nstrings = str(input())\nstrings_list = []\nfor s in strings:\n strings_list.append(s)\n\n\n\nflag = 1\nnum = 0\nmiddle = 0\nwhile flag == 1:\n flag = 0\n for i in range(middle, len(strings_list) - 1):\n if strings_list[i] != strings_list[i + 1]:\n del strings_list[i+1], strings_list[i]\n num += 2\n flag = 1\n break\n\nprint(num)\n', 'import sys\n\nargs = sys.argv\n\nresult = int(int(args[2]) / int(args[1]))\nif result > int(args[3]):\n result = int(args[3])\nprint(result)\n', 'import sys\n\nargs = []\nargs[0] = int(input())\nargs[1] = int(input())\nargs[2] = int(input())\n\nresult = int(args[1]) / args[0])\nif result > args[2]:\n result = args[2]\nprint(result)\n', 'import sys\n\n\nargs = str(input()).split(" ")\n\nresult = int(int(args[1]) / int(args[0]))\nif result > int(args[2]):\n result = int(args[2])\nprint(result)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s099771911', 's317905132', 's346673442', 's756203781', 's819034964', 's957557373', 's438880724'] | [2940.0, 3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 18.0, 18.0, 17.0, 17.0] | [190, 365, 137, 384, 137, 181, 153] |
p03105 | u712975113 | 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,B,K=map(int,input().split())\nd=[]\nif math.gcd(A,B)==1:\n d.append(1)\nelse:\n for i in range(2,math.gcd(A,B)+1):\n if A%i==0 and B%i==0:\n d.append(i)\nprint(d[len(d)-K])', 'import math\nA,B,K=map(int,input().split())\nd=[]\nfor i in range(1,max(A,B)+1):\n if A%i==0 and B%i==0:\n d.append(i)\nprint(d[len(d)-K])', 'A,B,C=map(int,input().split())\nif B>A*C:\n print(C)\nelse:\n print(B//A)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s061229086', 's907680828', 's435939103'] | [3060.0, 3060.0, 2940.0] | [17.0, 18.0, 18.0] | [202, 142, 75] |
p03105 | u714378447 | 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:\n print(c)\nelse:\n print(a//b)', 'a,b,c = map(int,input().split())\nif a//b >= c:\n print(c)\nelse:\n print(a//b)\n', 'a,b,c = map(int,input().split())\nif a//b >= c:\n print(c)\nelse:\n print(a//b)\n', 'a,b,c = map(int,input().split())\nif b//a >= c:\n print(c)\nelse:\n print(b//a)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s005353396', 's670776761', 's788967117', 's484747067'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [77, 78, 78, 78] |
p03105 | u716277711 | 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())\nd=B//A\nif d<=C:\n print(d)\n else:\n print(C)\n', 'A,B,C=map(int,input().split)\nd=B//A\nif d<C:\n print(d)\nelse:\n print(C)', 'A,B,C=map(int,input().split())\nd=B//A\nif d<C:\n print(d)\n else:\n print(C)', 'A,B,C=map(int,input().split())\nd=B//A\nif d<C:\n print(d)\nelse:\n print(C)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s493168301', 's530397026', 's807569191', 's902407399'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [79, 71, 77, 74] |
p03105 | u716649090 | 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, b//a)', 'a, b, c = map(int, input().split())\nprint(min(c, b//a))'] | ['Runtime Error', 'Accepted'] | ['s077060443', 's278209992'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 55] |
p03105 | u720124072 | 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:\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)'] | ['Wrong Answer', 'Accepted'] | ['s916114010', 's576144466'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 79] |
p03105 | u720636500 | 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, C)', 'A, B, C = map(int, input().split())\nprint(min(B//A, C))'] | ['Wrong Answer', 'Accepted'] | ['s466891149', 's816229978'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 55] |
p03105 | u732870425 | 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%a <= c else c)', 'a,b,c = map(int, input().split())\nprint(b//a if b//a <= c else c)'] | ['Wrong Answer', 'Accepted'] | ['s199120940', 's446360944'] | [2940.0, 2940.0] | [17.0, 20.0] | [65, 65] |
p03105 | u739362834 | 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 = []\nans = 0\nfor c in input():\n if (len(S) > 0) and (c != S[-1]):\n S.pop()\n ans += 2\n else:\n S.append(c)\nprint(ans)\n', 'A, B, C = map(int, input().split())\nif (B / A < C):\n print(int(B / A))\nelse:\n print(C)\n'] | ['Wrong Answer', 'Accepted'] | ['s136887192', 's982262691'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 93] |
p03105 | u740047492 | 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 int(b/a<=c) else int(b/a))', 'a,b,c=map(int,input().split())\nprint(c if b/a<=c else b/a)', 'a,b,c=map(int,input().split())\nprint(c if b//a<=c else b//a)', 'a,b,c=map(int,input().split())\nprint(min(b//a,c))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s738277012', 's782524542', 's812915597', 's117149486'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [68, 58, 60, 49] |
p03105 | u747602774 | 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'] | ['s754510161', 's808364079'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 51] |
p03105 | u747873993 | 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? | ['\nA,B,K=(int(i) for i in input().split())\nresult=[]\nfor i in range(1,min(A,B)+1):\n if A%i==0 and B%i==0:\n result.append(i)\nresult.reverse()\nprint(result[K-1])', 'A,B,C=(int(i) for i in input().split())\nif A*C<=B:\n print(C)\nelse:\n print(int(B/A)', 'A,B,C=(int(i) for i in input().split())\nif A*C<=B:\n print(C)\nelse:\n print(int(B/A))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s455271821', 's850869665', 's688147163'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [196, 84, 85] |
p03105 | u748614148 | 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, c = map(int, input().split())\n\n\nif a*c >= b:\n\toutput = c\n\nelse:\n\toutput = b // a\n\nprint(output)', '# -*- coding: utf-8 -*-\n\nprice, money, satis = map(int, input().split())\n\n\nif price * satis <= money:\n\toutput = satis\n\nelse:\n\toutput = money // price\n\nprint(output)'] | ['Wrong Answer', 'Accepted'] | ['s793653834', 's349149090'] | [2940.0, 2940.0] | [17.0, 17.0] | [256, 294] |
p03105 | u756693875 | 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())\nd = a // b\nif d >= c:\n print(c)\nelse:\n print(d)', 'a,b,c = map(int,input().split())\n\ncount = b // a\nif count < c:\n print(count)\nelse:\n print(c)'] | ['Wrong Answer', 'Accepted'] | ['s350479180', 's988361329'] | [3316.0, 2940.0] | [19.0, 17.0] | [86, 98] |
p03105 | u761471989 | 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 = list(input())\nN = len(S)\n\nc=0\ni=0\nf=0\nwhile(1):\n if S[i] != S[i+1]:\n del S[i:i+2]\n c+=2\n N-=2\n i-=1\n f=1\n if N<2:\n break\n i+=1\n if i+1 == N:\n i=0\n if f==0:\n break\n f=0\n print(i,N,S,f)\nprint(c)', 'a,b,c=input().split()\n\na=int(a)\nb=int(b)\nc=int(c)\n\nres=0\nif b/a > c:\n res=c\nelse:\n res=b/a\nprint(int(res)', 'a,b,c=input().split()\n\na=int(a)\nb=int(b)\nc=int(c)\n\nres=0\nif b/a > c:\n res=c\nelse:\n res=b/a\n\nprint(int(res))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s066192889', 's189017518', 's162816779'] | [3064.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [285, 111, 113] |
p03105 | u762540523 | 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%a,c))', 'a,b,c=map(int,input().split());print(min(b//a,c))'] | ['Wrong Answer', 'Accepted'] | ['s515787495', 's306130238'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 49] |
p03105 | u766566560 | 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 B > A * C:\n print(A * C)\nelif A * C > B and B > A:\n print(A)\nelse:\n print(0)', 'A, B, C = map(int, input().split())\n\nif B > A * C:\n print(A * C)\nelse:\n print(A)', 'A, B, C = map(int, input().split())\n \nif B > A * C:\n print(C)\nelse:\n print(B // A)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s771806858', 's930998586', 's705540226'] | [2940.0, 3444.0, 2940.0] | [17.0, 22.0, 18.0] | [119, 82, 84] |
p03105 | u771406607 | 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, B//A)', 'A, B, C = map(int, input().split())\nprint(min(C, B//A))'] | ['Runtime Error', 'Accepted'] | ['s989398965', 's438406403'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 55] |
p03105 | u773686010 | 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(B//A)', 'A,B,K = map(int,input().split())\nprint((B//A,K)[B//A >= K])'] | ['Wrong Answer', 'Accepted'] | ['s850943572', 's692818610'] | [9032.0, 9100.0] | [28.0, 28.0] | [44, 59] |
p03105 | u774160580 | 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()))\nans = []\nfor i in range(min(A, B), 0, -1):\n if A % i == 0 and B % i == 0:\n ans.append(i)\n if len(ans) == K:\n break\nprint(ans[-1])\n', 'A, B, C = list(map(int, input().split()))\nprint(min(C, A // B))\n', 'A, B, C = list(map(int, input().split()))\nif A // B > C:\n print(C)\nelse:\n print(A // B)\n', 'A, B, C = list(map(int, input().split()))\ncan_buy = B // A\nif can_buy > C:\n print(C)\nelse:\n print(can_buy)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s162328838', 's416099176', 's602514693', 's049934940'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [192, 64, 94, 113] |
p03105 | u776871252 | 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\n\nwhile A <= B:\n B = B - A\n \n if cnt >= C\n break\n cnt+=1\nprint(cnt)', 'A, B, C = map(int, input().split())\ncnt = 0\n \nwhile A <= B:\n B = B - A\n \n if cnt >= C:\n break\n cnt+=1\nprint(cnt)'] | ['Runtime Error', 'Accepted'] | ['s231487873', 's328690649'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 119] |
p03105 | u782748646 | 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? | ['data = input().split()\nn = int(data[0])\nm = int(data[1])\nedge=[]\nfor i in range(m):\n tmp = []\n data = input().split()\n tmp.append(int(data[0])-1)\n tmp.append(int(data[1])-1)\n edge.append(tmp)\n\ngrp=list(range(0, n))\ndef group(num):\n if grp[num] == num:\n return num\n return group(grp[num])\n\ndef merge(num1, num2):\n grp[num2]=grp[num1]\n\nres=[]\nans = [1]*n\nben = int(n*(n-1)/2)\nedge.reverse()\nfor e in edge:\n \n res.append(ben)\n g0 = group(e[0])\n g1 = group(e[1])\n if g0 != g1:\n ben -= ans[g0]*ans[g1]\n sum = ans[g0]+ans[g1]\n merge(g0, g1)\n ans[g0]=sum\n ans[g1]=sum\n\nres.reverse()\nfor r in res:\n print(r)\n\n#print(int(n*(n-1)/2))', 'data = input().split()\na = int(data[0])\nb = int(data[1])\nc = int(data[2])\n\nif b >= (a*c):\n print(c)\nelse:\n print(int(b/a))'] | ['Runtime Error', 'Accepted'] | ['s048982213', 's482523900'] | [3064.0, 2940.0] | [21.0, 17.0] | [731, 128] |
p03105 | u783175749 | 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:\n A=c\nelse:\n A=a//b\nprint(A)', 'a,b,c=map(int,input().split())\nif a//b >= c:\n A=c\nelse:\n A=a//b', 'a,b,c=map(int,input().split())\nif b//a >= c:\n A=c\nelse:\n A=b//a\nprint(A)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s766958836', 's975467340', 's593159826'] | [3064.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [78, 69, 78] |
p03105 | u784432269 | 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(a,b,c)\n\nif(b//a >= c):\n print(c)\nelse:\n print(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'] | ['s010593049', 's945260398'] | [2940.0, 2940.0] | [17.0, 18.0] | [92, 79] |
p03105 | u787456042 | 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(input())\nprint(min(b//a, c))', 'a, b, c = list(map(int, input().split()))\nprint(min(b//a, c))'] | ['Runtime Error', 'Accepted'] | ['s577361660', 's584942041'] | [2940.0, 2940.0] | [17.0, 17.0] | [42, 61] |
p03105 | u788023488 | 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())\nj=0\nfor i in range(100,0):\n A=a%i\n B=b%i\n if A==0:\n if B==0:\n j+=1\n print(i)\n if j==k:\n print(i)\n break', 'a,b,c = map(int,input().split())\nif b//a >= c:\n print(c)\nelse:\n print(b//a)'] | ['Wrong Answer', 'Accepted'] | ['s567229094', 's673451866'] | [2940.0, 2940.0] | [17.0, 17.0] | [159, 77] |
p03105 | u793174294 | 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\nN=input()\n\nA=N.count("1")\nB=N.count("0")\nif A==0 or B==0:\n print(0)\n exit()\n\nprint(min(A,B)*2)', '#Coding:Utf-8\n\nA,B,C=map(int,input().split())\nimport math\n\nif math.floor(B/A)>C:\n print(C)\nelse:\n print(math.floor(B/A))'] | ['Wrong Answer', 'Accepted'] | ['s048473542', 's166200689'] | [2940.0, 2940.0] | [17.0, 17.0] | [111, 126] |
p03105 | u793405633 | 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 n=B//A\n print(n)', 'A=int(input())\nB=int(input())\nC=int(input())\nif A*C<=B:\n print(C)\nelse:\n n=B//A\n print(n)', 'A,B,C= map(int, input().split())\nif A*C<=B:\n print(C)\nelse:\n n=B//A\n print(n)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s199530398', 's524071311', 's422000354'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [98, 98, 86] |
p03105 | u796044734 | 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 int(b/a) >= c:\n print(c)\nelif:\n print(int(b/a))\n', 'a,b,c = map(int,input().split())\n\nif b//a >= c:\n print(c)\nelif:\n print(b//a)', 'a,b,c = map(int,input().split())\n\nif b//a >= c:\n print(c)\nelse:\n print(b//a)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s138534442', 's672685284', 's777396360'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [87, 78, 79] |
p03105 | u800704240 | 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)\nelif a > b:\n print(0)\nelif a * c >b:\n print(a)', 'a,b,c = map(int,input().split())\nprint(min(b//a,c))'] | ['Runtime Error', 'Accepted'] | ['s040810135', 's338984963'] | [2940.0, 2940.0] | [18.0, 18.0] | [112, 51] |
p03105 | u802963389 | 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())\nprint(min(C,B//A))', 'A,B,C = map(int, input().split())\nprint(min(C,B//A))'] | ['Runtime Error', 'Accepted'] | ['s208404867', 's864074271'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 52] |
p03105 | u807889603 | 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())\nA = b/a\nif A<c:\n ans = A\nelse:\n ans = c\nprint(ans)', 'a,b,c = map(int, input().sprit())\nA = b/a\nif A<c:\n ans = A\nelse:\n ans = c\nprint(ans)', 'a,b,c = map(int, input().split())\nA = int(b/a)\nif A<c:\n ans = A\nelse:\n ans = c\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s123405209', 's272567032', 's918449615'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [78, 86, 91] |
p03105 | u811374085 | 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 = input().split()\nif (int((int(a[1]) / int(a[0]))) <= int(a[2])):\n\tprint(int(int(a[1]) / int(a[0])))\nelse:\n print(0)', 'a = input().split()\nif ((int(a[1]) / int(a[0])) <= int(a[2])):\n\tprint(int(int(a[1]) / int(a[0])))\nelse:\n print(0)', 'a = input().split()\nif (int((int(a[1]) / int(a[0]))) <= int(a[2])):\n\tprint(int(int(a[1]) / int(a[0])))\nelse:\n print(a[2])'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s128944502', 's575023153', 's045500016'] | [3064.0, 2940.0, 3060.0] | [19.0, 17.0, 17.0] | [119, 114, 122] |
p03105 | u816872429 | 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'] | ['s919798860', 's612375024'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 57] |
p03105 | u831328139 | 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\nl = []\nfor line in sys.stdin:\n l.append([int(i) for i in line.split()])\n\na, b, c = l\nif b >= a * c:\n print(c)\nelse:\n print(b//a)\n ', 'import sys\n \nl = []\nfor line in sys.stdin:\n l.append([int(i) for i in line.split()])\n \na, b, c = l[0]\nif b >= a * c:\n print(c)\nelse:\n print(b//a)'] | ['Runtime Error', 'Accepted'] | ['s011856032', 's911665736'] | [2940.0, 3060.0] | [24.0, 17.0] | [153, 148] |
p03105 | u831752983 | 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(a//b,c))', 'a,b,c=map(int,input().split())\nprint(min(b//a,c))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s243248100', 's937760361', 's120392090'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [48, 49, 49] |
p03105 | u833416137 | 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? | ['input = input().split()\n\nintInput = [int(i) for i in input]\n\nresult = 0\n\n\nif(intInput[0]*intInput[2] <= intInput[1]):\n\tprint(intInput[0]*intInput[2])\n\nelif(intInput[0]>intInput[1]):\n\tprint(0)\n\nelse:\n\tfor i in range(intInput[2]):\n\t\tresult = result + intInput[0]\n\t\tif(intInput[1] - result < intInput[0]):\n\t\t\tprint(i+1)\n\t\t\tbreak', 'input = input().split()\n\nintInput = [int(i) for i in input]\n\nresult = 0\n\n\nif(intInput[0]*intInput[2] <= intInput[1]):\n\tprint(intInput[2])\n\nelif(intInput[0]>intInput[1]):\n\tprint(0)\n\nelse:\n\tfor i in range(intInput[2]):\n\t\tresult = result + intInput[0]\n\t\tif(intInput[1] - result < intInput[0]):\n\t\t\tprint(i+1)\n\t\t\tbreak'] | ['Wrong Answer', 'Accepted'] | ['s502980900', 's081186471'] | [3060.0, 3060.0] | [17.0, 17.0] | [406, 394] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.