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
|
---|---|---|---|---|---|---|---|---|---|---|
p03773 | u185037583 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=input().split()\nsum=a+b\nprint(sum if sum<24 else sum-24)', 'a,b=map(int,input().split())\nsum=a+b\nprint(sum if sum<24 else sum-24)\n'] | ['Runtime Error', 'Accepted'] | ['s348565716', 's757277328'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 70] |
p03773 | u197968862 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['n = int(input())\nele = []\ni = 1\nwhile i * i <= n:\n if n % i == 0:\n ele.append([len(str(i)),len(str(n // i))])\n i += 1\n\nk = max(ele[0][1],ele[0][0])\nfor i in range(len(ele)):\n k = min(max(ele[i][0],ele[i][1]),k)\nprint(k)', 'a, b = map(int,input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s700112504', 's760741853'] | [3064.0, 2940.0] | [17.0, 17.0] | [235, 47] |
p03773 | u209275335 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().split())\nprint((a+b)//24)', 'a,b = map(int,input().split())\nprint((a+b)%24)'] | ['Wrong Answer', 'Accepted'] | ['s360336277', 's046524783'] | [9056.0, 9076.0] | [27.0, 23.0] | [47, 46] |
p03773 | u214617707 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int, inpput().split())\nprint((a + b) % 24)\n', 'a, b = map(it, inpput().split())\nprint((a + b) % 24)', 'a, b = map(int, input().split())\nprint((a + b) % 24)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s029412259', 's958746978', 's189321362'] | [2940.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0] | [54, 52, 53] |
p03773 | u217303170 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ["a,b=map(int,input().split())\nif a+b > 24:\n print('24-a-b')\nelse:\n print('a+b')", "a,b=map(int,input().split())\nif a+b >= 24:\n print('24-a-b')\nelse:\n print('a+b')", 'a,b=map(int,input().split())\nif a+b >= 24:\n print((a+b)-24)\nelse:\n print(a+b)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s382329896', 's621051914', 's828284674'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [80, 81, 79] |
p03773 | u217888679 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nprint((a+b)/24)', 'a,b=map(int,input().split())\nprint((a+b)%24)\n'] | ['Wrong Answer', 'Accepted'] | ['s006311620', 's656253810'] | [2940.0, 3316.0] | [17.0, 19.0] | [44, 45] |
p03773 | u221345507 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['N = int(input())\nans = 10**10 \nans_ = 10**10\n\ndivisors = []\nfor i in range(1, int(N**0.5)+1):\n if N % i == 0:\n divisors.append(i)\n if i != N // i:\n divisors.append(N//i)\n if len(str(N//i))<=ans:\n ans =N//i\n ans_=i\n \nif N ==1:\n ans =1\n \nprint(max(len(str(ans)),len(str(ans_))))', 'A,B=map(int,input().split())\ntime=A+B\nif time>=24:\n print (time-24)\nelse:\n print (time)'] | ['Runtime Error', 'Accepted'] | ['s954000881', 's061633969'] | [3064.0, 2940.0] | [18.0, 17.0] | [389, 93] |
p03773 | u223904637 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input())\nif a+b>=24:\n print(a+b-24)\nelse:\n print(a+b)', 'a,b=map(int,input().split())\nif a+b>=24:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s366042805', 's562719230'] | [2940.0, 2940.0] | [18.0, 17.0] | [71, 79] |
p03773 | u226779434 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().splilt())\nprint((a + b) % 24)', 'a,b = map(int,input().split())\nprint((a + b) % 24)'] | ['Runtime Error', 'Accepted'] | ['s806400472', 's176983149'] | [8900.0, 8964.0] | [19.0, 26.0] | [51, 50] |
p03773 | u231540466 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['print(sum(map(int,raw_input().split()))%24)', 'print(sum(map(int,input().split()))%24)'] | ['Runtime Error', 'Accepted'] | ['s112336957', 's354639263'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 39] |
p03773 | u238130426 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int, split.input())\nprint((a+b)%24)', 'a, b = map(int, input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s859910311', 's264665946'] | [2940.0, 3064.0] | [17.0, 17.0] | [46, 48] |
p03773 | u243699903 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,m=map(int,input().split())\nprint((a+b)%24)', 'a,b=map(int,input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s156915836', 's148467732'] | [2940.0, 2940.0] | [17.0, 18.0] | [44, 44] |
p03773 | u247781603 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = int(input().split())\nprint(a)\nc = a + b\nif c <= 24:\n print(c)\nelse:\n print(c - 24)', 'a, b = int(input().split())\nc = a + b\nif c <= 24:\n print(c)\nelse:\n print(c - 24)', 'a, b = map(int, input().split())\nc = a + b\nif c < 24:\n print(c)\nelse:\n print(c - 24)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s021147066', 's630362116', 's639234792'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [95, 86, 90] |
p03773 | u250944591 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ["print(eval(input().replace(' ','+'))//24)", "print(eval(input().replace(' ','+'))%24)"] | ['Wrong Answer', 'Accepted'] | ['s888248857', 's380653334'] | [9080.0, 9080.0] | [26.0, 28.0] | [41, 40] |
p03773 | u257974487 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = input().split()\nif a == "H":\n print(b)\nelse:\n if b == "H":\n print("D")\n else:\n print("H")', 'a,b = map(int,input().split())\ns = a + b\nif s < 24:\n print(s)\nelse:\n print(s-24)'] | ['Wrong Answer', 'Accepted'] | ['s712652132', 's112047799'] | [2940.0, 2940.0] | [17.0, 17.0] | [118, 86] |
p03773 | u265118937 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B=map(int,input().split())\nprint((A+B)%2)', 'a, b = map(int, input().split())\nif a + b > 24:\n print(a + b - 24)\nelif a + b == 24:\n print(0)\nelse:\n print(a + b)'] | ['Wrong Answer', 'Accepted'] | ['s713394065', 's876916504'] | [2940.0, 3060.0] | [18.0, 17.0] | [43, 123] |
p03773 | u265689893 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['# -*- coding: utf-8 -*-\nimport math\nN, A, B = map(int, input().split())\nV = list(map(int, input().split()))\nV.sort(reverse=True)\nmaxavg = sum(V[:A])/A\nprint(maxavg)\nmin = V[A-1]\nltAnum = 0\nminnum = 0\nfor i in range(N):\n if V[i] > min:\n ltAnum = ltAnum + 1\n elif V[i] == min:\n minnum = minnum + 1\n else:\n break\n#print(ltAnum)\n#print(minnum)\n\nimport math\ndef nCr(n,r):\n f = math.factorial\n return f(n)//f(r)//f(n-r)\n\nc_min = 0\nimport itertools\nif ltAnum > 0:\n c_min = nCr(minnum, A-ltAnum)\nif ltAnum == 0:\n for j in range(A, B+1):\n if minnum < j:\n break\n else:\n c_min = c_min + nCr(minnum, j)\nprint(c_min)\n', '# -*- coding: utf-8 -*-\nN, M = map(int, input().split())\nstudents = []\ncheckpoints = []\nfor i in range(N):\n students.append(list(map(int, input().split())))\n#print(students)\nfor i in range(M):\n checkpoints.append(list(map(int, input().split())))\n#print(checkpoints)\nfor i in range(N):\n mincp = -1\n mindist = -1\n for j in range(M):\n dist = abs(students[i][0]-checkpoints[j][0]) + abs(students[i][1]-checkpoints[j][1])\n if mincp == -1:\n mincp = j\n mindist = dist\n else:\n if dist < mindist:\n mindist = dist\n mincp = j\n print("%d" % (mincp+1))\n', '# -*- coding: utf-8 -*-\nA, B = map(int, input().split())\nprint("%d" % ((A+B)%24))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s525477045', 's879023387', 's590265595'] | [3188.0, 3064.0, 2940.0] | [19.0, 17.0, 17.0] | [682, 642, 82] |
p03773 | u268792407 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input())\nprint((a+b)%24)', 'a,b=map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s920371414', 's250120535'] | [2940.0, 2940.0] | [17.0, 17.0] | [36, 45] |
p03773 | u296150111 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=mp(int,input().split())\nif a+b>24:\n print(a+b-24)\nelse:\n print(a+b)', 'a,b=map(int,input().split())\nif a+b>23:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s014339898', 's781598842'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 72] |
p03773 | u305965165 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = (int(i) for i in input().split())\n\nres = a+b\nif res > 23\n print(res-24)\nelse:\n print(res)', 'a, b = (int(i) for i in input().split())\n \nres = a+b\nif res > 23:\n print(res-24)\nelse:\n print(res)'] | ['Runtime Error', 'Accepted'] | ['s658713241', 's137741117'] | [2940.0, 2940.0] | [17.0, 19.0] | [102, 104] |
p03773 | u306773664 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['#! coding: UTF-8\nN,A,B = list(map(int,input().split(" ")))\nV = list(map(int,input().split(" ")))\nV.sort(reverse=True)\nmax_avr = sum(V[:A]) / A\na_num = V.count(V[A-1])\na_pos = V[:A].count(V[A-1])\n\n\nimport math\ndef nCr(n,r):\n f = math.factorial\n return f(n) // f(r) // f(n-r)\n\nif V[0] == V[A-1]:\n cnt = sum(nCr(a_num,i) for i in range(A,min(B,a_num))) \nelse:\n cnt = nCr(a_num,a_pos)\nprint("{0:.10f}".format(max_avr))\nprint(int(cnt))\n', '#! coding: UTF-8\nN,A,B = list(map(int,input().split(" ")))\nV = list(map(int,input().split(" ")))\nV.sort(reverse=True)\nmax_avr = sum(V[:A]) / A\na_num = V.count(V[A-1])\na_pos = V[:A].count(V[A-1])\n\n\nimport math\ndef nCr(n,r):\n f = math.factorial\n return f(n) // f(r) // f(n-r)\n\ncnt = 0\nif V[0] == V[A-1]:\n while a_pos <= B:\n cnt += nCr(a_num,a_pos)\n a_pos += 1\nelse:\n cnt = nCr(a_num,a_pos)\nprint("{0:.10f}".format(max_avr))\nprint(int(cnt))\n', 'data = list(map(int,input().split(" ")))\nx = sum(data)\nif x >= 24:\n\tprint(x%24)\nelse:\n print(x)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s526019104', 's929461025', 's776239978'] | [3064.0, 3316.0, 2940.0] | [17.0, 19.0, 17.0] | [459, 480, 99] |
p03773 | u314219654 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().split())\nif a+b>24:\n print(a+b)\nelse:\n print(abs(b-a))', 'a,b = map(int,input().split())\nif a+b<24:\n print(a+b)\nelif a+b==24:\n print(0)\nelse:\n print(a+b-24)'] | ['Wrong Answer', 'Accepted'] | ['s694122847', 's323490674'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 101] |
p03773 | u318165580 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nif a+b<24:\n print(a+b)\n else:\n print((a+b)%24)', 'a,b=map(int,input().split())\nif a+b<24:\n print(a+b)\nelse:\n print((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s050756683', 's724644491'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 77] |
p03773 | u343437894 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['from math import factorial\n\nn, a, b = map(int, input().split(" "));\nv = list(map(int, input().split(" ")))\n\n\ndef product(iterable):\n prod = 1\n for n in iterable:\n prod *= n\n return prod\n\ndef npr(n, r):\n return product(range(n - r + 1, n + 1))\n\ndef ncr(n, r):\n if r > n // 2:\n r = n - r\n return npr(n, r) // factorial(r)\n\nv.sort();\nrevv=list(reversed(v))\nprint(sum(v[-a:])/a)\n\nrevpos=revv.index(v[-a]);\nnum=v.count(v[-a]);\nans=0;\nfor i in range(a-revpos, b-revpos+1):\n ans+=ncr(num, i);\nprint(ans);\n', 'a, b = map(int, input().split(" ");\nprint( (a+b) % 24)', 'import math;\n\nn, m = map(int, input().split(" "));\nab = [];\nfor i in range(0, n):\n ab.append(input().split(" "));\n\ncd = [];\nfor i in range(0, m):\n cd.append(input().split(" "));\n\nfor i in range(0, n):\n dist=9999999999999\n nearm=0;\n for j in range(0, m):\n dist2 = math.fabs(int(ab[i][0]) - int(cd[j][0])) + math.fabs(int(ab[i][1]) - int(cd[j][1]));\n if dist2 < dist:\n dist = dist2;\n nearm=j;\n print(nearm + 1);\n\n\n', 'a, b = map(int, input().split(" "));\nprint( (a+b) % 24);'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s248704592', 's315518269', 's462999644', 's838372903'] | [3064.0, 2940.0, 3064.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [533, 54, 468, 56] |
p03773 | u366644013 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(input().split())\nprint((a+b)%24)', 'a, b = map(int, input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s566245769', 's532594148'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 49] |
p03773 | u367130284 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split());print(sum(a,b)%24)', 'a=map(int,input().split());print(sum(a)%24)'] | ['Runtime Error', 'Accepted'] | ['s299756443', 's040108579'] | [2940.0, 2940.0] | [18.0, 18.0] | [47, 43] |
p03773 | u368749019 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import math\nN = int(input())\nans = 10\n\nfor i in reversed(range(1,int(math.sqrt(N)) + 1)):\n if N % i == 0:\n A = len(str(i))\n B = len(str(N // i))\n print (N // i)\n ans = min(ans,max(A,B))\n\nprint(ans)\n', 'A,B = (map(int, input().split()))\nprint (A + B if A + B < 24 else A + B - 24)'] | ['Runtime Error', 'Accepted'] | ['s462817035', 's233354015'] | [3060.0, 2940.0] | [18.0, 17.0] | [230, 77] |
p03773 | u369630760 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a=input().split()\nprint(abs(int(a[0])-int(a[1])))', 'a,b=map(int,input().split())\nif a+b >= 24:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s992217050', 's515474994'] | [9000.0, 9120.0] | [30.0, 26.0] | [49, 81] |
p03773 | u371409687 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nif a+b < 24:\nprint(a+b)\nelse : print(24-a-b)', 'a,b=map(int,input().split())\nif a+b < 24:print(a+b)\nelse : print(abs(24-a-b))'] | ['Runtime Error', 'Accepted'] | ['s215895087', 's763384012'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 77] |
p03773 | u371467115 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B=map(int,input().split())\nprint(eval(A+B))', 'A,B=map(int,input().split())\nif A+B>=24:\n print(A+B-24)\nelse:\n print(A+B)\n'] | ['Runtime Error', 'Accepted'] | ['s717091651', 's575879976'] | [2940.0, 2940.0] | [18.0, 18.0] | [45, 80] |
p03773 | u371573282 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['def distance(p1,p2):\n return abs(p1[0]-p2[0])+abs(p1[1]-p2[1])\n\nM,N=[int(x) for x in input().split()]\n\nstudent=[]\ncheck=[]\nfor i in range(0,M):\n a,b=[int(x) for x in input().split()]\n student.append((a,b))\n\nfor j in range(0,N):\n c,d=[int(x) for x in input().split()]\n check.append((c,d))\n\n\nfor i in range(0,M):\n dist=distance(student[i],check[N-1])\n num=N-1\n for j in range(0,N):\n k=N-j-1\n if dist>=distance(student[i],check[k]):\n dist=distance(student[i],check[k])\n num=k\n print(num+1)\n', 'A,B=[int(x) for x in input().split()]\nprint((A+B)%24)'] | ['Runtime Error', 'Accepted'] | ['s257535595', 's349689198'] | [3064.0, 2940.0] | [18.0, 18.0] | [550, 53] |
p03773 | u377036395 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int, input().split())\n \nans = a + b\nif ans < 24:\n print(s)\nelse:\n print(s - 24)', 'a,b = int(input().split())\nans = a + b\nif ans > 24:\n print(ans - 24)\nelse:\n print(ans)', 'a, b = map(int, input().split())\nans = a + b\n\nif ans < 24:\n print(ans)\nelse:\n print(ans - 24)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s633691900', 's841794164', 's330749548'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [95, 88, 99] |
p03773 | u384679440 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import math\nN = int(input())\nans = len(str(N))\nfor A in range(1, int(math.sqrt(N)) + 1):\n\tif N % A == 0:\n\t\tB = N // A\n\t\tans = min(ans, max(len(str(A)), len(str(B))))\nprint(ans)', 'A, B = map(int, input().split())\nif A + B > 24:\n print(A + B)\nelse:\n print(A + B - 24)', 'A, B = map(int, input().split())\nif A + B < 24:\n print(A + B)\nelse:\n print(A + B - 24)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s681054597', 's836155192', 's132833436'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [176, 88, 88] |
p03773 | u394482932 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['print(eval(int,input().replace(" ","+"))%24)', 'print(sum(map(int,input().split()))%24)'] | ['Runtime Error', 'Accepted'] | ['s638497479', 's266523103'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 39] |
p03773 | u396391104 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = int(input())\nprint((a+b)%24)', 'a,b = map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s024511473', 's743502514'] | [2940.0, 2940.0] | [18.0, 17.0] | [34, 47] |
p03773 | u399721252 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['print((int(input())+int(input()))%24)', 'a, b = [ int(v) for v in input().split() ]\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s579307270', 's580639338'] | [2940.0, 2940.0] | [17.0, 17.0] | [37, 58] |
p03773 | u403551852 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().split())\nprint(a+b if a+b >= 24 else (a+b)-24)', 'a,b = map(int,input().split())\nprint(a+b if a+b < 24 else (a+b)-24)\n'] | ['Wrong Answer', 'Accepted'] | ['s272032264', 's603456175'] | [2940.0, 2940.0] | [17.0, 18.0] | [68, 68] |
p03773 | u403984573 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B=map(int,input().split())\nprint(int(A+B/24))', 'A,B=map(int,input().split())\nprint(int((A+B)%24))'] | ['Wrong Answer', 'Accepted'] | ['s149907421', 's487778938'] | [2940.0, 2940.0] | [17.0, 18.0] | [47, 49] |
p03773 | u409064224 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a = list(map(int,input()split()))\n\nb = a[0] + a[1]\nif b > 24:\n b -= 24\nprint(b)', 'a = list(map(int,input().split()))\n\nb = a[0] + a[1]\nif b >= 24:\n b -= 24\nprint(b)'] | ['Runtime Error', 'Accepted'] | ['s090733136', 's595768484'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 82] |
p03773 | u415905784 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = map(int, input().split())\nreturn((A + B) % 24)', 'A, B = map(int, input().split())\nprint((A + B) % 24)\n'] | ['Runtime Error', 'Accepted'] | ['s849180777', 's573073048'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 53] |
p03773 | u422272120 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().split())\nprint (a+b) if a+b >= 24 else print (a+b-24)\n', 'a,b = map(int,input().split())\nprint (a+b) if a+b >= 24 print (a+b-24)\n', 'a,b = map(int,input().split())\nprint (a+b) if a+b < 24 else print (a+b-24)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s085846748', 's450357006', 's912470973'] | [9140.0, 8956.0, 9064.0] | [25.0, 24.0, 25.0] | [76, 71, 75] |
p03773 | u427344224 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['N, M = map(int, input().split())\n\nab_list = []\ncd_list = []\n\nfor i in range(N):\n ab = list(map(int, input().split()))\n ab_list.append(ab)\n\nfor i in range(M):\n cd = list(map(int, input().split()))\n cd_list.append(cd)\n\nfor a, b in ab_list:\n num = -1\n min_num = 10 ** 10 + 1\n count = 0\n for c, d in cd_list:\n count += 1\n distance = abs(a-c) + abs(b-d)\n if distance < min_num:\n min_num = distance\n num = count\n print(num)', 'A, B = map(int, input().split())\nif A+B < 24:\n print(A+B)\nelse:\n print(A+B-24)'] | ['Runtime Error', 'Accepted'] | ['s114676396', 's862421067'] | [3064.0, 2940.0] | [17.0, 17.0] | [487, 83] |
p03773 | u427690532 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['S_list = list(map(int,input("入力:").split()))\nans = S_list[0] + S_list[1]\nif ans <24 :\n result = ans\nelse:\n result = ans - 24\nprint(result)', 'S_list = list(map(int,input().split()))\nans = S_list[0] + S_list[1]\nif ans <24 :\n result = ans\nelse:\n result = ans - 24\nprint(result)\n'] | ['Wrong Answer', 'Accepted'] | ['s562518550', 's953637811'] | [9032.0, 9064.0] | [27.0, 27.0] | [151, 141] |
p03773 | u430478288 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['n, m = map(int, input().split())\nstu = []\ncheck = []\nfor i in range(n):\n stu.append(list(map(int, input().split())))\n\nfor i in range(m):\n check.append(list(map(int, input().split())))\n\n\nans = []\n\nfor i in range(n):\n dist = []\n for j in range(m):\n tmp = abs(stu[i][0] - check[j][0]) + abs(stu[i][1] - check[j][1])\n dist.append(tmp)\n mi = dist.index(min(dist))\n ans.append(mi)\n\n\nfor i in range(len(ans)):\n print(ans[i] + 1)\n', 'n, m = map(int, input().split())\nstu = []\ncheck = []\nfor i in range(n):\n stu.append(list(map(int, input().split())))\n\nfor i in range(m):\n check.append(list(map(int, input().split())))\n\n\nans = []\n\nfor i in range(n):\n dist = []\n for j in range(m):\n tmp = abs(stu[i][0] - check[j][0]) + abs(stu[i][1] - check[j][1])\n dist.append(tmp)\n mi = dist.index(min(dist))\n ans.append(mi)\n\n\nfor i in range(len(ans)):\n print(ans[i] + 1)', 'a, b = input().split()\nc = (a + b) % 24\nprint(c)', 'a, b = map(int, input().split())\nc = (a + b) % 24\nprint(c)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s207769850', 's605689610', 's974614884', 's399603202'] | [3064.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0] | [457, 456, 48, 58] |
p03773 | u432688695 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ["# -*- coding: utf-8 -*-\n\nimport sys\nimport os\n\nN, M = list(map(int, input().split()))\nstudents = []\ncheckpoints = []\n\nfor i in range(N):\n a, b = list(map(int, input().split()))\n students.append([a, b])\n\nfor i in range(M):\n a, b = list(map(int, input().split()))\n checkpoints.append([a, b])\n\nfor student in students:\n min_dist = float('inf')\n min_i = None\n for i, checkpoint in enumerate(checkpoints):\n manhattan_dist = abs(checkpoint[0] - student[0]) + abs(checkpoint[1] - student[1])\n if manhattan_dist < min_dist:\n min_dist = manhattan_dist\n min_i = i\n print(min_i + 1)\n", '# -*- coding: utf-8 -*-\n\nimport sys\nimport os\n\na, b = list(map(int, input().split()))\nc = (a + b) % 24\nprint(c)'] | ['Runtime Error', 'Accepted'] | ['s773643436', 's251513455'] | [3064.0, 2940.0] | [19.0, 18.0] | [632, 111] |
p03773 | u448655578 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = map(int, input().split())\nprint(sum(A,B)%24)', 'A,B = map(int, input().split())\nprint((A+B) % 24)'] | ['Runtime Error', 'Accepted'] | ['s142805859', 's686729236'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 49] |
p03773 | u453815934 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input())\nprint((a+b)%24)', 'a,b=map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s997438373', 's643266236'] | [3316.0, 2940.0] | [22.0, 17.0] | [36, 45] |
p03773 | u457957084 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int,input())\n\nif (a + b) < 25:\n print(a + b)\n\nelse:\n print((a + b) - 24)\n \n', 'a, b = map(int,input())\n\nif (a + b) < 25:\n print(a + b)\n\nelse:\n print(24 - (a + b))\n ', 'a, b = map(int,input().split())\n\nprint((a + b) % 24)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s181243603', 's325265003', 's844422989'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [89, 88, 53] |
p03773 | u475675023 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,inpuy().split())\nprint((a+b)%24)', 'print((int(input())+int(input()))%24)', 'a,b=map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s062078094', 's083163526', 's069706622'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [44, 37, 45] |
p03773 | u476383383 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['from itertools import combinations\nN,A,B = [int(i) for i in input().split()]\n\nv = [int(i) for i in input().split()]\nv.sort()\n\nif v[-A] != v[-A-1]:\n print(sum(v[-A:]) / A)\n print(1)\nelif v[-1] :\n \n \n cnt = 0\n bigger = 0\n for i in range(N):\n if v[A] < v[i]:\n bigger += 1\n if v[i] == v[A]:\n cnt += 1\n\n ans = 0\n mini = min(B, cnt+bigger)\n for i in range(A,mini):\n ans += len(list(combinations(range(cnt), i - bigger)))\n\n print(sum(v[-A:]) / A)\n print(ans)', 'A,B = [int(i) for i in input().split()]\n\nhour = (A + B) % 24\n\nprint(hour)'] | ['Runtime Error', 'Accepted'] | ['s555652455', 's936819856'] | [3064.0, 2940.0] | [17.0, 17.0] | [600, 73] |
p03773 | u479953984 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int, input().split())\n\nprintf((a + b) % 24)', 'a, b = map(int, input().split())\n\nprint((a + b) % 24)'] | ['Runtime Error', 'Accepted'] | ['s310143144', 's077315757'] | [2940.0, 2940.0] | [18.0, 18.0] | [54, 53] |
p03773 | u481165257 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['if __name__ == "__main__":\n times = [int(time) for time in input().split()]\n print((A+B)%24)', 'if __name__ == "__main__":\n times = [int(time) for time in input().split()]\n A = times[0]\n B = times[1]\n print((A+B)%24)'] | ['Runtime Error', 'Accepted'] | ['s577868901', 's925888278'] | [2940.0, 2940.0] | [18.0, 18.0] | [98, 132] |
p03773 | u481333386 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['# -*- coding: utf-8 -*-\n\n\ndef main():\n a, b = [int(e) for e in input().split()]\n answer = (a + b) % 23\n return answer\n\n\nprint((main())\n', '# -*- coding: utf-8 -*-\n\n\ndef main():\n a, b = [int(e) for e in input().split()]\n answer = (a + b) % 24\n return answer\n\n\nprint(main())\n'] | ['Runtime Error', 'Accepted'] | ['s288395939', 's532520414'] | [2940.0, 3064.0] | [17.0, 17.0] | [144, 143] |
p03773 | u484856305 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\n print(a+b%24)', 'a,b=map(int,input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s962089630', 's617957876'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 44] |
p03773 | u487288850 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nprint(max(a+b,a+b-24)', 'a,b=map(int,input().split())\nif a+b>=24:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s281667392', 's034878024'] | [8900.0, 9144.0] | [22.0, 25.0] | [50, 75] |
p03773 | u494748969 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int, input().split())\n\nif a + b == 24:\n print(0)\nelse:\n print((a + b) // 24)', 'a, b = map(int, input().split())\n\nprint((a + b) // 24)', 'a, b = map(int, input().split())\n\nif a + b >= 24:\n print(a + b - 24)\nelse:\n print(a + b)\n '] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s130876506', 's558538027', 's110010999'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 20.0] | [93, 54, 99] |
p03773 | u499259667 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nt=a+b\nprint(t if t>= 24 else t-24)', '(t if t < 24 else t-24)', 'a,b=map(int,input().split())\nt=a+b\nprint(t if t < 24 else t-24)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s098310008', 's931080768', 's342836828'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [63, 23, 63] |
p03773 | u503283842 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['def ncr(x,y):\n\tans=1\n\tq=x-y\n\twhile x>y:\n\t\tans*=x\n\t\tx=x-1\n\t\n\twhile q>1:\n\t\tans=ans/q\n\t\tq=q-1\n\t\n\treturn ans\n\nx=input().split()\nn=int(x[0])\na=int(x[1])\nb=int(x[2])\nv=[0]*n\nx = input().split()\nind=0\nM={1:0}\nM2={1:0}\nfor i in x:\n\tv[ind]=int(i)\n\tif int(i) in M:\n\t\tM[v[ind]]+=1\n\telse:\n\t\tM[v[ind]]=1\n\tind+=1\nv.sort(reverse=True)\n\ncnt=0\nind=0\nm=0\nwhile cnt<a:\n\tcnt+=1\n\tm=((cnt-1)*m+v[ind])/cnt\n\tif v[ind] in M2:\n\t\tM2[v[ind]]+=1\n\telse:\n\t\tM2[v[ind]]=1\n\tind+=1\nwhile cnt<b:\n\tif (cnt*m+v[ind])/(cnt+1)<m-0.5:\n\t\tbreak\n\telse:\n\t\tcnt+=1;\n\t\tif v[ind] in M2:\n\t\t\tM2[v[ind]]+=1\n\t\telse:\n\t\t\tM2[v[ind]]=1\n\t\tind+=1\nprint(m)\nmaxw=cnt;\nways=0;\nfor i in range(cnt,a-1,-1):\n\tif v[ind-1] not in M2:\n\t\t\tM2[v[ind]]=0\n\tif v[ind-1] not in M:\n\t\t\tM[v[ind-1]]=0\n\tways+=ncr(M[v[ind-1]],M2[v[ind-1]])\n\t\n\tM2[v[ind-1]]-=1\n\nprint(int(ways))\n\t', 'x=input().split()\nans=int(x[0])+int(x[1])\nprint(int(ans%24))'] | ['Runtime Error', 'Accepted'] | ['s894895509', 's128717697'] | [3188.0, 2940.0] | [18.0, 19.0] | [799, 60] |
p03773 | u504165508 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=input()\na=a+b\nif a-24>=0:\n print(a-24)\nelse:\n print(a)', 'a=input()\na=a.split(" ")\nb=int(a[1])\na=int(a[0])\na=a+b\nif a-24>=0:\n print(a-24)\nelse:\n print(a)'] | ['Runtime Error', 'Accepted'] | ['s709456386', 's745691645'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 97] |
p03773 | u505893372 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = int(input().split())\nprint(A+B)', 'lst = input().split(" ")\nA =int(lst[0])\nB =int(lst[1])\nprint((A+B)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s549829214', 's935539754'] | [2940.0, 2940.0] | [17.0, 17.0] | [37, 71] |
p03773 | u507116804 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | [' a, b = map(int, input().split())\n \n ans=a+b\n \n if ans>=24 :\n ans=ans-24\n \n print(ans)', 'a, b = map(int, input().split())\n ans=a+b\n \nif ans>=24:\n ans=ans-24\n \nprint(ans)', 'a, b = map(int, input().split())\n\nans=a+b\n\nif ans>=24\n ans=ans-24\n \nprint(ans)', 'a, b = map(int, input().split())\n ans = a+b\n \nif ans >=24:\n ans = ans-24\n \nprint(ans)', 'a, b = map(int, input().split())\nans = a+b\n \nif ans >=24:\n ans = ans-24\n \nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s153855847', 's365846183', 's515163605', 's981558734', 's253378961'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [116, 91, 80, 96, 94] |
p03773 | u510137738 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a, b = map(int, input().split())\n\nprint(24 % a + b)', 'a, b = map(int, input().split())\n\nprint((a + b) % 24)'] | ['Runtime Error', 'Accepted'] | ['s351178842', 's119565843'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 53] |
p03773 | u518064858 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nif a+b>=24:\n print(a+b-24):\nelse:\n print(a+b)', 'a,b=map(int,input().split())\nif a+b>=24:\n print(a+b-24)\nelse:\n print(a+b)\n\n'] | ['Runtime Error', 'Accepted'] | ['s965575387', 's426530847'] | [2940.0, 2940.0] | [18.0, 18.0] | [80, 81] |
p03773 | u518987899 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = map(int, input().strip())\nprint((A+B)%24)', "A,B = map(int, input().strip().split(' '))\nprint((A+B)%24)\n"] | ['Runtime Error', 'Accepted'] | ['s644934899', 's617243816'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 59] |
p03773 | u528388170 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A = int(input())\nB = int(input())\nprint((A+B)%24)', 'A,B=[int(i) for i in input().split()]\nprint((A+B)%24)'] | ['Runtime Error', 'Accepted'] | ['s216268045', 's639478597'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 53] |
p03773 | u528720841 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int, input().split())\nif a + b > 23:\n print(a+b)\nelse:\n print(a+b-24)', 'a,b = map(int, input().split())\nif a + b < 24:\n print(a+b)\nelse:\n print(a+b-24)'] | ['Wrong Answer', 'Accepted'] | ['s285584004', 's126087074'] | [2940.0, 2940.0] | [18.0, 17.0] | [85, 85] |
p03773 | u551109821 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = map(int,input())\nsum = A+B\n\nif sum >= 24:\n print(sum-24)\nelse:\n print(sum)', 'A,B = map(int,input().split())\nsum = A+B\n\nif sum >= 24:\n print(sum-24)\nelse:\n print(sum)'] | ['Runtime Error', 'Accepted'] | ['s283195350', 's643460897'] | [2940.0, 2940.0] | [18.0, 17.0] | [86, 94] |
p03773 | u556594202 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import bisect\n\nN=int(input())\nA = sorted(list(map(int,input().split())))\nB = sorted(list(map(int,input().split())))\nC = sorted(list(map(int,input().split())))\n\ncount=0\nfor i in range(N):\n a_cand = bisect.bisect_right(A,B[i]-1)\n c_cand = N-bisect.bisect_right(C,B[i])\n count += a_cand*c_cand\nprint(count)\n', 'a,b=map(int,input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s610040219', 's452561693'] | [9132.0, 9088.0] | [25.0, 26.0] | [313, 44] |
p03773 | u558764629 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = map(int,input())\n\nprint((A+B)%24)', 'A,B = map(int,input().split())\n\nprint((A+B)%24)'] | ['Runtime Error', 'Accepted'] | ['s440477396', 's472798344'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 47] |
p03773 | u559722042 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input().split())\nprint((a+b)%24+1)', 'a,b = map(int,input().split())\nprint((a+b)%24)'] | ['Wrong Answer', 'Accepted'] | ['s598702306', 's170665740'] | [3444.0, 2940.0] | [20.0, 17.0] | [48, 46] |
p03773 | u581309643 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import numpy as np\nN, M = map(int, input().split())\nlist_coStu = []\nlist_coChe = []\nfor i in range(N):\n list_coStu.append(list(map(int, input().split())))\nfor i in range(M):\n list_coChe.append(list(map(int, input().split())))\n\n#calc distance\n\nfor iS in range(len(list_coStu)):\n coStu = np.array(list_coStu[iS])\n min_iC = 0\n d = 4 * 10**8 + 1\n for iC in range(len(list_coChe)):\n coChe = np.array(list_coChe[iC])\n dif = coChe - coStu\n dist = np.sum(np.abs(dif))\n if dist < d:\n min_iC = iC\n d = dist\n print(min_iC + 1)\n', 'A, B = map(int, input().split())\nprint((A + B) % 24)\n'] | ['Runtime Error', 'Accepted'] | ['s234109882', 's294163477'] | [21240.0, 3316.0] | [1753.0, 19.0] | [587, 53] |
p03773 | u583326945 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['def calcManhattanDistance(student, checkpoint):\n return abs(student[0] - checkpoint[0]) + abs(student[1] - checkpoint[1])\n\n\nif __name__ == "__main__":\n # input process\n N, M = map(int, input().split())\n students = [list(map(int, input().split())) for i in range(N)]\n checkpoints = [list(map(int, input().split())) for i in range(M)]\n\n # calculation process\n for student in students:\n distance_list = []\n\n for checkpoint in checkpoints:\n distance_list.append(calcManhattanDistance(student, checkpoint))\n\n # print the first index(+1) of minimum value\n minval = min(distance_list)\n print(distance_list.index(minval) + 1)\n\n # END', 'A, B = map(int, input().split())\nprint((A + B) % 24)'] | ['Runtime Error', 'Accepted'] | ['s327190238', 's232812051'] | [3064.0, 2940.0] | [17.0, 17.0] | [695, 52] |
p03773 | u591287669 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import math\nn = int(input())\nnn = int(math.sqrt(n))\nfor i in range(nn,0,-1):\n if n%i==0:\n print(len(str(n//i)))\n break\n', 'a,b=map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s574055613', 's468653481'] | [3316.0, 2940.0] | [21.0, 17.0] | [136, 45] |
p03773 | u593590006 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nprint((a+b+12)%24)', 'a,b=map(int,input().split())\nprint((a+b+12-12)%24)'] | ['Wrong Answer', 'Accepted'] | ['s871469636', 's907235351'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 50] |
p03773 | u594956556 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['N, M = map(int, input().split())\nstudent = [list(map(int, input().split())) for _ in range(N)]\ncp = [list(map(int, input().split())) for _ in range(M)]\n\nidou = []\nfor a, b in student:\n idousaki = -1\n nearest = 1000000000\n for i, x, y in enumerate(cp):\n d = abs(x-a) + abs(y-b)\n if d < nearest:\n nearest = d\n idousaki = i+1\n \n idou.append(idousaki)\n \nfor i in idou:\n print(i)\n', 'A, B = map(int, input().split())\nprint((A+B) % 24)'] | ['Runtime Error', 'Accepted'] | ['s931810459', 's726019454'] | [3060.0, 2940.0] | [18.0, 17.0] | [402, 50] |
p03773 | u597047658 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = map(int, input().split())\n\nif (24-A) >= 12:\n print(A+B-24)\nelse:\n print(A+B)\n', 'A, B = map(int, input().split())\n\nif (A+B) >= 24:\n print(A+B-24)\nelse:\n print(A+B)\n'] | ['Wrong Answer', 'Accepted'] | ['s049608729', 's177069271'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 89] |
p03773 | u597455618 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['n = int(input())\nans = len(str(n))\nfor i in range(1, int(n**(1/2))+1):\n if n%i == 0:\n ans = min(ans, max(len(str(i)), len(str(n//i))))\nprint(ans)', 'a, b = map(int, input().split())\nprint((a + b) % 24)'] | ['Runtime Error', 'Accepted'] | ['s708974857', 's165880455'] | [3060.0, 2940.0] | [18.0, 17.0] | [149, 52] |
p03773 | u598229387 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int, input())\nprint((a+b)%24)', 'a,b = map(int, input().split())\nprint((a+b)%24)'] | ['Runtime Error', 'Accepted'] | ['s401963861', 's617785620'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 47] |
p03773 | u600261652 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = map(int, input().slipt())\nprint((A+B) % 24)', 'A, B = map(int, input().slipt())\nprint((A+B)%24)', 'A, B = map(int, input().split())\nprint((A+B) % 24)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s358047233', 's747588425', 's681528345'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [50, 48, 50] |
p03773 | u607741489 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int, input().split())\nif a+b <= 24:\n print(a+b-24)\nelse:\n print(a+b)', 'a,b = map(int, input().split())\nif a+b >= 24:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s365110071', 's969312809'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p03773 | u608355135 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['n,r=map(int,input().split())\nprint((n+r)//24)', 'n,r=map(int,input().split())\nprint((n+r)%24)'] | ['Wrong Answer', 'Accepted'] | ['s919574926', 's975082353'] | [9092.0, 9148.0] | [22.0, 28.0] | [45, 44] |
p03773 | u609814378 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = map(int, input().split())\n\nif A < B:\n print(A+B)\nelif A == 0 and B == 0:\n print(0)\nelif A != 0 and B==0:\n print(0)\nelif A > B:\n print((A+B-24)', 'a, b = map(int, input().split())\nif a+b >= 24:\n print(a+b-24)\nelse:\n print(a+b)\n'] | ['Runtime Error', 'Accepted'] | ['s663868542', 's893477645'] | [2940.0, 2940.0] | [17.0, 17.0] | [160, 86] |
p03773 | u610051322 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['l = map(int, raw_input().split())\nprint((l[0] + l[1]) % 24)', 'l = map(int, input().split())\nprint((l[0] + l[1]) % 24)', '#include <stdio.h>\n\nint abs(int j)\n{\n return (j>0) ? j : -j;\n}\n\nint main()\n{\n int N, M, i, j;\n int a[50], b[50], c[50], d[50],;\n int p[50] = {0};\n\n scanf("%d %d", &N, &M);\n \n for(i=0; i<N; i++)\n {\n scanf("%d %d", &a[i], &b[i]);\n }\n \n for(j=0; j<M; j++)\n {\n scanf("%d %d", &c[j], &d[j]);\n }\n \n for(i=0; i<N; i++)\n {\n for(j=0; j<M; j++)\n {\n if(abs(a[i] - c[j]) + abs(b[i] - d[j]) < abs(a[i] - c[p[i]]) + abs(b[i] - d[p[i]])\n {\n p[i] = j;\n }\n }\n printf("%d\\n", p[i]);\n }\n}', "L = [int(i) for i in input().split(' ')]\nprint((L[0] + L[1]) % 24)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s003273602', 's163193535', 's396513918', 's286406833'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [59, 55, 620, 66] |
p03773 | u612635771 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = map(int, input())\nprint((A+B) % 24)', 'A, B = map(int, input().split())\nprint((A+B) % 24)'] | ['Runtime Error', 'Accepted'] | ['s216200858', 's259377184'] | [8840.0, 8840.0] | [25.0, 25.0] | [42, 50] |
p03773 | u617659131 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int input().split())\nif a+b >= 24:\n print(a+b-24)\nelse:\n print(a+b)', 'a,b = map(int, input().split())\nif a+b >= 24:\n print(a+b-24)\nelse:\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s541488597', 's917614520'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 80] |
p03773 | u619819312 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b=map(int,input().split())\nprint((a+b)//24)', 'a,b=map(int,input().split())\nprint((a+b)%24)'] | ['Wrong Answer', 'Accepted'] | ['s624869723', 's027064783'] | [2940.0, 2940.0] | [18.0, 18.0] | [45, 44] |
p03773 | u623814058 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['N = int(input())\n\nans = 10**18\n\nfor i in range(1, int(N**0.5)+1):\n if N % i == 0:\n b = N//i\n ans = min(ans, max( len(str(i)), len(str(b))))\nprint(ans)', 'A,B=map(int, input().split())\nprint(A+B) if (A+B) < 24 else print(A+B-24)'] | ['Runtime Error', 'Accepted'] | ['s547503531', 's342985568'] | [9104.0, 9096.0] | [27.0, 26.0] | [168, 73] |
p03773 | u627600101 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = map(int,input(.split()))\nprint((A+B)%24)', 'A, B = map(int,input().split())\nprint((A+B)%24)'] | ['Runtime Error', 'Accepted'] | ['s250507258', 's112198968'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 47] |
p03773 | u633450100 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = [for(i) for i in input().split()]\nif A + B > 24:\n print(A + B -24)\nelse:\n print(A+B)', 'A,B = [int(i) for i in input().split()]\nif A + B >= 24:\n print(A + B -24)\nelse:\n print(A+B)\n'] | ['Runtime Error', 'Accepted'] | ['s928984402', 's845814730'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 94] |
p03773 | u634248565 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a , b = input().split()\nif a+b >= 24:\n\tprint ((a + b) - 24)\nelse:\n \tprint (a + b)', 'a , b = (input().split())\n\nif (a+b) > 24:\n\tprint (a + b - 24)\nelse:\n \tprint (a + b)\n', 'a , b = input().split()\nif (a+b) >= 24:\n\tprint (a + b - 24)\nelse:\n \tprint (a + b)\n', 'a , b = input().split()\n\nif a + b > 24:\n\tprint (a + b - 24)\nelse:\n \tprint (a + b)\n', 'a , b = int(input().split())\n\nif (a+b) > 24:\n\tprint (a + b - 24)\nelse:\n \tprint (a + b)', 'a , b = map(int, input().split())\nif a+b >= 24:\n\tprint ((a + b) - 24)\nelse:\n \tprint (a + b)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s175197878', 's264648801', 's288135425', 's835453852', 's944699901', 's857562249'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0, 17.0] | [82, 85, 83, 83, 87, 92] |
p03773 | u638745327 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A,B = int(input()).split()\n\nprint((A+B)%24)', 'A = int(input())\nB = int(input())\n\nprint((A+B)%24)', 'A = int(input())\nB = int(input())\n\nprint((A+B)%24)', 'A,B = map(int,input().split())\n\nprint((A+B)%24)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s199041027', 's415900396', 's961631960', 's473699942'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [43, 50, 50, 47] |
p03773 | u639592190 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['print(eval(input().replace(" ","+"))%12)', 'print(eval(input().replace(" ","+"))%24)'] | ['Wrong Answer', 'Accepted'] | ['s082141554', 's588182388'] | [2940.0, 2940.0] | [18.0, 17.0] | [40, 40] |
p03773 | u641460756 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int.input().split())\nc = a+b\nif(c>=24):\n print(c-24):\nelse:\n print(c)', 'a,b = map(int,input().split())\nc = a+b\nif(c>=24):\n print(c-24):\nelse:\n print(c)\n', 'a, b = map(int, input().split())\nc = a + b\nif c >= 24:\n print(c - 24)\nelse:\n print(c)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s667700462', 's822340757', 's571281513'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [81, 82, 91] |
p03773 | u642874916 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['A, B = input(int, input().split())\n\nprint((A + B) % 24)', 'A, B = map(int, input().split())\n \nprint((A + B) % 24)'] | ['Runtime Error', 'Accepted'] | ['s388444540', 's021425943'] | [9004.0, 8976.0] | [23.0, 29.0] | [55, 54] |
p03773 | u661980786 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int,input())\nprint((a+b)//24)', 'a,b = map(int,input().split())\nprint((a+b)%24)\n'] | ['Runtime Error', 'Accepted'] | ['s990017903', 's921484288'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 47] |
p03773 | u667084803 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['import math\nN=int( input())\nfor r in range (int(math.sqrt(N)),0,-1):\n if N%r==0:\n count=1\n l=N/r\n for i in range (0,10):\n l=l/10\n if l<1:\n print(count)\n break\n count+=1\n break', '# -*- coding: utf-8 -*-\n\nn,m=list(map(int, input().split()))\nprint((n+m)%24)'] | ['Runtime Error', 'Accepted'] | ['s381680399', 's722777616'] | [3060.0, 2940.0] | [17.0, 17.0] | [217, 93] |
p03773 | u672316981 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a. b = map(int, input().split())\nprint((a + b) % 24)', 'a. b = map(int, input().split())\nprint((a + b) % 23)', 'a, b = map(int, input().split())\nprint((a + b) % 24)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s379259471', 's627345335', 's841585953'] | [9068.0, 8920.0, 9132.0] | [22.0, 26.0, 26.0] | [52, 52, 52] |
p03773 | u676264453 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['def digits(num):\n return len(str(num))\n\nN = int(input())\nmin_d = digits(N)\nfor i in list(range(2, N, 1)):\n if (N % i == 0):\n min_d = min(digits(i), min_d)\n\nprint(min_d)\n', 'l = input().split()\nA = l[0]\nB = l[1]\nC = int(A) + int(B)\ntime = C % 24\n\nprint(time)\n'] | ['Runtime Error', 'Accepted'] | ['s277274515', 's782172642'] | [2940.0, 2940.0] | [17.0, 17.0] | [182, 85] |
p03773 | u677400065 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['a,b = map(int, input(),split())\nif a+b > 23:\n print(24-a+b)\nelse:\n print(a+b)', 'a,b = map(int, input().split())\nif a+b > 23:\n print(a+b-24)\nelse:\n print(a+b)\n'] | ['Runtime Error', 'Accepted'] | ['s689454153', 's999228579'] | [2940.0, 3316.0] | [22.0, 22.0] | [79, 80] |
p03773 | u696444274 | 2,000 | 262,144 | Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock". The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time. | ['x, y= list(map(int, input().split()))\n#a,b,c = list(input().split())\nif x+y\u3000< 24:\n print(x+y)\nelse:\n print(x+y-24)', 'x, y= list(map(int, input().split()))\n#a,b,c = list(input().split())\nif x+y < 24:\n print(x+y)\nelse:\n print(x+y-24)'] | ['Runtime Error', 'Accepted'] | ['s891531983', 's214879958'] | [3188.0, 2940.0] | [18.0, 17.0] | [122, 120] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.