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 | u829859091 | 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:\n print('No'", "k, x = map(int, input().split())\n\nif k*500 >= x:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s807172526', 's712979838'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 87] |
p02811 | u831835224 | 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`. | ["l = int(input())\n \nword = input()\n \ncounter = 0\nfor i in range(len(word)):\n if len(word[i:]) >= 3:\n if word[i:i+3] == 'abc':\n counter += 1\n \nprint(counter)", 'numbers = input().split(\' \')\na = int(numbers[0])\nb = int(numbers[1])\n\nif a*500 >= b:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s979740961', 's235161655'] | [2940.0, 2940.0] | [17.0, 17.0] | [169, 119] |
p02811 | u832039789 | 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 fractions import gcd\nfrom itertools import groupby as gb\nfrom itertools import permutations as perm\nfrom itertools import combinations as comb\nfrom collections import Counter as C\nfrom collections import defaultdict as dd\nsys.setrecursionlimit(10**5)\ndef y(f):\n if f:\n print('Yes')\n else:\n print('No')\ndef Y(f):\n if f:\n print('YES')\n else:\n print('NO')\ndef Z(f):\n if f:\n print('Yay!')\n else:\n print(':(')\ndef ispow(n):\n if int(n**.5)**2==n:\n return True\n return False\n\na,b = map(int,input().split())\nY(a * 500 >= b)", "k,x = map(int,input().split())\nif 500 * k >= x:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s912777031', 's953751629'] | [5588.0, 2940.0] | [53.0, 18.0] | [604, 87] |
p02811 | u834279451 | 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`. | ['#!/usr/bin/python3\n# -*- coding: utf-8 -*-\n\nK, X = [int(x) for x in input().split()]\n\nif K * 500 >= X:\n print("yes")\nelse:\n print("No")\n\n', '#!/usr/bin/python3\n# -*- coding: utf-8 -*-\n\n# N = int(input())\n# N = int(input().split())\n# N, K = [int(x) for x in input().split()]\n\nK, X = [int(x) for x in input().split()]\n\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s255719514', 's062316157'] | [2940.0, 3060.0] | [17.0, 17.0] | [143, 233] |
p02811 | u839584122 | 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 k*500>=x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s788204936', 's935767388'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 80] |
p02811 | u841021102 | 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 = list(input())\ncount = 0\nif n % 3 != 0 and n >= 3:\n for i in range (1,n): \n if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':\n count += 1\nelif n % 3 == 0 and n >= 3:\n for i in range(1, n-1):\n if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':\n count += 1\nif n == 2:\n print(0)\nelse:\n print(count)", 'k, x = map(int, input().split())\nif k*500 >= x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s266356534', 's844160102'] | [9124.0, 9060.0] | [24.0, 31.0] | [341, 82] |
p02811 | u849324100 | 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`. | ["money,sum=int(input().split())\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')", "money=int(input().split())\nsum=int(input())\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')", "money=input()\nsum=input()\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')", "money=int(input())\nsum=int(input())\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')", "money=input()\nsum=input()\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')\n", "money=input()\nsum=input()\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')\nreturn 0", "money,sum=map(int,input().split())\nmoney500=500*money\nif money500>=sum:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s413706328', 's480188953', 's718052871', 's746375763', 's975283774', 's987875518', 's586638682'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [106, 119, 101, 111, 102, 110, 110] |
p02811 | u850334701 | 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`. | ['if (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'] | ['s636132961', 's529849620'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 78] |
p02811 | u853728588 | 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`. | ['list1 = [int(i) for i in input().split()]\ntotal = list1[0]*500\n \nif total > list1[1]:\n print("yes")\nelse:\n print("no")', 'i = list(map(int, input().split())) \n\n\ntotal = i[0]*500\n\nif total > i[1]:\n print("yes")\nelse:\n print("no")', 't1 = [int(i) for i in input().split()]\ntotal = list1[0]*500\n \nif total > list1[1]:\n print("Yes")\nelse:\n print("No")', 'K, X = map(int,input().split())\nprint(type(K), K, X)\ntotal = K*500\n\nif total > X:\n print("yes")\nelse:\n print("no")', 'K,X=map(int,input().split())\ntotal = K*500\n\nif total > X:\n print("yes")\nelse:\n print("no")', 'k, x = map(int, input().split())\ntotal = k * 500\n\nif total >= x:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s199776436', 's771809440', 's818904008', 's948897283', 's986167000', 's904713960'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 9096.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 27.0] | [120, 202, 117, 116, 92, 99] |
p02811 | u854685063 | 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\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\n\nn = i()\ns = s()\ncnt = 0\nl = s.split("ABC")\nif len(l) == 1:\n print(0)\nelse:\n print(len(l)-1)', 'import sys\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\n\nk,x = i2()\nif k >= x:\n print("Yes")\nelse:\n print("No")', 'import sys\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\n\nk ,x = i2()\nif 500*k >= x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s667145622', 's695511132', 's326061965'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0] | [650, 613, 618] |
p02811 | u854992222 | 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(str, 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'] | ['s521809420', 's557192305'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 88] |
p02811 | u857330600 | 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,k=map(int,input().split())\nif x*500>=k:\n print(Yes)\nelse:\n print(No)', "x,k=map(int,input().split())\nif 500*x>=k:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s458365169', 's947157787'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 76] |
p02811 | u860737437 | 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()\nG = 500 * int (K)\nif G > X:\n print("Yes")\nelse:\n print("No")', 'K, X = input().split()\n\nif K > X:\n print("Yes")\nelse:\n print("No")', 'K, X = input().split()\nG = 500 * int(K)\nif G >= int(X):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s438987987', 's972989054', 's712349918'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [89, 72, 95] |
p02811 | u860966226 | 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 = input().spilt()\n\nk = int(data[0])\nx = int(data[1])\n\nif x <= 500 * k:\n print("Yes")\nelse:\n print("No")\n', 'k = int(input())\nx = int(input())\n\nif k * 500 >= x:\n print("Yes")\nelse:\n print("No")\n', 'data = input().split()\nk = int(data[0])\nx = int(data[1])\n \nif k * 500 >= x:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s093377231', 's107511481', 's413513481'] | [2940.0, 2940.0, 2940.0] | [19.0, 18.0, 17.0] | [111, 87, 111] |
p02811 | u861340374 | 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())\nif k*500>=x:\n print('Yes')\nelse:\n print('No')\n\n", "k,x=map(int,input())\nif k*500>=x:\n print('Yes')\nelse:\n print('No')\n\n", "k,x=map(int,input().split())\nif k*500>=x:\n print('Yes')\nelse:\n print('No')\n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s533836554', 's658406941', 's092361520'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [74, 74, 82] |
p02811 | u864989756 | 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 k*500 > x:\n print("Yes")\nelse:\n print("No")', 'k = int(input())\nx = int(input())\n\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', 'Runtime Error', 'Accepted'] | ['s051237741', 's517445873', 's167343200'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [87, 88, 86] |
p02811 | u865383026 | 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()\nif int(A[0])*500 => int(A[1]):\n print('Yes')\nelse:\n print('No')", "A = input().split()\nif 500 * int(A[0]) >= int(A[1]):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s357395074', 's096727272'] | [2940.0, 2940.0] | [17.0, 19.0] | [83, 87] |
p02811 | u870684607 | 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: print ("No")', 'K,X = map(int,input().split())\nif K * 500 >= X:\n print ("Yes")\nelse: print ("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s174815742', 's885124759'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 85] |
p02811 | u871352270 | 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, m = map(int, input().split())\nif n*500 < m:\n print("No")\nelse:\n pprint("Yes")', 'n, m = map(int, input().split())\nif n*500 < m:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s211792298', 's774673484'] | [2940.0, 2940.0] | [17.0, 18.0] | [82, 81] |
p02811 | u871841829 | 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'] | ['s477355356', 's193633397'] | [8880.0, 9040.0] | [23.0, 32.0] | [82, 82] |
p02811 | u877283726 | 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()\ncnt = 0\nans = 0\nfor i in range(N):\n if S[i] == "A":\n if cnt == 0:\n cnt += 1\n else:\n cnt = 1\n if S[i] == "B":\n if cnt == 1:\n cnt += 1\n else:\n cnt = 0\n if S[i] == "C":\n if cnt == 2:\n ans += 1\n cnt = 0\n else:\n cnt = 0\n\nprint(ans)', 'K, X = map(int,input().split())\nif 500 * K >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s219491002', 's657903130'] | [3060.0, 2940.0] | [17.0, 17.0] | [383, 87] |
p02811 | u877428733 | 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,K = int(input())\n\nif K >== 500*X:\n print("yes")\nelse:\n print("No")', 'X,K = map(int,input().split())\n\nif K >= 500*X:\n print("yes")\nelse:\n print("No")\n\n\n \n', 'K,X = map(int,input().split())\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")', 'K,X = map(int,input().split())\n\nif X <= 500*K:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s198163241', 's286273088', 's720376716', 's771132708', 's885701640'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [74, 93, 85, 85, 85] |
p02811 | u879266613 | 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())\n\n\nif 500 * K <= X:\n print("Yes")\nelse:\n print("No")\n', 'K,X = map(int, input().split())\n\n\nif 500 * K >= X:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s716941024', 's296177668'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 90] |
p02811 | u886459614 | 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')\n ", "N=int(input())\nS=input()\nans=0\nfor i in range(N-2):\n\tif S[i]+S[i+1]+S[i+2]=='ABC':\n\t\tans+=1\nprint(ans)", "K, X = map(int, input().split())\nif K*500 <X:\n print('NO')\n else:\n print('Yes')", "k,x= map(int, input().split())\n\nif 500*k>=x:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s361612138', 's550820534', 's602418924', 's138551074'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [83, 102, 86, 83] |
p02811 | u886907961 | 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\tprint("Yes")\nelse:\n\tprint("No")', 'k,x = map(int,input().split())\n\nif(k*500>=x):\n\tprint("Yes")\nelse:\n\tprint("No")\n'] | ['Runtime Error', 'Accepted'] | ['s458170250', 's519306239'] | [9008.0, 9152.0] | [30.0, 26.0] | [79, 79] |
p02811 | u888092736 | 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 if 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')\n"] | ['Runtime Error', 'Accepted'] | ['s712393736', 's684468415'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 89] |
p02811 | u891876269 | 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()\nprint(S.count('ABC'))\n", "K = int(input())\nX = int(input())\nk = K * 500\nif k > X:\n print('Yes')\nelse:\n print('No')", "K = int(input())\nX = int(input())\nk = K * 500\nif k > X:\n print('Yes')\nelse:\n print('No')\n ", "N = int(input())\nS = input()\nprint(S.count('ABC'))", "K, X = map(int, input().split())\nk = K * 500\nif k >= X:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s674524448', 's837179279', 's913831038', 's946540438', 's814844776'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 18.0] | [51, 90, 93, 50, 90] |
p02811 | u895536055 | 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 500 * K >= X:\n print(Yes)\nelse:\n print(Yes)', 'K, X = map(int, input().split())\nprint("Yes" if K * 500 >= X else "No")'] | ['Runtime Error', 'Accepted'] | ['s696228000', 's002120723'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 71] |
p02811 | u896847891 | 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`. | ['print("No" if int(input())*500<int(input()) else "yes")', 'k,x=map(int,input().split())\nprint("No" if k*500<x else "yes")', 'k, x = map(int, input().split())\nprint("Yes" if k*500 >= x else "No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s291488679', 's635354513', 's053705196'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [55, 62, 69] |
p02811 | u898058223 | 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\nfor i in range(N-2):\n if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':\n count=count+1\nprint(count)", 'K,X=map(int,input().split())\nif 500*K>=X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s467462135', 's615773777'] | [2940.0, 2940.0] | [18.0, 18.0] | [132, 76] |
p02811 | u898428248 | 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 = list(map(int,input().split()))\n\ndef main():\n coin = 500\n if x <= coin*K:\n print("Yes")\n\n else:\n print("No")\n\nif __name__ == "__main__":\n main()\n', 'K, X = list(map(int,input().split()))\n\ndef main():\n coin = 500\n if X <= coin*K:\n print("Yes")\n\n else:\n print("No")\n\nif __name__ == "__main__":\n main()\n'] | ['Runtime Error', 'Accepted'] | ['s809313708', 's255658965'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 177] |
p02811 | u898737772 | 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()\na = int(A)\nb = int(B)\nif(a*500>=b):\n print(Yes)\nelse:\n print(No)', 'A, B = input().split()\na = int(A)\nb = int(B)\nif(a*500<b):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s394340773', 's847101476'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 92] |
p02811 | u901598613 | 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.m=map(int,input().split())\nif 500*n>=m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\nif 500*n >= m:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s731732951', 's671491753'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 82] |
p02811 | u904639778 | 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`. | ["line = input()\n\nk, x = line.split(' ')\n\nif k * 500 >= x:\n print('Yes')\nelse:\n print('No')", "line = input()\n \nk, x = line.split(' ')\nk = int(k)\nx = int(x)\n\nif k * 500 >= x:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s241631924', 's469753675'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 114] |
p02811 | u906769651 | 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=input()\ns=input()\n\nprint(s.count('ABC'))", '# coding: utf-8\n# Your code here!\nk,x=map(int,input().split())\nif 500*k>=x:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s324767861', 's972580500'] | [2940.0, 8800.0] | [17.0, 27.0] | [42, 114] |
p02811 | u909577618 | 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`. | ["input()\nprint(input().count('ABC'))\n", "a = list(map(int, input().split()))\nK = a[0]\nX = a[1]\n\nif 500 * K >= X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s941535814', 's363004673'] | [2940.0, 2940.0] | [17.0, 17.0] | [36, 111] |
p02811 | u918363735 | 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`. | ["if 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'] | ['s408650726', 's668871550'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 83] |
p02811 | u919681556 | 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")', 'k = int(input())\nx=int(input())\nk=k*500\nif k<x:\n print("Yes")\nelse:\n print("No")', '10\nZABCDBABCQ', 'K, X = [int(i) for i in input().split()]\nprint("Yes" if 500*K>=X else "No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s116691896', 's368372706', 's941961575', 's405490901'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [80, 82, 13, 75] |
p02811 | u920103253 | 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\nk,x=n1()\nprint("Yes" if k*500>=x else "No")', '\ndef s0():return input()\ndef s1():return input().split()\ndef s2(n):return [input() for x in range(n)]\ndef s3(n):return [[input().split()] for _ in range(n)]\ndef n0():return int(input())\ndef n1():return [int(x) for x in input().split()]\ndef n2(n):return [int(input()) for _ in range(n)]\ndef n3(n):return [[int(x) for x in input().split()] for _ in range(n)]\ndef t3(n):return [tuple(int(x) for x in input().split()) for _ in range(n)]\ndef p0(b,yes,no): print(yes) if b else print(no)\n# from collections import Counter,deque,defaultdict\n# import itertools\n# import math\n# import networkx\n\nk,x=n1()\n\np0(k*500>=x,"Yes","No")'] | ['Runtime Error', 'Accepted'] | ['s430869883', 's207735711'] | [2940.0, 3064.0] | [17.0, 17.0] | [45, 664] |
p02811 | u923270446 | 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`. | ['input1 = list(map(int,input().split()))\nK = input[0]\nX = input[1]\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")', 'input1 = list(map(int,input().split()))\nK = input1[0]\nX = input1[1]\nif K * 500 >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s851832986', 's781672107'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 119] |
p02811 | u932864155 | 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()\ntotal = 500*K\nif total>=X :\n print("Yes")\nelse :\n print("No")', 'K,X = map(int,input().split())\ntotal = 500*K\nif total>=X :\n print("Yes")\nelse :\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s909205011', 's012009811'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 94] |
p02811 | u941884460 | 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 print("Yes")\nelse*\n print("No")\n', 'X,K=input().split()\nif 500*X >= K:\n print("Yes")\nelse*\n print("No")', 'K,X=input().split()\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")\n', 'X,K=input().split()\nif 500*X >= K:\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")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s135304775', 's357360103', 's574211460', 's618789602', 's093825753'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [70, 69, 70, 70, 78] |
p02811 | u943117333 | 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 sys import stdin\n\na, b = stdin.readline().rstrip().split()\n\nif a*500 >= b:\n print(\'Yes\')\nelse:\n print("No")\n', 'from sys import stdin\n\na, b = stdin.readline().rstrip().split()\n\nif int(a)*500 >= int(b):\n print(\'Yes\')\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s474021118', 's577436138'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 129] |
p02811 | u944015274 | 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 = list(map(int, input().split(" ")))\nif 2 * 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\')\n'] | ['Wrong Answer', 'Accepted'] | ['s744104330', 's101375213'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 94] |
p02811 | u945140822 | 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`. | ['num = int(input()).split()\nif num[0] * 500 > num[1]: print("Yes")\nelse: print("No")', 'num = input().split()\nif int(num[0])*500 >= int(num[1]):\n print("Yes")\nelse: \n print("No")'] | ['Runtime Error', 'Accepted'] | ['s374362617', 's673439310'] | [2940.0, 2940.0] | [18.0, 17.0] | [83, 96] |
p02811 | u947327691 | 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 500*a > b:\n print("YES")\nelse:\n print("NO")', 'a,b = map(int, input().split())\n\nif 500*a >= b:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s986787565', 's647813696'] | [2940.0, 3316.0] | [17.0, 21.0] | [85, 86] |
p02811 | u948779457 | 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 K*500 == X:\n print(Yes)\nelif:\n print(No)\n ', "K,X = map(int,input().split())\nif K*500>=X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s482849202', 's781001495'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 79] |
p02811 | u950129527 | 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")\n \n', 'k,x = map(int,input().split())\n\nif 500*k >= x:\n print("Yes")\nelse:\n print("No")\n \n'] | ['Wrong Answer', 'Accepted'] | ['s261246085', 's224821918'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p02811 | u951672936 | 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, intpu().split())\nprint("Yes" if K * 400 >= X else "No")', 'K, X = map(int, input().split())\nprint("Yes" if K * 500 >= X else "No")'] | ['Runtime Error', 'Accepted'] | ['s197170237', 's888678565'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 71] |
p02811 | u952669998 | 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()),int(input())\nif K*500>=X:\n print("Yes")\nelse:\n print("No")', 's = input().rstrip().split()\nK,X =int(s[0]),int(s[1])\nif K*500>=X:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s851240356', 's067197528'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 102] |
p02811 | u953274507 | 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`. | ['\nimport math\n\n\nk,x = map(int,input().split())\n\n\nif k * 500 >= x:\n text = "yes"\nelse:\n text = "No"\n\n\nprint(text)\n', '\nimport math\n\n\nk,x = map(int,input().split())\n\n\nif k * 500 >= x:\n text = "Yes"\nelse:\n text = "No"\n\n\nprint(text)\n'] | ['Wrong Answer', 'Accepted'] | ['s002212442', 's113271552'] | [2940.0, 2940.0] | [17.0, 18.0] | [182, 182] |
p02811 | u956530786 | 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())\n\nif(k * 500 >= x): print("Yes")\nelse: print("No")', 'k, x = map(int, input().split())\n\nif k * 500 >= x: print("Yes")\nelse: print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s619270857', 's996560439'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 82] |
p02811 | u958759266 | 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`. | ["if 500 * k >= x:\n print('Yse')\nelse:\n print('No')", "k, x = map(int,input().split())\nif k*500 >= x:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s667681937', 's212776101'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 81] |
p02811 | u962718741 | 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 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')\n"] | ['Runtime Error', 'Accepted'] | ['s402482202', 's847875840'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 77] |
p02811 | u962858258 | 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')\n", "K,X = map(int,input().split())\nif K*500>=X:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s821820188', 's511836071'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 83] |
p02811 | u963963908 | 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*X >= X:\n print("Yes")\n else:\n 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())\n\nif 500*K >= X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s024870678', 's768132648', 's193137871'] | [8812.0, 8692.0, 9040.0] | [25.0, 21.0, 28.0] | [81, 81, 80] |
p02811 | u967822229 | 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 = list(map(int, input()))\n\nif K * 500 >= X:\n \tprint('Yes')\nelse:\n \tprint('No')", "K, X = list(map(int, input().split()))\n\nif K * 500 >= X:\n \tprint('Yes')\nelse:\n \tprint('No')"] | ['Runtime Error', 'Accepted'] | ['s013413870', 's543833934'] | [9156.0, 9172.0] | [22.0, 29.0] | [85, 93] |
p02811 | u969848070 | 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('No')\nelse:\n print('Yes')\n ", "K, X = map(int, input().split())\nif K * 500 >= X:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s898034878', 's399495654'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 84] |
p02811 | u974485376 | 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 =list(map(int, input().split()))\nif [k*500>=x] :\n print('yes')\n exit()\nelse:\n print('no')\n", "k, x = map(int, input().split())\nif 500*k >= x:\n print('yes')\nelse:\n print('no')\n", "k,x =list(map(int, input().split()))\nif k*500>=x:\n print('yes')\n exit()\nelse:\n print('no')\n", 'k, x = map(int, input().split())\nif 500*k >= x:\n print("yes")\n exit()\nelse:\n print("No")\n', 'k, x = map(int, input().split())\nif 500*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')\n", 'k, x = map(int, input().split())\nif 500*k >= x:\n print("Yes")\n exit()\n\nelse:\n print("No")\n exit()\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s019263777', 's162436365', 's539546611', 's599817407', 's692466492', 's942272185', 's947314558'] | [9044.0, 9068.0, 9028.0, 9040.0, 9112.0, 9152.0, 9148.0] | [30.0, 25.0, 25.0, 28.0, 28.0, 24.0, 28.0] | [94, 87, 91, 98, 86, 89, 110] |
p02811 | u974935538 | 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()))\nnums = [i for i in range(1,n+1)]\nfac = [words for words in itertools.permutations(nums)]\nans = abs(fac.index(p) - fac.index(q))\nprint(ans)\n', 'K,X = map(int,input().split())\n\nif K*500>=X:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s769839733', 's723498565'] | [3060.0, 2940.0] | [18.0, 17.0] | [247, 83] |
p02811 | u979726772 | 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(x) for x in stdin.readline().rstrip().split()]\nKs = K * 500\nif Ks < X:\n print('No')\nelse:\n print('Yes')", "k,x = map(int,input().split())\nks = k * 500\nif ks < x:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s762174647', 's141352243'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 89] |
p02811 | u982749462 | 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`. | ['print(input(), type(input()))', "b,c = map(int, input().split())\nif 500 * b >= c:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s169091081', 's134498891'] | [2940.0, 2940.0] | [17.0, 17.0] | [29, 83] |
p02811 | u986460520 | 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\nimport numpy as np\nreadline = sys.stdin.readline\nwrite = sys.stdout.write\n\ndef main():\n N = int(readline())\n a = np.array(list(map(int, readline().split())))\n b = np.array(list(map(int, readline().split())))\n NA = np.arange(N)\n\n #for k in range(N):\n \n #r = np.bitwise_xor(a[(NA+k)%N], b)\n #if np.all(r == r[0]):\n \n # #print(k, r[0])\n\nif __name__ == '__main__':\n main()\n ", "K, X = map(int, input().split())\n\nif K * 500 >= X:\n print('Yes')\nelse:\n print('No')\n\n"] | ['Runtime Error', 'Accepted'] | ['s318452794', 's385353832'] | [12376.0, 2940.0] | [148.0, 18.0] | [417, 87] |
p02811 | u993090205 | 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`. | ["f,n = map(int,input().split())\nprint('Yes' if n >= f*500 else 'No')", "f,x = map(int,input().split())\nprint('Yes' if f*500 >=x else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s814030035', 's319339462'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 66] |
p02811 | u993645523 | 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 k*500>=n:\n print("YES")\nelse:\n print("NO")\n', 'k,n=map(int,input())\nif k*500>=n:\n print("YES")\nelse:\n print("NO")', 'k,n=map(int,input().split())\nif k*500>=n:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s079991726', 's109571617', 's205689372'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [81, 72, 80] |
p02811 | u995163736 | 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())\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'] | ['s218506259', 's803025712'] | [9160.0, 9156.0] | [24.0, 22.0] | [76, 84] |
p02811 | u998262711 | 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*k\nif total=>X:\n print("Yes")\nelse:\n print("No")\n ', 'a,b=map(int, input().split())\ntotal=500*a\nif total=>X:\n print("Yes")\nelse:\n print("No")', 'a,b=map(int, input().split())\ntotal=500*a\nif total>=b:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s763527937', 's848842376', 's927923754'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [62, 89, 89] |
p02812 | u000698877 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N=int(input())\nS=input()\nans=0\n\nfor i in range(N-2):\n if S[i:i+3]=="ABC":\n ans+=1', 'N=int(input())\nS=input()\nans=0\n\nfor i in range(N-2):\n if S[i:i+3]=="ABC":\n ans+=1\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s505039949', 's725901540'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 103] |
p02812 | u005039821 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["n = int(intput())\nstr = input()\nprint(str.count('ABC'))", "n = int(input())\n\ns = input()\n\nprint(s.count('ABC'))\n"] | ['Runtime Error', 'Accepted'] | ['s008256258', 's952383604'] | [9064.0, 9032.0] | [27.0, 33.0] | [55, 53] |
p02812 | u005318559 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | [' N = input()\n S = input()\n count = 0\n if int(N) >= 3 and int(N) <= 50:\n for i in range(1, int(N)-1):\n if S[i-1] + S[i] + S[i+1] == "ABC":\n count += 1\n print(count)', 'N = input()\nS = input()\ncount = 0\nif(int(N)>=3 and int(N)<=50):\n for i in range(1, int(N)-1):\n if S[i-1]+S[i]+S[i+1] == "ABC":\n count += 1\n print(count)\nSeen by Sokhom Sovichea at 19:59', 'N = input()\nS = input()\ncount = 0\nif int(N) >= 3 and int(N) <= 50:\n for i in range(1, int(N)-1):\n if s[i-1] + s[i] + s[i+1] == "ABC":\n count += 1\nprint(count)', 'N = input()\nS = input()\ncount = 0\nfor i in range(1, int(N)-1):\n if s[i-1] + s[i] + s[i+1] == "ABC":\n count += 1\nprint(count)', 'N = input()\nS = input()\nfor i in range(1, int(N)-1):\n if s[i-1] + s[i] + s[i+1] == "ABC":\n count += 1\nprint(count)', 'n = int(input())\ns = str(input())\nprint(s.count("ABC"))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s180314712', 's450937202', 's576693239', 's655079146', 's757343996', 's754025433'] | [3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [199, 209, 167, 128, 124, 55] |
p02812 | u005977014 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["N=int(input())\nS=str(input())\nS=S.remove('ABC')\nif N==len(S):\n return 0\nelse:\n return (N-len(S))//3", "N=int(input())\nS=str(input())\nS=S.replace('ABC','')\nif N==len(S):\n print(0)\nelse:\n print((N-len(S))//3)"] | ['Runtime Error', 'Accepted'] | ['s384176968', 's510480976'] | [8960.0, 9152.0] | [28.0, 33.0] | [101, 105] |
p02812 | u006883624 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["input()\ns = input()\n\ncheck = ['A', 'B', 'C']\n\ncount = 0\nstate = 0\nfor c in list(s):\n\tif c != check[state]:\n state = 0\n continue\n \n state += 1\n if state >= len(check):\n count += 1\n state = 0\n\nprint(count)", "_ = input()\ns = input()\n\ncheck = ['A', 'B', 'C']\n\ncount = 0\nstate = 0\n\nfor i in range(len(s)):\n c = s[i]\n if c != check[state]:\n state = 0\n if c != check[state]:\n state = 1\n continue\n \n state += 1\n if state == 3:\n count += 1\n state = 0\n\nprint(count)\n\n", "#from math import sqrt\n#from heapq import heappush, heappop\n#from collections import deque\n\n#a, b = [int(v) for v in input().split()]\n\n\ndef main():\n N = int(input())\n S = input()\n\n count = 0\n state = 0\n\n for c in S:\n if c == 'A':\n state = 1\n elif state == 1:\n if c == 'B':\n state = 2\n else:\n state = 0\n elif state == 2:\n if c == 'C':\n count += 1\n state = 0\n\n print(count)\n\n\nmain()\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s557885050', 's916641864', 's814238131'] | [2940.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0] | [232, 312, 520] |
p02812 | u015084832 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["def main():\n N = int(input())\n S = str(input())\n print (S)\n if 'ABC' in S :\n C = S.split('ABC')\n #print (C)\n print (len(C)-1)\n\n\nif __name__ == '__main__':\n main()", "def main():\n N = int(input())\n S = str(input())\n #print (S)\n if 'ABC' in S :\n C = S.split('ABC')\n #print (C)\n print (str(len(C)-1))\n else :\n print ('0')\n\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s412251427', 's403685329'] | [2940.0, 2940.0] | [17.0, 17.0] | [198, 235] |
p02812 | u016753669 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['put=int(Input())\nstr=str(Intput())\nprint(str.count("ABC"))', 'Num=int(Input())\nStr=str(Input())\nprint(str.count("ABC"))', 'N = int(input())\nS = str(input())\nprint(S.count("ABC"))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s285880636', 's938584548', 's010852965'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [58, 57, 55] |
p02812 | u018990794 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N = int(input())\nS = input()\n\nnum = 0\nfor i in range(len(S)-2):\n if S[i:i+2] = "ABC":\n num += 1\n else:\n num = num\n\nprint(num)', 'N = int(input())\nS = str(input())\n \nnum = 0\nfor i in range(N-2):\n if S[i:i+2] = "ABC":\n num += 1\n else:\n num += 0\nprint(num)', 'N = int(input())\nS = input()\n \nnum = 0\nfor i in len(S)-2:\n if S[i:i+2] = "ABC":\n num += 1\n else:\n num = num\nprint(num)', 'N = int(input())\nS = input()\n \nnum = 0\nfor i in range(N-2):\n if S[i:i+2] = "ABC":\n num += 1\n else:\n num += 0\nprint(num)', 'N = int(input())\nS = str(input())\n\nnum = 0\nfor i in range(N-2):\n if S[i:i+3] == "ABC":\n num += 1\n else:\n num += 0\nprint(num)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s053461544', 's358489467', 's502256625', 's772125024', 's787487776'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0] | [133, 132, 126, 127, 132] |
p02812 | u020962106 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N = int(input())\nS = list(input())\ncnt =0\nfor i in range(n-2):\n if S[i] =="A":\n if S[i+1] =="B":\n if S[i+2] == "C":\n cnt +=1\nprint(cnt)', 'N = int(input())\nS = list(input())\ncnt =0\nfor i in range(N-2):\n if S[i] =="A":\n if S[i+1] =="B":\n if S[i+2] == "C":\n cnt +=1\nprint(cnt)'] | ['Runtime Error', 'Accepted'] | ['s367353842', 's120589817'] | [2940.0, 2940.0] | [17.0, 17.0] | [151, 151] |
p02812 | u021770165 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['n = int(input())\ns = input()\n\nprint(s.count("ABC")', 'n = int(input())\ns= input()\nprint(s.count("ABC"))'] | ['Runtime Error', 'Accepted'] | ['s982968217', 's478438523'] | [8780.0, 8988.0] | [27.0, 32.0] | [50, 49] |
p02812 | u024782094 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["s = input()\nprint(s.count('ABC'))", 'n=int(input())\ns=input()\nans=0\nfor i in range(n-2):\n if s[i]=="A" and s[i+1]=="B" and s[i+2]=="C":\n ans+=1\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s652036756', 's723821182'] | [2940.0, 2940.0] | [17.0, 17.0] | [33, 121] |
p02812 | u025501820 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N = int(input())\nS = input()\nans = 0\nfor i in range(N - 2):\n if S[i] == "A" and [i + 1] == "B" and S[i + 2] == "C":\n ans += 1\nprint(ans)', 'N = int(input())\nS = input()\nprint(S.count("ABC"))'] | ['Wrong Answer', 'Accepted'] | ['s242938954', 's618531098'] | [3060.0, 2940.0] | [17.0, 17.0] | [146, 50] |
p02812 | u026731851 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N=int(input())\nS=input\nc=0\nfor i in range(0,N-2):\n if S[i:i+2]="ABC":\n c+=1\nreturn c ', 'N=int(input())\nS=input\nc=0\nfor i in range(0,N-2):\n if S[i;i+2]="ABC":\n c+=1\nreturn c ', 'N=int(input())\nS=input()\nc=0\nfor i in range(N-2):\n if S[i:i+3]=="ABC":\n c+=1\nprint(c) '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s245412519', 's807668799', 's347388788'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [92, 92, 90] |
p02812 | u029000441 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['n=int(input())\ns=input()\nj=0\ncount=0\nfor i in range(n):\n u=s[i:i+1]\n print(u)\n if j==0 and u=="A":\n j=1\n elif j==0 and u!="A":\n j=0\n elif j==1 and u=="B":\n j=2\n elif j==1 and u!="B":\n j=0\n elif j==2 and u=="C":\n j=0\n count+=1\n elif j==2 and u!="C":\n j=0\nprint(count)', 'n=int(input())\ns=input()\nj=0\ncount=0\nfor i in range(n):\n u=s[i:i+1]\n #print(u)\n if j==0 and u=="A":\n j=1\n elif j==0 and u!="A":\n j=0\n elif j==1 and u=="B":\n j=2\n elif j==1 and u!="B":\n j=0\n elif j==2 and u=="C":\n j=3\n count+=1\n elif j==2 and u!="C":\n j=0\nprint(count)', 'n=int(input())\ns=input()\ncount=0\nfor i in range(n):\n u=s[i:i+3]\n if u=="ABC":\n count=count+1\n #print(u)\n\nprint(count)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s059979614', 's485085942', 's804441214'] | [3064.0, 3064.0, 2940.0] | [17.0, 18.0, 18.0] | [339, 340, 133] |
p02812 | u032955959 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['n=int(input())\n\ns=input()\ncounter=0 \nfor i in range(n-2):\n if s[i]=="a" and s[i+1]=="b" and s[i+2]=="c":\n counter = counter + 1\nprint(counter)', 'n=int(input())\n\ns=input()\ncounter=0 \nfor i in range(n-2):\n if s[i]=="A" and s[i+1]=="B" and s[i+2]=="C":\n counter = counter + 1\nprint(counter)'] | ['Wrong Answer', 'Accepted'] | ['s711816853', 's102795014'] | [9092.0, 9096.0] | [28.0, 28.0] | [152, 152] |
p02812 | u033642300 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["def main():\n N = int(input())\n S = str(input())\n l = 0\n ans = 0\n p = ''\n for i in range(N):\n if S[i] == 'A' and p == '':\n l += 1\n p = S[i]\n elif S[i] == 'B' and l == 1 and p == 'A':\n l += 1\n elif S[i] == 'C' and l == 2 and p == 'B':\n ans += 1\n l = 0\n else:\n l = 0\n p = ''\n print(ans)\nmain()", "def main():\n N = int(input())\n S = str(input())\n ans = 0\n for i in range(N - 2):\n if S[i] == 'A' and S[i + 1] == 'B' and S[i + 2] == 'C':\n ans += 1\n print(ans)\nmain()"] | ['Wrong Answer', 'Accepted'] | ['s124820390', 's295458191'] | [9140.0, 9168.0] | [29.0, 29.0] | [380, 183] |
p02812 | u033963510 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['\ndef search(N):\n ans = False\n if not N >= 90:\n for i in range(1,10):\n if N%i == 0 and 1 <= N // i <= 9:\n ans = True\n break\n else:\n pass \n return ans\n\nN = int(input())\nif search(N):\n print("Yes")\nelse:\n print("No")\n\n', '\ndef splitlist(List, n=3):\n N = len(List)\n for i in range(N):\n yield List[i:i+n]\n\n_ = int(input())\nS = list(input())\nS1 = list(splitlist(S))\n\nimport collections\nprint(S1.count(["A", "B", "C"]))'] | ['Wrong Answer', 'Accepted'] | ['s695882073', 's288555830'] | [2940.0, 3316.0] | [17.0, 20.0] | [311, 206] |
p02812 | u034777138 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["inputA= int(input())\ninputB =map(input())\n\nprint(inputB.count('ABC'))", "inputA,inputB =map(input())\n\nprint(inputB.count('ABC'))", "inputA= int(input())\ninputB =map(str,input())\n\nprint(inputB.count('ABC'))", 'N = int(input())\nS = str(input())\n\n\nif S[:N//2] == S[N//2:N]:\n print("Yes")\nelse:\n print("No")', "inputA= int(input())\ninputB =map(str,input().split())\n\nprint(inputB.count('ABC'))", "inputA= int(input())\ninputB =input()\n\nprint(inputB.count('ABC'))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s136546564', 's217306998', 's490720623', 's621992138', 's714251034', 's982001058'] | [2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [69, 55, 73, 100, 81, 64] |
p02812 | u038216098 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N=int(input())\nS=input()\ncount=0\nfor i in range(N-2):\n if(S[i:3:]=="ABC"):\n count+=1\nprint(count)', 'count=0\nN=input()\nS=input()\nN=int(N)\nfor i in range(N-2):\n if(S[i]=="A" and S[i+1]=="B" and S[i+2]=="C"):\n count++\nprint(count)', 'N=int(input())\nS=input()\ncount=0\nfor i in range(N-2):\n if(S[i]=="A" and S[i+1]=="B" and S[i+2]=="C"):\n count+=1\nprint(count)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s401960518', 's902548956', 's790617884'] | [9108.0, 2940.0, 9112.0] | [27.0, 17.0, 28.0] | [101, 131, 128] |
p02812 | u043844098 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["# -*- coding: utf-8 -*-\nn = int(input())\ns = list(input())\n \nresult = 0\nfor range(len(s)):\n if s > n - 3:\n break\n if (s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):\n result = result + 1\n \nprint(result)\n", "# -*- coding: utf-8 -*-\nn = int(input())\ns = list(input())\n\nresult = 0\nfor(int i = 0; i < n - 3; i++):\n if (s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):\n result = result + 1\n \nprint(result)", "n = int(input())\ns = list(input())\n\nresult = 0\nfor i in range(len(s)):\n if (i > n - 3):\n break\n if (s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):\n result = result + 1\n\nprint(result)\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s959020737', 's966221416', 's396979460'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [216, 201, 206] |
p02812 | u045953894 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["n = int(input()); s = input() ; c = 0\n\nfor i in range(n):\n a = s[i-3:i]\n print(a)\n if a == 'ABC':\n c += 1\nprint(c)", "n = int(input())\ns = input()\nans = 0\n\nfor i in range(n-2):\n print(s[i:i+3])\n if s[i:i+3] == 'ABC':\n ans += 1\nprint(ans)", "n = int(input())\ns = input()\nans = 0\n\nfor i in range(n-2):\n if s[i:i+3] == 'ABC':\n ans += 1\nprint(ans)"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s167341798', 's309499633', 's312694587'] | [2940.0, 9176.0, 9076.0] | [18.0, 23.0, 28.0] | [130, 132, 112] |
p02812 | u049421539 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["https://atcoder.jp/contests/abc150/submitinput()\ns = input()\nans = 0\nwhile 1:\n pos = s.find('ABC')\n if pos == -1:\n break\n ans += 1\n s = s[pos + 3:]\nprint(ans)", "input()\ns = input()\nans = 0\nwhile 1:\n pos = s.find('ABC')\n if pos == -1:\n break\n ans += 1\n s = s[pos + 3:]\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s332029508', 's027258555'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 136] |
p02812 | u054473438 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["N = int(input())\nS = input()\ncount = 0\nfor i in range(N-2):\n print(S[i:i+3])\n if S[i:i+3] == 'ABC':\n count += 1\nprint(count)", "N = int(input())\nS = input()\ncount = 0\nfor i in range(N-2):\n if S[i:i+3] == 'ABC':\n count += 1\nprint(count)"] | ['Wrong Answer', 'Accepted'] | ['s733620079', 's031156782'] | [2940.0, 2940.0] | [17.0, 19.0] | [129, 111] |
p02812 | u057668615 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["N = int(input())\nS = str(input())\n\ncnt = 0\n\nfor i in range(0,len(S):\n if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':\n cnt += 1\n\n\nprint(cnt)\n", "N = int(input())\nS = str(input())\n\ncnt = 0\n\nfor i in range(0,len(S)-2):\n if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':\n cnt += 1\n\n\nprint(cnt)"] | ['Runtime Error', 'Accepted'] | ['s077613206', 's232229828'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 152] |
p02812 | u057996804 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["n = int(input())\ns = str(input())\ncount = 0\nfor i in range(n):\n if s[i] == 'a' or 'A':\n if s[i + 1] == 'b' or 'B':\n if s[i + 2] == 'c' or 'C':\n count += 1\nprint(count)", "n = int(input())\ns = str(input())\ncount = 0\nfor i in range(n):\n if s[i] == 'a':\n if s[i + 1] == 'b':\n if s[i + 2] == 'c':\n count += 1\nprint(count)", "n = int(input())\ns = str(input())\ncount = 0\nfor i in range(n):\n if s[i] == 'a' or s[i] == 'A':\n if i + 1 < n:\n if s[i + 1] == 'b' or s[i + 1] == 'B':\n if i + 2 < n:\n if s[i + 2] == 'c' or s[i + 2] == 'C':\n count += 1\nprint(count)"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s006039979', 's175484535', 's827776316'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0] | [203, 182, 308] |
p02812 | u058809975 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["N=int(input())\nA=input()\n\ni=0\nans=0\nwhile(True):\n if i>N-3:\n break\n if A[i]=='A' and A[i+1]=='B' and A[i+2]=='C':\n ans+=1\n i+=3\n else:\n i+=1", "N=int(input())\nA=input()\n\ni=0\nans=0\nwhile(True):\n if i>N-3:\n break\n if A[i]=='A' and A[i+1]=='B' and A[i+2]=='C':\n ans+=1\n i+=3\n else:\n i+=1\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s204803281', 's072731265'] | [2940.0, 3060.0] | [17.0, 17.0] | [155, 166] |
p02812 | u074140654 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['N = int(input())\nS = str(input())\np = "abc"\nprint(S.count("abc"))\n', 'N = int(input())\nS = str(input())\nS = S.replace("abc","pq")\nprint(N - len(S))\n', 'N = int(input())\nS = str(input())\np = "abc"\nprint(N.count(p))', 'N = int(input())\nS = str(input())\np = "abc"\nprint(S.count(p))\n', 'N = int(input())\nS = str(input())\nS.replace("abc","pq")\nprint(N - len(S))\n', 'N = int(input())\nS = str(input())\np = "abc"\nprint(len(re.findall("abc", S)))\n', 'N = int(input())\nS = str(input())\np = "abc"\nprint(s.count(p))', 'N = int(input())\nS = input()\np = "abc"\nprint(s.count(p))', 'N = int(input())\nS = str(input())\nS.replace("abc","pq")\nprint(len(S) - N)\n', 'N = int(input())\nS = str(input())\nS = S.replace("ABC","ab")\nprint(N - len(S))\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s108983576', 's158351299', 's202397982', 's599706718', 's625190411', 's713050606', 's723778072', 's814791310', 's848309197', 's130509888'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [66, 78, 61, 62, 74, 77, 61, 56, 74, 78] |
p02812 | u077291787 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['# ABC150B - Count ABC\ndef main():\n N = int(input())\n S = input().rstrip()\n ans = sum(S[i + 3] == "ABC" for i in range(N - 3))\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n', '# ABC150B - Count ABC\ndef main():\n _, S = open(0).read().split()\n ans = S.count("ABC")\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s003877370', 's970978118'] | [2940.0, 2940.0] | [17.0, 17.0] | [190, 148] |
p02812 | u079626074 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['from sys import stdin\nstdin = open("input.txt")\n\nif __name__ == "__main__":\n N = int(stdin.readline())\n S = stdin.readline().rstrip()\n \n print(S.count("ABC"))', 'from sys import stdin\n\n\nif __name__ == "__main__":\n N = int(stdin.readline())\n S = stdin.readline().rstrip()\n \n print(S.count("ABC"))'] | ['Runtime Error', 'Accepted'] | ['s721464472', 's155295399'] | [2940.0, 2940.0] | [18.0, 17.0] | [162, 163] |
p02812 | u084261177 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["if __name__ == '__main__':\n # We have a string S of length N consisting of uppercase English letters.\n n = input()\n s = input()\n num = 0\n if 'ABC' in s:\n num += 1\n s = s.replace('ABC', '')\n print(num)", "if __name__ == '__main__':\n # We have a string S of length N consisting of uppercase English letters.\n temp = input().split('\\n')\n n = temp[0]\n s = temp[1]\n num = 0\n if 'ABC' in s:\n num += 1\n s.replace('ABC', '')\n print(num)", "if __name__ == '__main__':\n # We have a string S of length N consisting of uppercase English letters.\n n = input()\n s = input()\n num = 0\n if 'ABC' in s:\n num += 1\n s = s.replace('ABC', '', 1)\n print(num)", "if __name__ == '__main__':\n # We have a string S of length N consisting of uppercase English letters.\n temp = input().split('\\n')\n n = temp[0]\n s = temp[1]\n num = 0\n if 'ABC' in s:\n num += 1\n s = s.replace('ABC', '')\n print(num)", "if __name__ == '__main__':\n # We have a string S of length N consisting of uppercase English letters.\n n = input()\n s = input()\n num = 0\n for i in range(len(s)):\n if 'ABC' in s:\n num += 1\n s = s.replace('ABC', '', 1)\n print(num)"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s526561005', 's537659724', 's820090597', 's901264061', 's394018214'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [232, 259, 235, 263, 275] |
p02812 | u084320347 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["S = str(input())\n\nprint(S.count('ABC'))", "S = str(input())\nN = int(input())\n\nprint(S.count('ABC'))\n", 'n = int(input())\ns = input()\nprint(s.count("ABC"))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s252070488', 's843195833', 's544390980'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [39, 57, 50] |
p02812 | u086776991 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ["import sys\n\nN = input()\nS = input()\n\nc = 0\n\nfor i in range(N-2):\n if S[i]=='A' and S[i+1]=='B'and S[i+2]=='C':\n c += 1\n\nprint(c)", "import sys\n\nN = int(input())\nS = input()\n\nc = 0\n\nfor i in range(N-2):\n if S[i]=='A' and S[i+1]=='B'and S[i+2]=='C':\n c += 1\n\nprint(c)"] | ['Runtime Error', 'Accepted'] | ['s124434720', 's791107519'] | [2940.0, 2940.0] | [17.0, 18.0] | [140, 145] |
p02812 | u088078693 | 2,000 | 1,048,576 | We have a string S of length N consisting of uppercase English letters. How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)? | ['print(input().count("ABC"))', 'input()\nprint(input().count("ABC"))'] | ['Wrong Answer', 'Accepted'] | ['s983158656', 's060033943'] | [2940.0, 2940.0] | [17.0, 17.0] | [27, 35] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.