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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02811 | u607905156 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = map(int,input().split)\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")', 'K, X = map(int, input().split())\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s089508547', 's716988005'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 83] |
p02811 | u608585697 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["\nK, X = map(int, input().split())\nif 500*K >= X:\n print('yes')\nelse:\n print('no')", "\nK, X = map(int, input().split())\nif 500*K >= X:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s479604427', 's188441867'] | [2940.0, 2940.0] | [17.0, 17.0] | [134, 134] |
p02811 | u629186149 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['a, b = input().split()\n \nif 500*a >= b:\n print("Yes")\nelse:\n print("No")', 'a, b = input().split()\n\nif 500*a >= b:\n print("Yes")\nelse:\n primt("No")', 'a = list(map(int,input().split()))\n \nif 500*a[0] >= a[1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s666881709', 's703370099', 's451591891'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [74, 73, 92] |
p02811 | u629540524 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["k, x = map(int, input().split())\nif 500 * k >= x:\n print('yes')\nelse:\n print('No')", "k, x = map(int, input().split())\nif 500 * k >= x:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s594897399', 's953596106'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 88] |
p02811 | u629560745 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K, X = map(int, input().split())\nif 500 * K >= X:\n print('Yse')\nelse:\n print('No')", "K, X = map(int, input().split())\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s833427746', 's857708434'] | [2940.0, 2940.0] | [18.0, 17.0] | [88, 88] |
p02811 | u629607744 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["a=int(input())\nb=input()\n\ncount=0\nfor i in range(a-2):\n if b[i]=='A'and b[i+1]=='B' and b[i+2]=='C':\n count+=1\nprint(count)\n", "a,b=map(int,input().split())\nif 500*a>=b:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s991582944', 's913688808'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 76] |
p02811 | u630467326 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['from itertools import permutations\n\nN = int(input())\nP = tuple(map(int, input().split()))\nQ = tuple(map(int, input().split()))\nnum_P = 0\nnum_Q = 0\n\nli = list(permutations(range(1, N + 1)))\n\n#print(P, Q, li)\nprint(abs(li.index(P) - li.index(Q)))\n#print(li)\n#print(li.index(P))\n#print(li.index(Q))', "K, X = map(int, input().split())\n\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s543660581', 's891472772'] | [8920.0, 9136.0] | [25.0, 29.0] | [295, 85] |
p02811 | u631998785 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K=int(input())\nX=int(input())\nif K*500>=X:\n print("Yes")\nelse : \n print("No")\n ', 'X,K=int(input())\nif K*500>=X:\n print("Yes")\nelse : \n print("No")\n ', 'K, X=map(int,input().split())\nif K*500>=X:\n print("Yes")\nelse : \n print("No")\n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s319075792', 's396425247', 's557977437'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [81, 68, 81] |
p02811 | u632462572 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K , X = map(int,input().split())\n\nif K * 500 >= X:\n print("Yes")\nelse print("No")', 'K , X = map(int,input().split())\n\nif K * 500 >= X:\n print("Yes")\nelse: print("No")'] | ['Runtime Error', 'Accepted'] | ['s776574855', 's141157174'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 83] |
p02811 | u640603056 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = ISI()\nif 500*k<x:print("No")\nelse:print("Yes")', 'import sys\ndef ISI(): return map(int, sys.stdin.readline().rstrip().split())\nk, x = ISI()\nif 500*k<x:print("No")\nelse:print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s576791454', 's723950936'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 130] |
p02811 | u643679148 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = map(int, input().split())\n\nif 500*i >= x:\n print("Yes")\nelse:\n print(\'No\')\n', 'k, x = map(int, input().split())\n\nif 500*k >= x:\n print("Yes")\nelse:\n print(\'No\')\n'] | ['Runtime Error', 'Accepted'] | ['s251299105', 's841715096'] | [8944.0, 9092.0] | [25.0, 24.0] | [88, 88] |
p02811 | u644568755 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["k, x = map(int, input().split())\n\nif x >= k * 500:\n print('Yes')\nelse:\n print('No')", "k, x = map(int, input().split())\n \nif x > (5 * 500):\n print(x > (k * 500))\nelse:\n print('No')", "k, x = map(int, input().split())\n \nif x <= (k * 500):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s285131409', 's729160077', 's821902980'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [85, 95, 88] |
p02811 | u644701034 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = [int(K), int(X) for K, X in input().split()]\n\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")', 'K, X = [int(x) for x in input().split()]\n\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s823099267', 's158283898'] | [2940.0, 2940.0] | [17.0, 18.0] | [102, 91] |
p02811 | u649513889 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = input().split()\nif (k * 500) > x:\n print ("yes")\nelse:\n print("no")', 'k = input()\nx = input()\nif (k * 500) > x:\n print ("yes")\nelse:\n print("no")', 'k,x = [int(x) for x in input().split()]\n\nk = k * 500 \n\nif k >= x:\n print("Yes")\nelse:\n\tprint("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s452222256', 's985054702', 's282318903'] | [3060.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0] | [76, 77, 99] |
p02811 | u657719194 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['4 2000', 'N, K = map(int, input().split())\n\nt = N*500\nif t >= K:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s510811366', 's676836086'] | [9012.0, 9124.0] | [25.0, 32.0] | [6, 93] |
p02811 | u662062459 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import itertools\n\nN=int(input())\nP=list(map(int, input().split()))\nQ=list(map(int, input().split()))\nA=list(range(1,N+1))\n\nPattern=[]\nfor i in itertools.permutations(A):\n Pattern.append(i)\n\nc1=Pattern.index(P) + 1\nc2=Pattern.index(Q) + 1\n\nprint(abs(c1-c2))', 'import itertools\n\nN=int(input())\nP=list(map(int, input().split()))\nQ=list(map(int, input().split()))\n\nPattern=[]\nfor i in range(1,N+1):\n Pattern.append(i)\n\nc1=Pattern.index(P) + 1\nc2=Pattern.index(Q) + 1\n\nprint(abs(c1-c2))', 'K, X=map(int, input().split())\n\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s083622001', 's488679392', 's217984434'] | [3064.0, 3060.0, 2940.0] | [19.0, 17.0, 17.0] | [259, 225, 85] |
p02811 | u663767599 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = map(int, input().split())\n\nif X >= 500 * K:\n print("Yes")\nelse:\n print("No")\n', 'K, X = map(int, input().split())\n\nif X <= 500 * K:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s727755907', 's920198410'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 90] |
p02811 | u666961261 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X = input().split()\nres=int(K)*500\nif(res=>int(X)):\n print("Yes")\nelse:\n print("No")', 'K,X = input().split()\nres=int(K)*500\nif(res>=int(X)):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s310912584', 's717364053'] | [2940.0, 2940.0] | [17.0, 18.0] | [92, 92] |
p02811 | u667084803 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = map(int, input().split())\nif K*500 => X:\n print("Yes")\nelse:\n print("No")', 'K, X = map(int, input().split())\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s055663266', 's740884769'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p02811 | u670942818 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['class Solution(object):\n def twoSum(self, k, x) -> str:\n """\n :type k: int\n :type x: int\n """\n if not (k <= 100 and k>= 1):\n return ""\n \n if not (x <= 100000 and x>= 1):\n return ""\n \n totalyen = k * 500;\n \n if totalyen >= 1000:\n return "Yes"\n else:\n return "No"', ' def twoSum(self, k, x) -> str: \n if k * 500 >= x:\n return "Yes"\n else:\n return "No"\n', 'class Solution(object):\n def twoSum(self, k, x) -> str:\n """\n :type k: int\n :type x: int\n """\n if not (k <= 100 and k>= 1):\n return ""\n \n if not (x <= 100000 and x>= 1):\n return ""\n \n totalyen = k * 500;\n \n if totalyen >= x:\n return "Yes"\n else:\n return "No"\n', 'def solve(string):\n k, x = map(int, string.split())\n return "Yes" if k * 500 >= x else "No"', 'K, X = [int(_) for _ in input().split()]\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s472765099', 's575279527', 's629908930', 's986947668', 's833786830'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [384, 127, 382, 97, 95] |
p02811 | u671792681 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = input().split()\nK = int(K)\nX = int(X)\nprint(("Yes" if K * 500 >= X else "No")\n', 'K, X = input().split()\nK = int(K)\nX = int(X)\nprint("YES" if K * 500 >= X else "NO")', 'K, X = input().split()\nK = int(K)\nX = int(X)\nprint("YES" if K * 500 >= X else "NO")', 'K, X = input().split()\nK = int(K)\nX = int(X)\nprint("Yes" if K * 500 >= X else "No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s389549269', 's833837334', 's946900880', 's717703201'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 18.0] | [85, 83, 83, 83] |
p02811 | u672370694 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['A = int(input())\nB = int(input())\n\nif 500* A >= B:\n print("Yes")\nelse:\n print("No")', 'A, B = map(int, input().split())\nif 500*A >= B:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s931193268', 's535766591'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 82] |
p02811 | u674588203 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K,N=map(int,input().split())\nif 500*K>=X:\n print('Yes')\nelse:\n print('No')", "K,N=map(int,input().split())\nif 500*K>=N:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s228605654', 's100966718'] | [2940.0, 2940.0] | [17.0, 18.0] | [80, 80] |
p02811 | u674722380 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = map(int, input().split())\n\nZ = 500 * K\nif K >= X :\n print("Yes")\n \nelse:\n print("No")', 'K, X = map(int, input().split())\n\nZ = int(500 * K)\nif Z >= X :\n print("Yes")\n\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s384529253', 's762922172'] | [2940.0, 2940.0] | [18.0, 17.0] | [101, 102] |
p02811 | u677163137 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['n, x = int(input())\nif x <= n*500:\n print("Yes")\nelse:\n print("No")', 'n, x = map(int, input().split())\nif x <= n*500:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s852740548', 's368832658'] | [2940.0, 2940.0] | [18.0, 18.0] | [73, 86] |
p02811 | u677253688 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import math \nn, m = map(int, input().split())\na = list(map(int, input().split()))\nz = a[0]\nfor i in a:\n z = math.gcd(z, i)\nfor i in range(n):\n a[i]//=z\nlcm = 1\na = set(a)\nfor i in a:\n lcm*=i\nprint(math.ceil((m//lcm)/2))', 'def case():\n k, x = map(int, input().split())\n if 500*k < x:\n print("No")\n else:\n print("Yes")\ncase()'] | ['Runtime Error', 'Accepted'] | ['s721381731', 's244541910'] | [3064.0, 2940.0] | [17.0, 17.0] | [228, 124] |
p02811 | u679236042 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X = map(int,input().split())\n\nKnew = 500*K\n\nif Knew >=X:\n print("yes")\nelse:\n print("No")', 'K,X = map(int,input().split())\n\nKnew = 500*K\n\nif Knew >=X:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s943652222', 's653174850'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 97] |
p02811 | u684906944 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['n = int(input())\ns = input()\n\nans = 0\n\nfor i in range(n-2):\n if s[i:i+3] == "ABC":\n ans +=1\n\nprint(ans)', 'k, x = map(int, input().split())\n\ntotal = k * 500\nans = "No"\n\nif total >= x:\n ans = "Yes"\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s910323774', 's616803179'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 102] |
p02811 | u685244071 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = map(int, input().split)\na = 500*K\n\nif a >= X:\n print("Yes")\nelse:\n print("No")', 'K, X = map(int, input().split())\na = 500*K\n\nif a >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s937778960', 's713026016'] | [2940.0, 2940.0] | [17.0, 18.0] | [87, 90] |
p02811 | u686536081 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x = map(int,input().split)\nprint("Yes" if 500*k>=x else "No")', 'k,x = map(int,input().split())\nprint("Yes" if 500*k>=x else "No")'] | ['Runtime Error', 'Accepted'] | ['s148362789', 's277091191'] | [8960.0, 9032.0] | [24.0, 22.0] | [63, 65] |
p02811 | u688319022 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K,X=map(int,input(),split())\nif 500*K>X:\n print('Yes')\nelse:\n print('No')", "K,X=map(int.input().split())\nif 500*K>=X:\n print('Yes')\nelse:\n print('No')\n", "K,X=map(int,input().split())\nif 500*K>=X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s779895321', 's811601821', 's640325894'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [79, 81, 81] |
p02811 | u688587139 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = int(input())\nwealth = 500 * K\nif K >= X:\n print(\'Yes")\nelse:\n print(\'No\')', 'K, X = map(int, input().split())\nwealth = 500 * K\nif K >= X:\n print(\'Yes")\nelse:\n print(\'No\')', "K, X = map(int, input().split())\nwealth = 500 * K\nif wealth >= X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s061826193', 's218704951', 's107905471'] | [8760.0, 8864.0, 9148.0] | [27.0, 27.0, 26.0] | [82, 95, 105] |
p02811 | u689835643 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['x, y = map(int, input().split())\nif 500 + x >= y:\n print("Yes")\nelse:\n print("No")\n', 'x, y = map(int, input().split())\nif 500 * x >= y:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s324606613', 's775665579'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 89] |
p02811 | u690184681 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X = map(int,input().split())\n\nif 500*K>=X:\n print("yes")\nelse:\n print("no")', 'K,X = map(int,input().split())\n\nif 500*K>=X:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s416439168', 's559678213'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p02811 | u691746545 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['# coding: utf-8\n\nnum_of_coins, border = (int(n) for n in input().split)\nif 500 * num_of_coins >= border:\n print("Yes")\nelse:\n print("No")', '# coding: utf-8\n\nnum_of_coins, border = (int(n) for n in input().split())\nif 500 * num_of_coins >= border:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s075017490', 's063079877'] | [2940.0, 2940.0] | [17.0, 17.0] | [139, 141] |
p02811 | u692453235 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K, X = map(int,input().split())\n\nif 500*K >= X:\n print('Yes')\n else:\n print('No')", "K X = map(int,input().split())\nif 500*K >= X:\n print('Yes')\nelse:\n print('No')", 'K X = map(int,input().split())\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")', "K, X = map(int,input().split())\n\nif 500*K >= X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s008371203', 's186013327', 's823183975', 's975469729'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [86, 84, 84, 83] |
p02811 | u693134887 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,y=input().split()\nu=k*500\nif u>y:\n print("Yes")\nelse:\n print("No")', 'k,y=input().split()\ncoin=k*500\nif coin>=y:\n print("Yes")\nelse:\n print("No")', 'k,y=input().split()\ncoin=int(k)*500\nif coin>=int(y):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s403570924', 's977530780', 's982031963'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [70, 77, 87] |
p02811 | u693716675 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x = [int(i) for i in input().split()]\nif k*500 >= x:\n print("yes")\nelse:\n print("no")', 'k,x = [int(i) for i in input().split()]\nif k*500 >= x:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s357079475', 's966313373'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 93] |
p02811 | u694467277 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x=map(int,input().split())\nprint("Yes" if 500*k>=x "No" else)', 'k,x=map(int,input().split())\nprint("Yes" if 500*k>=x else "No" )\n'] | ['Runtime Error', 'Accepted'] | ['s046371834', 's264291215'] | [2940.0, 2940.0] | [17.0, 20.0] | [63, 65] |
p02811 | u696383369 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K = int(input())\nX = int(input())\nK = K *500\nif K >= X:\n print("Yes")\nelse:\n print("No")\n', 'K = int(input())\nX = int(input())\nK = K *2\nif K >= X:\n print("Yes")\nif K < X:\n print("No")\n', 'K = int(input().split())\nX = int(input().split())\nK = K *2\nif K >= X:\n print("Yes")\nelse:\n print("No")\n', 'K = 500\nnum = int(input())\ncoin = num * K\nprint (coin)\nX = int(input())\nif coin >= X:\n print("Yes")\nif coin < X:\n print("No")', 'K = int(input().split())\nX = int(input().split())\nK = K *500\nif K >= X:\n print("Yes")\nelse:\n print("No")\n', 'K = int(input())\nX = int(input())\nK = K *2\nif K >= X:\n print("Yes")\nelse:\n print("No")\n', 'k,x = [int(x) for x in input().split()]\n\nk = k * 500 \n\nif k >= x:\n print("Yes")\nelse:\n\tprint("No")\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s120095653', 's348046721', 's376114257', 's630569569', 's677722225', 's815148564', 's240800410'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0] | [91, 93, 105, 127, 107, 89, 102] |
p02811 | u699944218 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K, X = int(input())\nif 500*K >= X:\n print('Yes')\nelse:\n print('No')", "K, X = list(map(int,input().split()))\nif 500*K >= X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s926404150', 's773739551'] | [2940.0, 2940.0] | [17.0, 16.0] | [69, 87] |
p02811 | u708890186 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import itertools\n \nN=int(input())\nP=list(map(int,input().split()))\nQ=list(map(int,input().split()))\nnlis=[i for i in range(1,N+1)]\n \nj=list(itertools.permutations(nlis))\ncp=j.index(P)+1\ncq=j.index(Q)+1\nprint(abs(cp-cq))', "K,X=map(int,input().split())\nif K*500>=X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s493444305', 's655840210'] | [3064.0, 2940.0] | [17.0, 17.0] | [219, 76] |
p02811 | u709686535 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['sp_list = list(map(int, input.split()))\n\nif 500 * sp_list[0] >= sp_list[1]:\n print("Yes")\nelse:\n print("No")', 'sp_list = list(map(int, input().split()))\n\nif 500 * sp_list[0] >= sp_list[1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s025699871', 's107646546'] | [2940.0, 2940.0] | [18.0, 17.0] | [110, 112] |
p02811 | u717265305 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import itertools\nn = int(input())\np = tuple(map(int, input().split()))\nq = tuple(map(int, input().split()))\ny = [num for num in range(1, n+1)]\npermutation_n = list(itertools.permutations(y, 3))\n\na=b=0\ncount=1\nfor permu in permutation_n:\n if permu == p:\n a = count\n if permu == q:\n b = count\n if a != 0 and b != 0:\n break\n count+=1\nprint(abs(a-b))', "k,x = map(int, input().split())\nif 500*k >= x:\n print('Yes')\n exit()\nprint('No')"] | ['Runtime Error', 'Accepted'] | ['s880160646', 's374024628'] | [3064.0, 3316.0] | [17.0, 21.0] | [359, 82] |
p02811 | u718411265 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X=map(int,input().split)\nif 500*K<X:\n print("No")\nelse:\n print("Yes")', 'K,X=map(int,input().split())\nif 500*K>=X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s412004701', 's769966617'] | [2940.0, 2940.0] | [17.0, 16.0] | [73, 76] |
p02811 | u723711163 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["k, a = map(int(), input().split())\n \nif k * 500 >= a:\n print('Yes')\nelse:\n print('No')", "k, a = map(int(), input())\n\nif k * 500 >= a:\n print('Yes')\nelse:\n print('No')", "k, a = map(int, input().split())\n \nif k * 500 >= a:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s176117614', 's596630816', 's732704404'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 79, 86] |
p02811 | u724295910 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['x = input()\nk = input()\n\nX = int(x)\nK = int(k)\n\nif X <= K*500:\n print("Yes")\nelse:\n print("No")', 'x = input()\nk = input()\n\nif x <= k*500:\n print("Yes")\nelse:\n print("No")', 'x = input()\nk = input()\n\nif int(x) <= int(k)*500:\n print("Yes")\nelse:\n print("No")', 'x = input()\nk = input()\n\nif x <= k*500:\n print("Yes")\nelse:\n print("No")', 'k, x = input().split()\n\nif int(x) <= int(k)*500:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s045088184', 's761483501', 's813091079', 's961051487', 's704309138'] | [2940.0, 2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [101, 78, 88, 78, 87] |
p02811 | u724563664 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["\n#coding:utf-8\n\nfrom functools import reduce\nimport fractions\n\nn, x = map(int, input().split(' '))\nnums = list(map(int, input().split(' ')))\n\ndef devide_cnt(num):\n cnt = 0\n while num % 2 == 0:\n cnt += 1\n num //= 2\n return cnt, num\n\ndef lcm_base(x, y):\n return (x * y) // fractions.gcd(x, y)\n\ndef lcm(*numbers):\n return reduce(lcm_base, numbers, 1)\n\ndef lcm_list(numbers):\n return reduce(lcm_base, numbers, 1)\n\n\ndef main():\n odd_nums = []\n cnt = -1\n for num in nums:\n tmp, num = devide_cnt(num)\n if cnt == -1:\n cnt = tmp\n if cnt != tmp:\n print(0)\n return\n odd_nums.append(num)\n \n minv = 2 ** cnt * lcm_list(odd_nums)\n\n \n l = 1\n r = 10000000001\n tmp = -1\n while l < r + 1:\n m = l + (r - l) // 2\n p = m * minv + 0.5 * minv\n if p > x:\n r = m\n else:\n l = m\n \n if tmp == p:\n break\n tmp = p\n \n \n print(l+1)\n \n \n \n\nmain()", "#coding:utf-8\n\nk, x = map(int, input().split(' '))\nif k * 500 >= x:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s824536667', 's287501205'] | [5128.0, 2940.0] | [35.0, 17.0] | [1052, 102] |
p02811 | u729133443 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['n=int(input())\nprint(0--n//500)', "print('YNeos'['1'in input()[1:]::2])"] | ['Runtime Error', 'Accepted'] | ['s010557564', 's529966656'] | [2940.0, 9004.0] | [17.0, 26.0] | [31, 36] |
p02811 | u731368968 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["k, x = map(int, input().split())\nprint('Yes' if 500*k>=x else'No)", "k, x = map(int, input().split())\nprint('Yes' if 500*k>=x else'No')\n"] | ['Runtime Error', 'Accepted'] | ['s282011883', 's950471477'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 67] |
p02811 | u732061897 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K,X = map(int,input().split())\nprint('Yes' if K * 500 <= X else 'No')", "K, X = map(int, input().split())\nif K * 500 >= X:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s787201445', 's961577589'] | [2940.0, 9004.0] | [17.0, 28.0] | [69, 89] |
p02811 | u734423776 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["K,X=input().split()\nif 500 * K >= X:\n return 'Yes'\nelse:\n return 'No'", "K,X=input().split()\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')", "K,X=input().split()\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')", "K,X=(int(x) for x in input().split())\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s146921085', 's687916363', 's709959647', 's367209015'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [71, 75, 71, 93] |
p02811 | u735175408 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X=map(int,input().split())\nif 500*K>=X:\n print(Yes)\nelse:\n print(No)', "K,X=map(int,input().split())\nif 500*K>=X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s180521407', 's617373544'] | [2940.0, 2940.0] | [17.0, 18.0] | [72, 80] |
p02811 | u735315224 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['n = 500\nx, y = map(int, raw_input().split()) \nif x*n >= y: \n print("Yes")\nelse: \n print("No")', 'n = 500\nx, y = map(int, input().split())\nif x*n >= y: \n print("Yes")\nelse: \n print("No")'] | ['Runtime Error', 'Accepted'] | ['s259602258', 's140106324'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 94] |
p02811 | u736524428 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['N = int(input())\nC = list(map(int, input().split()))\n\nC.sort()\n\nans = 0\n\nmod = 10 ** 9 + 7\n\npattern = (2 ** (N - 2)) % mod\n\nif N != 1:\n for i in range(N):\n c = C[i]\n ans += c * (N + 1 - i) * pattern\n ans %= mod\n ans *= 2 ** N\nelse:\n ans = C[0] * 2\n\nans %= mod\n\nprint(ans)', 'K, X = map(int, input().split())\n\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s324080948', 's817977990'] | [3064.0, 2940.0] | [18.0, 17.0] | [301, 86] |
p02811 | u736995123 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['\n\ndef read_int_n(): return list(map(int, input().split()))\n\nK, X = read_int_n()\n\nprint(f"Nubmer coins K = {K}; Total X = {X}")\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")', 'def read_int(): return int(input())\nN = read_int()\ndef read_str(): return input().strip()\nS = list(read_str())\n\n__DEBUG__ = False\n\ndef solution():\n count = 0 \n for i in range(N-2):\n if __DEBUG__: print(f"checking {S[i]} at index: {i}")\n if S[i] == \'A\':\n if S[i+1] == \'B\' and S[i+2] == \'C\':\n count += 1\n continue\n return count\n\n \nif __name__ == \'__main__\':\n print(solution())\n ', '\n\nk, x = map(int, input().split())\nprint("Yes" if x <= 500*k else "No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s469369116', 's503727362', 's823290404'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [231, 452, 123] |
p02811 | u737756998 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k = int(input())\nx = int(input())\nif k * 500 >= x:\n print("Yes")\nelse:\n print("No")', 'k, x = (int(i) for i in input().split())\nif k * 500 >= x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s785142745', 's598287529'] | [2940.0, 2940.0] | [18.0, 17.0] | [89, 96] |
p02811 | u739843002 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['tmp = input()\n\nN = int(tmp[0])\nX = int(tmp[1])\n\nif X <= 500 * N:\n print("Yes")\nelse:\n print("No")', 'tmp = input().split(" ")\n \nN = int(tmp[0])\nX = int(tmp[1])\n \nif X <= 500 * N:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s172974882', 's979335314'] | [8996.0, 9132.0] | [26.0, 24.0] | [99, 112] |
p02811 | u740284863 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import math \ndef lcm(x,y):\n return x*y//math.gcd(x,y)\nn,m = map(int,input().split())\na = list(map(int,input().split()))\ngcds = a[0]\nfor i in a:\n gcds = lcm(gcds,i)\na = [i//2 for i in a]\na_0 = a[0]\nfor i in a:\n a_0 = lcm(a_0,i)\n#print(a_0,gcds)\nif a_0 < m:\n ans = math.ceil((m - a_0) // gcds)\nelif a_0 == m:\n ans = 1\nelse:\n ans = 0\nprint(ans)', 'k,x = map(int,input().split())\nif k*500 >= x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s226775750', 's382592239'] | [9100.0, 2940.0] | [22.0, 17.0] | [359, 84] |
p02811 | u743272507 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x = map(int,input().split())\nprint("Yes" if k * 500 <= x else "No")', 'k,x = map(int,input().split())\nprint("Yes" if k * 500 >= x else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s315638757', 's649753952'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 70] |
p02811 | u744920373 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import fractions\nfrom functools import reduce\n\ndef gcd(*numbers):\n return reduce(fractions.gcd, numbers)\n\ndef lcm_base(x, y):\n return (x * y) // fractions.gcd(x, y)\n\ndef lcm(*numbers):\n return reduce(lcm_base, numbers, 1)\n \ndef factorization(n):\n arr = []\n temp = n\n for i in range(2, int(-(-n**0.5//1))+1):\n if temp%i==0:\n cnt=0\n while temp%i==0:\n cnt+=1\n temp //= i\n arr.append([i, cnt])\n\n if temp!=1:\n arr.append([temp, 1])\n\n if arr==[]:\n arr.append([n, 1])\n\n return arr\n\n\nN, M = map(int,input().split())\nA = list(map(int,input().split()))\n\n#if gcd(*A) % 2 != 0:\n #print(0)\n #exit(0)\n\n#sisu_2 = factorization(A[0])[0][1] \nsisu_2 = min([factorization(A[i])[0][1] for i in range(min(1000,N))])\n\n#lcm_a = lcm(*A)\n#lcm_a_half = lcm_a // 2\nlcm_a = lcm(*A) // 2\n\nif (lcm_a % (2**sisu_2) == 0) or lcm_a > M:\n#factorization(lcm_a)[0][1] != sisu_2 or lcm_a_half > M:\n#if lcm_a > M:\n print(0)\n exit(0)\nelse:\n print(int((M-lcm_a) // (lcm_a*2) + 1))', "A, B = map(int, input().split())\n\nif A * 500 >= B:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s807980177', 's154848529'] | [5076.0, 2940.0] | [35.0, 17.0] | [1308, 89] |
p02811 | u745687363 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = map(int, input().split())\nprint("Yes" if 500*k >= x, else "No")', 'k, x = map(int, input().split())\nprint("Yes") if 500*k >= x, else print("No")', 'k, x = map(int, input().split())\nprint("Yes" if 500*k >= x, else "No")', 'k, x = map(int, input().split())\nprint("Yes") if 500*k >= x else print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s387766981', 's621494837', 's969295586', 's178196936'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [70, 77, 70, 76] |
p02811 | u747485678 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['coin = int(input())\nmax = int(input())\ntotal = coin*500\nif total >= max:\n print("Yes")\nelse:\n print("No")', 'coin = int(input())\nMax = int(input())\ntotal = coin*500\nif total >= Max:\n print("Yes")\nelse:\n print("No")\n ', 'inp = input()\narr = [int(i) for i in inp.split() if i.isdigit()]\ntotal = arr[0]*500\nif total >= arr[1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s258518579', 's993710151', 's116472946'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 19.0] | [111, 113, 143] |
p02811 | u747941497 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = map(int, input().split())\nif 500*k >= x:\n print("Yes")\n else:\n print("No")', 'k, x = map(int, input().split())\nif 500*k >= x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s514397544', 's527662253'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 82] |
p02811 | u750120744 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["N = int(input())\nS = input()\ncount = 0\n\nfor i in range(N-2):\n if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':\n count += 1\n\nprint(count)", 'N = int(input())\nS = input()\ncount = 0\n\nfor i in range(N-2):\n if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":\n count += 1\n\nprint(count)', 'N = int(input())\nS = list(input())\ncount = 0\n\nfor i in range(N-2):\n if S[i]==("A") and S[i+1]==("B") and S[i+2]==("C"):\n count += 1\n\nprint(count)', "K,X = map(int, input().split())\n\nif K*500>=X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s434282077', 's655077200', 's677650834', 's175161380'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [143, 143, 155, 84] |
p02811 | u757991037 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K=int(input())\nX=int(input())\n\nif 500*K < X:\n\tprint("No")\nelse:\n print("Yes")', 'if 500*K < X \n\tprint("Yes")\nelse print("No")', 'K X = map(int,input().split())\nif 500*K<X:\n print("No")\nelse:\n print("Yes")', 'if 500*K < X :\n\tprint("No")\nelse :\n print("Yes")', 'if 500*K < X :\n\tprint("Yes")\nelse :\n print("No")', 'if 500*K < X:\n\tprint("No")\nelse:\n print("Yes")', 'K,X = map(int,input().split())\nif 500*K<X:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s001472789', 's135448136', 's235501482', 's738197045', 's986305941', 's995487995', 's936428407'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [78, 44, 77, 49, 49, 47, 77] |
p02811 | u758353414 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['S = input() \nX = S.split(" ")[0]\nY = S.split(" ")[1]\nif X*500 >= Y:\n print("Yes")\nelse:\n print("No")', 'S = input() \nX = int(S.split(" ")[0])\nY = int(S.split(" ")[1])\nif X*500 >= Y:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s707326599', 's157399184'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 112] |
p02811 | u761320129 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x = map(int,input().split())\nprint("Yes" if k*500 >= x "No")', 'k,x = map(int,input().split())\nprint("Yes" if k*500 >= x else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s718536691', 's532589100'] | [2940.0, 2940.0] | [17.0, 18.0] | [62, 68] |
p02811 | u762275701 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x=map(int,input().split())\nif k >= x:\n print("Yes")\nelse:\n print("No")', 'k,x=map(int,input().split())\nif k * 500 >= x:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s363028340', 's134794676'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 80] |
p02811 | u765401716 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['N = int(input()) \nP = tuple(map(int, input().split()))\nQ = tuple(map(int, input().split()))\nA = list(range(1,N+1))\nAlist=[]\nimport itertools\nfor v in itertools.permutations(A):\n Alist.append(v)\na_num = Alist.index(P)+1\nb_num = Alist.index(Q)+1\nprint(abs(b_num - a_num))', 'K,X = list(map(int, input().split()))\nA = 500*K \nif A >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s219135231', 's500248796'] | [3060.0, 3316.0] | [17.0, 21.0] | [276, 98] |
p02811 | u766349820 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['N, X = map(int, input().split())\n\nif X >= N * 500:\n print("Yes")\nelse:\n print("No")\n', 'N, X = map(int, input().split())\n\nif X > N * 500:\n return Yes\nreturn No', 'N, X = map(int, input().split())\n\nif X <= N * 500:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s158520282', 's708399749', 's236183771'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [90, 72, 90] |
p02811 | u768496010 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['a, b = map(int,input().split())\n\nif (a*500 >= b):\n print("yes")\nelse:\n print("no")', 'a, b = map(int,input().split())\n\nif (a*500 >= b):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s620538145', 's536835512'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 88] |
p02811 | u768559443 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x=map(int,input().split())\nif 500*k=>x:\n print("Yes")\nelse:\n print("No")', 'k,x=map(int,input().split())\nif 500*k>=x:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s510038954', 's943348823'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 77] |
p02811 | u769383879 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k, x = map(int,input().split())\n\nif k*500 < X:\n print("No")\nelse:\n print("Yes")\n', 'k, x = map(int,input().split())\n\nif k*500 < x:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s610661307', 's401745236'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 86] |
p02811 | u771538568 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['a=input().split()\nb=a[0]\nc=a[1]\nif 500*b>=c:\n print("Yes")\nelse:\n print("No")', 'a=input().split()\nb=a[0]\nc=a[1]\nif 500*b >= c :\n print("Yes")\nelse:\n print("No")', 'a=input().split()\nb=a[0]\nc=a[1]\nif 500*b >= c :\n print("Yes")\nelse:\n print("No")', 'a=input().split()\nb=int(a[0])\nc=int(a[1])\nif 500*b >= c:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s319970523', 's766045815', 's796689066', 's161722423'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [79, 82, 82, 91] |
p02811 | u774985302 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X =[int(i)for i in input().split()]\nif 500K >=X:\n print("Yes")\nelse :\n print("No")\n', 'K,X =[int(i)for i in input().split()]\nif 500*K >=X:\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s611850894', 's402286456'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p02811 | u779327980 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = int(input().split())\nif 500 * K >= X:\n print("Yes")\nelif 500 * K < X:\n print("No")', 'K, X = input().split()\nif 500 * K >= X:\n print("Yes")\nelif 500 * K < X:\n print("No")', 'K, X = (int(x) for x in input().split())\nif 500 * K >= X:\n print("Yes")\nelif 500 * K < X:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s573141864', 's876121791', 's659606863'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [95, 90, 108] |
p02811 | u779728630 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['N, X = map(int, input().split())\nprint("YES") if N*500 >= X else print("NO")', 'K, X = map(int, input().split())\n\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s764305346', 's846907188'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 86] |
p02811 | u785066634 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['x=input(\'\')\nk=input(\'\')\nif k*500>=x:\n print ("Yes")\nelse:\n print ("No")', 'k,x=map(int,input().split())\n\nif k*500>=x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s111000525', 's534451371'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 81] |
p02811 | u785354231 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["data = [int(k) for k in input().split()]\n\ntakashi = 500 * data[0]\n\nif takashi >= data[1]:\n\tprint('YES')\nelse:\n\tprint('NO')", "data = [int(k) for k in input().split()]\nprint(data)\ntakashi = 500 * data[0]\n\nif takashi >= data[1]:\n\tprint('Yes')\nelse:\n\tprint('No')\n", "data = [int(k) for k in input().split()]\n\ntakashi = 500 * data[0]\n\nif takashi > data[1]:\n\tprint('YES')\nelse:\n\tprint('NO')", "data = [int(k) for k in input().split()]\n\ntakashi = 500 * data[0]\n\nif takashi >= data[1]:\n\tprint('Yes')\nelse:\n\tprint('No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s544750514', 's577816386', 's763041430', 's752657860'] | [9092.0, 9088.0, 9152.0, 9080.0] | [26.0, 26.0, 26.0, 26.0] | [122, 134, 121, 123] |
p02811 | u786437200 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['\nK = input()\nX = input()\n\nif (X <= 500*K):\n print("Yes")\nelse:\n print("No")', 'K = input()\nX = input()\n\nif (X <= 500*K):\n print("Yes")\nelse:\n print("No")', 'K, X = map(int,input().split())\n\nif (X <= 500*K):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s447230032', 's451536624', 's227454031'] | [8896.0, 9044.0, 9112.0] | [24.0, 27.0, 23.0] | [81, 80, 88] |
p02811 | u788703383 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k,x=map(int,input().split());print("YNeos"[500*k>x::2])\n', "k,x=map(int,input().split());print('YNeos'[500*k<x::2])"] | ['Wrong Answer', 'Accepted'] | ['s511675312', 's699512314'] | [2940.0, 3316.0] | [17.0, 21.0] | [56, 55] |
p02811 | u792359873 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["total = 500 * int(input())\nline = int(input())\nif total >= line:\n print('Yes')\nelse:\n print('No')", "k, x = map(int, input().split())\nif (500 * k) >= x:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s224785334', 's340316021'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 91] |
p02811 | u793134951 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['k = int(input("Enter k: "))\nx = int(input("Enter x: "))\nif (k * 500 > x):\n print("Yes")\nelse:\n print("No")\n', 'K = int(input("Enter k: "))\nX = int(input("Enter x: "))\n\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")\n', "K, X = map(int, input().split())\n\nif K*500 >= X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s547212900', 's761507450', 's487388256'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [113, 113, 83] |
p02811 | u794448346 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X = map(int,input().split())\nif K*500 >= X:\n print("yes")\nelse:\n print("no")', 'K,X = map(int,input().split())\nif K*500 >= X:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s547106589', 's668014669'] | [9032.0, 8960.0] | [24.0, 24.0] | [80, 80] |
p02811 | u796703071 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K=int(input())\nX=int(input())\nif(X<=K*500):\n print("Yes")\nelse:\n print("No")', 'k,x=(int(a) for a in input().split())\nif(x<=k*500):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s197349389', 's221806438'] | [2940.0, 2940.0] | [18.0, 17.0] | [81, 89] |
p02811 | u796708718 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['char = input().split(" ")\nif int(char[0])*500 >= (char[1]):\n print("Yes")\nelse: \n print("No")', 'char = input().split(" ")\nif char[0]*500 >= char[1]:\n print("Yes")\nelse:\n print("No")', 'char = input().split(" ")\nif char[0]*500 >= char[1]:\n print("Yes")\nelse \n print("No")', 'char = input().split(" ")\nif char[0]*500 >= char[1]:\n print("Yes")\nelse:\n print("No")', 'char = input().split(" ")\nif int(char[0])*500 >= int(char[1]):\n print("Yes")\nelse: \n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s275746724', 's383228812', 's613635737', 's907715390', 's645170607'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [99, 91, 91, 91, 102] |
p02811 | u797550216 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["k, x = map(int,input().split())\n\nif (k*500) > x:\n print('No')\n\nelse:\n print('Yes')", "k, x = map(int,input().split())\n\nif (k*500) >= x:\n print('Yes')\n\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s165905592', 's100037007'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 90] |
p02811 | u798260206 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K = int(input())\nX = int(input())\n\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")\n\n', 'K = int(input())\nX = int(input())\n\nif 500*x >= X:\n print("Yes")\nelse:\n print("No")\n\n', 'K,X = map(int,(input().split()))\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s586650070', 's649794077', 's970044552'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [90, 90, 88] |
p02811 | u798904830 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["def f(K,X):\n assert K in range(1,101) and X in range(1,10**5+1)\n M = K*500\n if M>=X:\n return 'Yes'\n else:\n return 'No'\n ", "def f(K,X):\n #assert K in range(1,101) and X in range(1,10**5+1)\n M = K*500\n if M>=X:\n return 'Yes'\n else:\n return 'No'\nK,X=map(int,input().split())\nprint(f(K,X))\n"] | ['Wrong Answer', 'Accepted'] | ['s795630315', 's871084713'] | [2940.0, 2940.0] | [17.0, 17.0] | [133, 173] |
p02811 | u799916419 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['def ghke(k, x):\n return k * 500 >= x\n\nif __name__ == "__main__":\n import sys\n in_str = []\n for line in sys.stdin:\n in_str.append(int(line))\n roundone([int(_) for _ in in_str[0].split()])', 'def ghke(k, x):\n print(\'Yes\') if k * 500 >= x else print("No")\n\nif __name__ == "__main__":\n import sys\n in_str = []\n for line in sys.stdin:\n in_str.append(line)\n k, x = [int(_) for _ in in_str[0].split(\' \')]\n ghke(k, x)'] | ['Runtime Error', 'Accepted'] | ['s058207227', 's848057799'] | [2940.0, 2940.0] | [17.0, 17.0] | [208, 244] |
p02811 | u806779442 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import math\n\ndef count_index(list, k):\n count = 0\n for i in range(k):\n if (list[i] < list[k]):\n count = count + 1\n return list[k]-count-1\n\nn = int(input())-1\np = list(map(int,input().split()))\nq = list(map(int,input().split()))\n\na = (p[0]-1) * math.factorial(n)+1\nb = (q[0]-1) * math.factorial(n)+1\n\nfor i in range(1,n):\n a = a + count_index(p, i) * math.factorial(n-i)\n b = b + count_index(q, i) * math.factorial(n-i)\n\nans = a-b\nprint(abs(ans))', "k, x =map(int,input().split())\n\nif k * 500 >= x:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s556616358', 's308606198'] | [3064.0, 2940.0] | [17.0, 17.0] | [478, 87] |
p02811 | u807772568 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['import sys,collections as cl,bisect as bs\nsys.setrecursionlimit(100000)\ninput = sys.stdin.readline\nmod = 10**9+7\nMax = sys.maxsize\ndef l(): \n return tuple(map(int,input().split()))\n\ndef onem(): \n return int(input())\n\n\nimport fractions\nfrom functools import reduce\ndef gcd(*numbers):\n return reduce(fractions.gcd, numbers)\n\ndef gcd_list(numbers):\n return reduce(fractions.gcd, numbers)\ndef lcm_base(x, y):\n return (x * y) // fractions.gcd(x, y)\n\ndef lcm(*numbers):\n return reduce(lcm_base, numbers, 1)\n\ndef lcm_list(numbers):\n return reduce(lcm_base, numbers, 1)\n\ndef main():\n n = onem()\n a = l()\n\n k = lcm_list(a[:n//2])\n kk = lcm_list(a[n//2:])\n k = lcm(k,kk)\n su = 0\n\n for i in range(n):\n su += k//a[i]\n \n su %= mod\n\n print(su)\n\nif __name__ == "__main__":\n \n main()\n\nimport collections\nimport itertools\nimport operator\n\n\nclass UnionFind:\n def __init__(self, x):\n class KeyDict(dict):\n def __missing__(self, key):\n self[key] = key\n return key\n\n self.parent = KeyDict()\n self.rank = collections.defaultdict(int)\n self.size = collections.defaultdict(lambda: 1)\n if x is not None:\n for elem in range(x+1):\n _, _, _ = self.parent[elem], self.rank[elem],self.size[elem]\n\n def find(self, x):\n if self.parent[x] == x:\n return x\n else:\n self.parent[x] = self.find(self.parent[x])\n return self.parent[x]\n\n def unite(self, x, y):\n x = self.find(x)\n y = self.find(y)\n if not self.are_same(x,y):\n xx = self.size[x]\n yy = self.size[y]\n if self.rank[x] < self.rank[y]:\n self.parent[x] = y\n self.size[y] += xx\n else:\n self.parent[y] = x\n self.size[x] += yy\n if self.rank[x] == self.rank[y]:\n self.rank[x] += 1\n\n def Size(self,x):\n return self.size[self.find(x)]\n\n def are_same(self, x, y):\n \'\'\'print(x,y,self.find(x),self.find(y),self.find(x) == self.find(y))\'\'\'\n return self.find(x) == self.find(y)\n\n def grouper(self):\n roots = [(x, self.find(x_par)) for x, x_par in self.parent.items()]\n root = operator.itemgetter(1)\n for _, group in itertools.groupby(sorted(roots, key=root), root):\n yield [x for x, _ in group]\n\nn,m = m()\n\nprint("Yes" if 500 * n >= m else "No")\n\n\n\n\n', 'import sys,collections as cl,bisect as bs\nsys.setrecursionlimit(100000)\ninput = sys.stdin.readline\nmod = 10**9+7\nMax = sys.maxsize\ndef l(): \n return list(map(int,input().split()))\ndef m(): \n return map(int,input().split())\ndef onem(): \n return int(input())\ndef s(x): \n a = []\n aa = x[0]\n su = 1\n for i in range(len(x)-1):\n if aa != x[i+1]:\n a.append([aa,su])\n aa = x[i+1]\n su = 1\n else:\n su += 1\n a.append([aa,su])\n return a\ndef jo(x): \n return " ".join(map(str,x))\ndef max2(x): \n return max(map(max,x))\ndef In(x,a): \n k = bs.bisect_left(a,x)\n if k != len(a) and a[k] == x:\n return True\n else:\n return False\n\n\n\n\nn,m = m()\n\nprint("Yes" if 500 * n >= m else "No")\n\n\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s028670244', 's031513007'] | [5164.0, 3316.0] | [36.0, 21.0] | [2521, 1137] |
p02811 | u808705768 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K, X = input().split()\nprint("Yes" if 500 * K > X else "No")', 'K, X = input().split()\nprint("Yes" if 500 * int(K) >= int(X) else "No")'] | ['Wrong Answer', 'Accepted'] | ['s184108730', 's565900542'] | [2940.0, 2940.0] | [17.0, 18.0] | [60, 71] |
p02811 | u810356688 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["import sys\nfrom itertools import permutations\ndef input(): return sys.stdin.readline().rstrip()\ndef main():\n n=int(input())\n P=tuple(map(int,input().split()))\n Q=tuple(map(int,input().split()))\n p_list=list(permutations(range(1,n+1)))\n print(abs(p_list.index(Q)-p_list.index(P)))\n\nif __name__=='__main__':\n main()", 'k,x=map(int,input().split())\nif 500*k>=x:print("Yes")\nelse:print("No")'] | ['Runtime Error', 'Accepted'] | ['s836896573', 's246832510'] | [3060.0, 2940.0] | [17.0, 17.0] | [331, 70] |
p02811 | u811853862 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["# -*- coding: utf-8 -*-\ncount, maxsum = map(int, input().split())\nprint('YES' if count * 500 >= maxsum else 'No')", "# -*- coding: utf-8 -*-\ncnt, maxs = list(map(int, input().split()))\nprint('Yes' if cnt * 500 >= maxs else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s711288503', 's874409216'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 111] |
p02811 | u812666805 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["import sys\n\nVALUE = 500\n\nnum = int(sys.argv[1])\nif 1 < num > 100:\n assert False, 'Invalid value'\n\nthreshold = int(sys.argv[2])\nif 1 < threshold > 10**5:\n assert False, 'Invalid value'\n\nresult = 'Yes' if num * VALUE >= threshold else 'No'\nprint(result)\n", "#!/usr/bin/env python\nimport sys\n\nVALUE = 500\n\nnum = int(sys.argv[1])\nif num < 1 or num > 100:\n assert False, 'Invalid value'\n\nthreshold = int(sys.argv[2])\nif threshold < 1 or threshold > 10**5:\n assert False, 'Invalid value'\n\nresult = 'Yes' if num * VALUE >= threshold else 'No'\nprint(result)\n", "import sys\n\nVALUE = 500\n\nnum = int(sys.argv[1])\nif num < 1 or num > 100:\n assert False, 'Invalid value'\n\nthreshold = int(sys.argv[2])\nif threshold < 1 or threshold > 10**5:\n assert False, 'Invalid value'\n\nresult = 'Yes' if num * VALUE >= threshold else 'No'\nprint(result)\n", "#!/usr/bin/env python\n\nVALUE = 500\n\nstdin = input()\nargs = stdin.split(' ')\n\nnum = int(args[0])\nif num < 1 or num > 100:\n assert False, 'Invalid value'\n\nthreshold = int(args[1])\nif threshold < 1 or threshold > 10**5:\n assert False, 'Invalid value'\n\nresult = 'Yes' if num * VALUE >= threshold else 'No'\nprint(result)\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s809279695', 's831595049', 's997554055', 's502570380'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [258, 300, 278, 322] |
p02811 | u816234163 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['K,X=map(int,input().split())\nans=YES\nif 500*K<X:\n ans=NO\nprint(ans)\n', "K,X=map(int,input().split())\nif 500*K>=X:\n print('YES')\nelse:\n print('NO')\n ", "K,X=map(int,input().split())\nif X<=K*500:\n print('YES')\nelse:\n print('NO')", "K,X=map(int,input().split())\n\nif 500*K>=X:\n print('YES')\nelse:\n print('NO')\n \n", "K,X=map(int,input().split())\nif X<=500*K:\n print('YES')\nelse:\n print('NO')\n ", "k,x=map(int,input().split())\nif x<=k*500:\n print('YES')\nelse:\n print('NO')\n", "K,X=map(int,input().split())\nans='YES'\nif 500*K<X:\n ans='NO'\nprint(ans)\n", 'K,X=map(int,input().split())\nif X<=500*K:\n print("YES")\nelse:\n print("NO")\n \n', "K,X=map(int,input().split())\nif 500*K<X:\n print('NO')\nelse:\n print('YES')\n", "K,X=map(int,input().split())\nans='NO'\nif 500*K>=X:\n ans='YES'\nprint(ans)\n", "k, x = map(int, input().split())\nif x <= k*500:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s025373940', 's185753856', 's299552781', 's518686531', 's550848585', 's672759297', 's745273791', 's763938110', 's816915857', 's955906333', 's611151414'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [71, 85, 80, 87, 85, 81, 75, 86, 80, 76, 87] |
p02811 | u817041478 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ['a = int(input())\nif a == 2:\n a1, a2 = map(int, input().split())\n b1, b2 = map(int, input().split())\n print()\nelif a == 3:\n a1, a2, a3 = map(int, input().split())\n a1, a2, a3 = map(int, input().split())\n print(1,3)\nelif a == 5:\n a1, a2, a3, a4, a5 = map(int, input().split())\n a1, a2, a3, a4, a5 = map(int, input().split())\n print(a1,a2)\n print(a1+1,a2)\n print(a1+2,a2)\n print(a1+3,a2)\n print(a1+4,a2)\nelif a == 6:\n a1, a2, a3, a4, a5, a6 = map(int, input().split())\n a1, a2, a3, a4, a5, a6 = map(int, input().split())\n print(2,2)\n print(5,5)', 'K, X = map(int, input().split())\nresult = K*500\nif result >= X:\n print("yes")\nelif result < X:\n print("no")', 'a, b = map(int, input().split())\nresult = a*500\nif result >= b:\n print("yes")\nelse: \n print("no")', 'K, X = map(int, input().split())\nresult = K*500\nif result >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s043675667', 's270961100', 's546316635', 's246285032'] | [3064.0, 2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [593, 113, 103, 102] |
p02811 | u823885866 | 2,000 | 1,048,576 | Takahashi has K 500-yen coins. (Yen is the currency of Japan.) If these coins add up to X yen or more, print `Yes`; otherwise, print `No`. | ["import sys\nk, x = map(int, sys.stdin.readline())\nif k*500 >= x:\n print('Yes')\nelse:\n print('No')", "import sys\nk, x = map(int, sys.stdin.readline().split())\nif k*500 >= x:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s272520402', 's570238580'] | [2940.0, 2940.0] | [17.0, 18.0] | [98, 107] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.