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
|
---|---|---|---|---|---|---|---|---|---|---|
p02693 | u568576853 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\nif b//k*k>=a:\n print('Yes')\nelse:\n print('No')\n ", "k=int(input())\na,b=map(int,input().split())\nif b//k*k>=a:\n print('OK')\nelse:\n print('NG')\n "] | ['Wrong Answer', 'Accepted'] | ['s027300723', 's695093093'] | [9152.0, 9156.0] | [20.0, 20.0] | [95, 94] |
p02693 | u568789901 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\n\nif A%K==0 or B%K==0:\n print("OK")\n exit()\nelse:\n a=A//K\n if A*(a+1)<=B:\n print("OK")\n else:\n print("NG")\n', 'K=int(input())\nA,B=map(int,input().split())\n\nif A%K==0 or B%K==0:\n print("OK")\n exit()\nelse:\n a=A//K\n if K*(a+1)<=B:\n print("OK")\n else:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s474065159', 's449258173'] | [9172.0, 9168.0] | [20.0, 23.0] | [179, 179] |
p02693 | u571999153 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = map(int, input().split())\nflag = 0\nfor i in range(a,b+1):\n if i % k == 0:\n flag = 1\n break\nif flag = 1:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int, input().split())\nflag = 0\nfor i in range(a,b+1):\n if i % k == 0:\n flag = 1\n break\nif flag == 1:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s124192912', 's659300045'] | [8916.0, 9112.0] | [26.0, 29.0] | [167, 168] |
p02693 | u573310917 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import sys\nK = int(input())\nA, B = map(int, input().split(" "))\nfor i in range(A, B+1):\n print(i)\n if i % K == 0:\n print("OK")\n sys.exit()\nprint("NG")\n', 'import sys\nK = int(input())\nA, B = map(int, input().split(" "))\nfor i in range(A, B+1):\n if i % K == 0:\n print("OK")\n sys.exit()\nprint("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s783098681', 's819241963'] | [9032.0, 9100.0] | [23.0, 21.0] | [159, 148] |
p02693 | u573678402 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a, b, n = map(int, input().split(" "))\n\nmax_score = 0\ny = b // a\n\nfor x in range(max(y - 1000000, 1) , min(y + 2000000, n+1)):\n score = a * x // b - a * ( x // b )\n if score > max_score:\n max_score = score\nprint(max_score)\n', 'x = int(input())\np, q = map(int, input().split())\n\nok = 0\nfor i in range(p, q+1):\n if i % x == 0:\n ok += 1\n break\nif ok == 1:\n print("OK")\nelse:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s659081264', 's650549089'] | [9180.0, 9172.0] | [22.0, 20.0] | [236, 181] |
p02693 | u574565611 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A,B,N = map(int,input().split())\na = 0\n\nfor x in range(N+1):\n if (int((A*x)/B)-A*int(x/B)) > a:\n a = (int((A*x)/B)-A*int(x/B))\nprint(a) ', 'K = int(input())\nA,B = map(int,input().split())\n\nn = range(A,B+1)\nind = range(B-A)\nfor i in n:\n list.append(i)\ncounter = 0\n\nfor i in ind:\n if list[i]%K == 0:\n counter += 1\n else:\n counter += 0\nif counter > 0:\n print("OK")\nelse:\n print("NG")\n \n ', 'K = int(input())\nA,B = map(int,input().split())\nlist = []\nn = range(A,B+1)\nind = range(B-A+1)\nfor i in n:\n list.append(i)\ncounter = 0\n\nfor i in ind:\n if list[i] % K == 0:\n counter += 1\n else:\n counter += 0\nif counter >= 1:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s555114739', 's687678826', 's558165386'] | [9076.0, 9180.0, 9136.0] | [21.0, 21.0, 21.0] | [146, 283, 283] |
p02693 | u575534159 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k=input()\na,b = map(int,input().split())\n\nfor i in range(a,b):\n if i%k == 0:\n print("OK")\n break\n if i%k!=0 and i == b:\n print("NG")', 'k=int(input())\na,b = map(int,input().split())\nc=0 \nfor i in range(a,b+1):\n if i%k == 0:\n c = c + 1\nif c > 0:\n print("OK")\nelse:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s352313864', 's506352587'] | [9168.0, 9100.0] | [20.0, 23.0] | [143, 147] |
p02693 | u577766140 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['goal=int(input())\nlist=input().split(" ")\nmax=int(list[0])\nmin=int(list[1])\nif(max-min>=goal):\n print("OK")\nelse:\n print("NG")', 'goal=int(input())\nlist=input().split(" ")\nmax=int(list[0])\nmin=int(list[1])\nif(max-min>goal):\n print("OK")\nelse:\n print("NG")', 'goal=int(input())\nlist=input().split(" ")\nmax=int(list[1])\nmin=int(list[0])\nflag=0\nfor i in range(min,max+1):\n if i%goal==0:\n flag=1;\n\nif flag==0:\n print("NG")\nelse:\n print("OK")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s347700704', 's506768004', 's998798623'] | [9164.0, 9100.0, 9184.0] | [20.0, 19.0, 22.0] | [132, 131, 194] |
p02693 | u578970900 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = input()\na, b = list(map(int, input().split()))\nisYes = False\nfor i in range(a, b+1):\n if i % k == 0:\n isYes = True\n break\nprint('OK' if isYes else 'NG')", "k = input()\na, b = list(map(int, input().split()))\nisYes = False\nfor i in range(a, b+1):\n if i % k == 0:\n isYes = False\n break\nprint('OK' if isYes else 'NG')", "k = int(input())\na, b = list(map(int, input().split()))\nisYes = False\nfor i in range(a, b+1):\n if i % k == 0:\n isYes = True\n break\nprint('OK' if isYes else 'NG')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s253961246', 's841805368', 's397695452'] | [9104.0, 9168.0, 9104.0] | [22.0, 20.0, 24.0] | [173, 174, 179] |
p02693 | u580920947 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int, input().split())\n\nflag = False\nfor i in range(a, b+1):\n\tif i % k == 0:\n \tflag = True\n\nprint("OK") if flag else print("NG")', 'k = int(input())\na, b = map(int, input().split())\n \nflag = False\nfor i in range(a, b+1):\n if i % k == 0:\n flag = True\n \nprint("OK") if flag else print("NG")\n\n'] | ['Runtime Error', 'Accepted'] | ['s111779137', 's456667976'] | [9024.0, 9164.0] | [21.0, 22.0] | [158, 168] |
p02693 | u581403769 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\n\nflag = False\nfor i in range(a, b + 1):\n if i // k > 0 ans i % k == 0:\n flag = True\n \nif flag:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b = map(int, input().split())\n\nflag = False\nfor i in range(a, b + 1):\n if i % k == 0:\n flag = True\n \nif flag:\n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s316966656', 's972449145'] | [8836.0, 9148.0] | [25.0, 24.0] | [199, 185] |
p02693 | u581636201 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A,B,N=map(int,input().split())\nif N>=B:\n print(int(A*(B-1)/B)-A*int((B-1)/B))\nelse:\n print(int(A*N/B)-A*int(N/B))', 'K=int(input())\nA,B=map(int,input().split())\na=0\nfor i in range(A,B+1):\n if i%K==0:\n a=1\n print("OK")\n break\nif a!=1:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s556633132', 's214574435'] | [9176.0, 9172.0] | [24.0, 24.0] | [119, 156] |
p02693 | u582803594 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\nb=0\n\nfor i in range(A,B+1):\n if i%K==0:\n b+=1\n \nif b!=0:\n print("Yes")\nelse:\n print("No")', 'K=int(input())\nA,B=map(int,input().split())\nb=0\n\nfor i in range(A,B+1):\n if i%K==0:\n b+=1\n \nif b!=0:\n print("OK")\nelse:\n print("NG")\n '] | ['Wrong Answer', 'Accepted'] | ['s380419795', 's039507752'] | [9068.0, 9036.0] | [31.0, 35.0] | [156, 160] |
p02693 | u582992176 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['from math import floor,ceil\nx = input().split()\na = int(x[0])\nb = int(x[1])\nc = int(x[2])\nprint(int(floor(a*c/b)-a*floor(c/b)))\n', 'from math import floor,ceil\nx = input().split()\na = int(x[0])\nb = int(x[1])\nc = int(x[2])\nprint(int(floor(a*c/b)-a*floor(c/b)))\n', 'from math import floor,ceil\nx = input().split()\na = int(x[0])\nb = int(x[1])\nc = int(x[2])\nprint(ceil(ceil(a*c/b)-a*floor(c/b)))\n', 'from math import floor,ceil\nx = input().split()\na = int(x[0])\nb = int(x[1])\nc = int(x[2])\nprint(floor(floor(a*c/b)-a*floor(c/b)))\n', 'k = int(input())\nx = input().split()\na = int(x[0])\nb = int(x[1])\nc = 0\nfor i in range(a,b+1):\n if i%k==0:\n c = 1\n break\nif c==1:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s158117574', 's278011569', 's301834399', 's817645611', 's828961453'] | [9164.0, 9168.0, 9168.0, 9168.0, 9180.0] | [22.0, 20.0, 24.0, 22.0, 21.0] | [128, 128, 128, 130, 169] |
p02693 | u584520370 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["s = input(input())\na, b = map(int, input())\n\na_1 = a / s\nb_1 = b / s\n\nif b_1 - a_1 > 1 :\n print('OK')\nelse :\n print('NG')", "k = int(input())\na, b = map(int, input().split())\n\na_1 = a % k\nb_1 = b % k\n\nif a % k == 0 :\n print('OK')\nelif b_1 > a_1 :\n print('NG')\nelse :\n print('OK')", "import math as M\nk = int(input())\na, b = map(int, input().split())\n\na_1 = M.floor(a % k)\nb_1 = M.floor(b % k)\n\nif a % k == 0 :\n print('OK')\nelif b / k < 1 :\n print('NG')\nelif b_1 - a_1 > 1 :\n print('NG')\nelse :\n print('OK')", "s = input(input())\na, b = map(int, input().split())\n\na_1 = a / s\nb_1 = b / s\n\nif b_1 - a_1 > 1 :\n print('OK')\nelse :\n print('NG')", "s = input(input())\nA = list(map(int, input().split()))\n\na_1 = A[0] / s\nb_1 = A[1] / s\n\nif b_1 - a_1 > 1 :\n print('OK')\nelse :\n print('NG')", "import math as M\nk = int(input())\na, b = map(int, input().split())\n\na_1 = M.floor(a % k)\nb_1 = M.floor(b % k)\n\nif a % k == 0 :\n print('OK')\nelif b_1 - a_1 > 1 :\n print('NG')\nelse :\n print('OK')", "import math as M\nk = int(input())\na, b = map(int, input().split())\n\na_1 = M.floor(a/k)\nb_1 = M.floor(b/k)\n\nif a%k == 0 or b%k == 0:\n print('OK')\nelif b_1 - a_1 < 1:\n print('NG')\n\nelse :\n print('OK')"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s002020566', 's038761138', 's155699184', 's326536280', 's639688584', 's799295566', 's959844818'] | [9036.0, 9172.0, 9184.0, 9104.0, 9036.0, 9176.0, 9168.0] | [23.0, 22.0, 21.0, 22.0, 22.0, 21.0, 21.0] | [127, 164, 236, 135, 144, 203, 207] |
p02693 | u586857375 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA = int(input())\nB = int(input())\nif B-A > K:\n print('OK')\nelse:\n print('NG')", "K = int(input())\nk = K\nA,B = map(int, input().split())\nfor i in range(1, B+1):\n k *= i\n if k > a and k < b:\n print('OK')\n a = True\n break\nif not a:\n print('NG')\n", "K = int(input())\nA,B = map(int, input().split())\ncount = 0\nwhile True:\n count += 1\n k = K * count\n if k >= A and k <= B:\n print('Yes')\n a = True\n break\n else:\n a = False\n continue\nif K > B:\n a = False\nif a != True:\n print('NG')", "K = int(input())\nk = K\nA,B = map(int, input().split())\nfor i in range(1, B+1):\n k *= i\n if k >= A and k <= B:\n print('OK')\n a = True\n break\n else:\n k = K\n a = False\n continue\nif a != True:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s134341499', 's482622605', 's566005284', 's221714070'] | [9124.0, 9056.0, 9088.0, 9112.0] | [20.0, 22.0, 2206.0, 23.0] | [100, 191, 280, 255] |
p02693 | u587425560 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a,b = map(int,input().split())\nif a//k != b//k:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na,b = map(int,input().split())\nif a//k != b//k:\n print("OK")\nelif a%k == 0:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s126001511', 's243768220'] | [9096.0, 9164.0] | [25.0, 19.0] | [85, 133] |
p02693 | u588048170 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A, B, N = map(int, input().split())\nif N < B:\n print(A*N//B)\nelse:\n l = [(A*i//B)-(A*(i//B)) for i in range(abs(N-5), N+1)]\n print(max(l))', "K = int(input())\nA, B = map(int, input().split())\nfor i in range (A, B + 1):\n if i % K == 0:\n print('OK')\n else:\n print('NG')\n break", "K = int(input())\nA, B = map(int, input().split())\nresult = 'NG'\nfor i in range (A, B + 1):\n if i % K == 0:\n result = 'OK'\nprint(result)"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s299384870', 's563607741', 's307146106'] | [9108.0, 9164.0, 9164.0] | [23.0, 24.0, 28.0] | [147, 159, 145] |
p02693 | u589969467 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = map(int,input().split())\nans = 0\nfor i in range(a//k,b//k+1):\n if a <= k * i <= b:\n ans = 1\nif ans = 1:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nans = 0\nfor i in range(a//k,b//k+1):\n if a <= k * i <= b:\n ans = 1\nif ans == 1:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s140977806', 's384515302'] | [8924.0, 9100.0] | [25.0, 29.0] | [164, 165] |
p02693 | u591734860 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\n\n\n# return now_year\n# else:\n\n\ngoal = int(input())\ndepo = 100\n#print(getTotal(depo, 0, goal))\nnow_year = 0\nwhile (True):\n depo = math.floor(depo * 1.01)\n now_year += 1\n if(depo >= goal):\n print(now_year)\n break', 'target_multi = int(input())\n(min, max) = tuple(map(int, input().split(\' \')))\n\n\nis_ok = False\nfor i in range(min, max + 1):\n if(i % target_multi == 0):\n print("OK")\n is_ok = True\n break\n\nif not(is_ok):\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s081454888', 's111004146'] | [9168.0, 9176.0] | [24.0, 22.0] | [367, 264] |
p02693 | u593442720 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['x = int(input())\na = 100\ni = 0\nwhile a <= x:\n i += 1\n a = int(a * 1.01)\nprint(i)', "k = int(input())\na, b = input().split()\na = int(a)\nb = int(b)\nif a - a % k + k <= b or a % k == 0 or b % k == 0:\n print('OK')\nelse:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s667167175', 's525892032'] | [9152.0, 9120.0] | [19.0, 23.0] | [82, 147] |
p02693 | u596163897 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\na,b,n=(int(x) for x in input().split())\nk =0\nfor x in range(0,n+1):\n c = math.floor((a*x)/b)-a*math.floor(x/b)\n if c > k:\n k = c\nprint(k)', 'k = int(input().strip())\na, b = input().strip().split()\na = int(a)\nb = int(b)\nc = 0\nfor i in range(1,1001):\n if i*k <= b and i*k >= a:\n print("OK")\n c = 1\n break\nif c == 0:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s892116020', 's981341117'] | [9168.0, 9180.0] | [22.0, 20.0] | [163, 212] |
p02693 | u597374218 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['X=int(input())\nyear=0\ndeposit=100\nwhile deposit<X:\n deposit=deposit*101//100\n year+=1\nprint(year)', 'K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s536858442', 's114690291'] | [9164.0, 9104.0] | [24.0, 28.0] | [103, 137] |
p02693 | u599547273 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nfor i in range(!, B+1):\n if i%K == 0:\n print("OK")\n exit()\nprint("NG")', 'K = int(input())\nA, B = map(int, input().split())\n\nfor i in range(A, B+1):\n if i%K == 0:\n print("OK")\n exit()\nprint("NG")'] | ['Runtime Error', 'Accepted'] | ['s143048880', 's469157656'] | [8888.0, 9168.0] | [21.0, 22.0] | [138, 138] |
p02693 | u599669731 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k=int(input())\na,b=map(int,input().split())\nc=abs(a-b)+1\nflag=0\nfor i in range(c):\n if i%k==0:\n print("OK")\n flag=1\n exit\nif flag==0:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nflag=0\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n flag=1\n break\nif flag==0:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s908762798', 's130334088'] | [9180.0, 9176.0] | [22.0, 22.0] | [173, 165] |
p02693 | u600261652 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nfor i in range(A,B):\n if (i%K) == 0:\n print("OK")\n else:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\ni = (B//K)\nif (i*K) < A:\n print("NG")\nelse:\n print("OK")'] | ['Wrong Answer', 'Accepted'] | ['s483428455', 's066397778'] | [9112.0, 8976.0] | [23.0, 22.0] | [127, 108] |
p02693 | u600937333 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = list(map(int, input().split()))\n\nN = (B // K) * K\nif (A <= N):\n print(‘OK’)\nelse:\n print(‘NG’)', 'K = int(input())\nA, B = list(map(int, input().split()))\n \nN = (B // K) * K\nif (A <= N):\n print(‘OK’)\nelse:\n print(‘NG’)', "K = int(input())\nA, B = list(map(int, input().split()))\n \nN = (B // K) * K\nif (A <= N):\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s321385704', 's767925640', 's702453958'] | [8964.0, 8984.0, 9172.0] | [23.0, 21.0, 21.0] | [129, 130, 122] |
p02693 | u601575292 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['def mapint_inp():\n return map(int, input().split())\n\ndef intinp():\n return int(input())\n\nK = intinp()\nA, B = mapint_inp()\n\nans = False\nfor i in (A, B):\n if i%K == 0:\n ans = True\n \nif ans:\n print("OK")\nelse:\n print("NG")', 'def mapint_inp():\n return map(int, input().split())\n\ndef intinp():\n return int(input())\n\nK = intinp()\nA, B = mapint_inp()\n\nans = False\nfor i in range(A, B+1):\n if i%K == 0:\n ans = True\n \nif ans:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s895186981', 's078097919'] | [9204.0, 9176.0] | [20.0, 22.0] | [244, 251] |
p02693 | u603939330 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a,b,n = map(int,input().split())\n\n\nmax=0\nfor x in range(n+1):\n value=(a*x//b)-a*(x//b)\n if value>max:\n max=value\nprint(max)\n', "k =int(input())\na,b = map(int,input().split())\ndef judge(k,a,b):\n for i in range(a,b+1):\n if i%k==0:\n return 'OK'\n return 'NG'\n\nprint(judge(k,a,b))\n"] | ['Runtime Error', 'Accepted'] | ['s259268074', 's116750620'] | [9164.0, 9160.0] | [21.0, 22.0] | [137, 172] |
p02693 | u605253462 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['n = int(input())\na,b = input().split()\na = int(a)\nb = int(b)\nfor i in range(a, b+1):\n print(i)\n if i%n == 0:\n print("OK")\n exit()\nprint("NG")', 'n = int(input())\na,b = input().split()\na = int(a)\nb = int(b)\nfor i in range(a, b+1):\n if i%n == 0:\n print("OK")\n exit()\nprint("NG")'] | ['Wrong Answer', 'Accepted'] | ['s796147114', 's989856173'] | [9228.0, 9116.0] | [23.0, 21.0] | [149, 138] |
p02693 | u606146341 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["n = int(input())\na, b = map(int, input().split())\n\nflg = 0\nwhile n < b:\n n += n\n if a <= n <= b:\n print('OK')\n flg = 1\n break\nif flg == 0:\n print('NG')", "n = int(input())\na, b = map(int, input().split())\n\ni = 0\nflg = 0\nwhile i <= b:\n i += n\n if a <= i <= b:\n print('OK')\n flg = 1\n break\nif flg == 0:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s658262439', 's017997766'] | [9172.0, 9176.0] | [23.0, 23.0] | [181, 188] |
p02693 | u606878291 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["def main(k, a, b):\n for n in range(a, b + 1):\n if k % n == 0:\n return 'OK'\n else:\n return 'NG'\n\n\nif __name__ == '__main__':\n k = int(input())\n a, b = map(int, input().split(' '))\n print(main(k, a, b))\n", "K = int(input())\nA, B = map(int, input().split(' '))\n\nif B // K * K >= A:\n print('OK')\nelse:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s648841720', 's883908031'] | [9172.0, 9164.0] | [21.0, 21.0] | [241, 112] |
p02693 | u607563136 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int,input().split())\n\nans = 0\n\nfor i in range(a,b+1):\n print(i)\n if i%7 == 0:\n ans += 1\nif ans > 0: \n print("OK")\nelse:\n print("NG")\n ', 'k = int(input())\na, b = map(int,input().split())\n\nans = 0\n\nfor i in range(a,b+1):\n if i%k == 0:\n ans += 1\nif ans > 0: \n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s284432655', 's135783131'] | [8936.0, 8928.0] | [28.0, 29.0] | [185, 167] |
p02693 | u609738635 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nif(A<=int(A/K)*K<=B):\n print("OK")\nelse:\n print("NG")', 'import math\n\nK = int(input())\nA, B = map(int, input().split())\nif(int(B/K)-math.ceil(A/K)>=0):\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s542623423', 's138940012'] | [9168.0, 9168.0] | [23.0, 24.0] | [110, 132] |
p02693 | u612223903 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA, =B map(int,input().split())\n\nif B // K < A // K :\n print('OK')\nelse :\n print('NG')", "K = int(input())\nA,B = map(int,input().split())\n\nif A % K == 0:\n print('OK')\nelse:\n m = A // K\n if (m + 1) * K <= B:\n print('OK')\n else:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s478255922', 's210317641'] | [8868.0, 9096.0] | [22.0, 20.0] | [108, 175] |
p02693 | u612975321 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['x = int(input())\n\ny = 100\nn = 0\nwhile y < x:\n n += 1\n y += y // 100\nprint(n)\n', "k = int(input())\na, b = map(int,input().split())\n\nflg = False\nfor i in range(a, b+1):\n if i % k == 0:\n flg = True\n break\nprint('OK') if flg else print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s026618956', 's287483811'] | [9032.0, 9036.0] | [30.0, 26.0] | [83, 173] |
p02693 | u614728159 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['\nK = int(input())\nA, B = map(int, input().split())\ncnt = 0\nwhile true:\n cnt+=K\n if a <= cnt <= b:\n print("OK")\n break\n if b < cnt:\n print("NG")\n break', 'K = int(input())\nA, B = map(int, input().split())\ncnt = 0\nwhile 1:\n cnt+=K\n if A <= cnt <= B:\n print("OK")\n break\n if B < cnt:\n print("NG")\n break'] | ['Runtime Error', 'Accepted'] | ['s459158215', 's099747709'] | [9096.0, 9168.0] | [25.0, 30.0] | [165, 161] |
p02693 | u615590527 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nfor i in range(A:B+1):\n if i % K ==0:\n print("OK")\n exit()\nelse:\n print ("NG")', 'K = int(input())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if i % K ==0:\n print("OK")\n exit()\nelse:\n print ("NG")'] | ['Runtime Error', 'Accepted'] | ['s822753186', 's926485309'] | [8912.0, 9028.0] | [23.0, 26.0] | [136, 136] |
p02693 | u615915233 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['_input = input()\nk = _input.split()[0]\na = _input.split()[1].split(" ")[0]\nb = _input.split()[1].split(" ")[1]\n\nfor i in range(1, 1000):\n if a<= (i* k) <= b:\n print("OK")\n break\n elif (i* k) > b:\n break\n print("NG")\n\n\n', 'k = int(input())\na_b = input().split()[1].split(" ")\na = int(a_b.split(" ")[0])\nb = int(a_b.split(" ")[1])\n\nfor i in range(1, 1000):\n if a<= (i* k) <= b:\n print("OK")\n break\n elif (i* k) > b:\n print("NG")\n break\nelse:\n print("NG")\n', 'k = int(input())\na_b = input()\na = int(a_b.split(" ")[0])\nb = int(a_b.split(" ")[1])\n\nfor i in range(1, 1000):\n if a<= (i* k) <= b:\n print("OK")\n break\n elif (i* k) > b:\n print("NG")\n break\nelse:\n print("NG")\n\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s371736965', 's865198011', 's838108927'] | [9112.0, 9116.0, 9180.0] | [22.0, 23.0, 20.0] | [232, 248, 227] |
p02693 | u616619529 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["# -*- coding: utf-8 -*-\n\nk = int(input())\n\na, b = map(int, input().split())\n\nd = a % k\ne = a - d\n\nif (a + e) <= b:\n print('OK')\nelse:\n print('NG')\n", "# -*- coding: utf-8 -*-\n\nk = int(input())\n\na, b = map(int, input().split())\n\nd = a % k\ne = k - d\n\nif (a % k == 0) or ((a + e) <= b):\n print('OK')\nelse:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s608966732', 's868395969'] | [9004.0, 9072.0] | [21.0, 23.0] | [211, 229] |
p02693 | u617225232 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\nfrom decimal import Decimal\na = int(input())\no = 100\nc = 0 \nwhile True:\n o = math.floor(o * 1.01)\n c = Decimal(c + 1)\n if o >= a:\n print(c)\n break\n \n', "k = int(input())\na,b = map(int, input())\nprint('OK') if b-a+1 >= k else print('NG')", "k = int(input())\na,b = map(int, input().split())\nprint('OK') if (a%k ==0 or (b//k)-(a//k) >= 1) else print('NG')\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s159324262', 's578228308', 's488325787'] | [9968.0, 9100.0, 9148.0] | [32.0, 21.0, 20.0] | [171, 83, 113] |
p02693 | u617659131 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b = map(int, input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print("OK")\n elif i == b:\n print("NG")\n break', 'k = int(input())\na,b = map(int, inupt().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print("OK")\n elif i == b:\n print("NG")\n break\n', 'k = int(input())\na,b = map(int, input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print("OK")\n break\n elif i == b:\n print("NG")\n break'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s424917667', 's764110545', 's826559368'] | [9172.0, 9160.0, 9108.0] | [23.0, 23.0, 20.0] | [145, 146, 155] |
p02693 | u618363477 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nif K=1:\n print("OK")\nelif B-A>=K:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n exit()\nprint("NG")'] | ['Runtime Error', 'Accepted'] | ['s756384206', 's508581577'] | [8940.0, 9036.0] | [24.0, 29.0] | [124, 134] |
p02693 | u619144316 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA, B = map(int,input().split())\nfor i in range(A,B+1):\n if i % K == 0:\n print('Yes')\n exit()\nprint('No')", "K = int(input())\nA, B = map(int,input().split())\nfor i in range(A,B+1):\n if i % K == 0:\n print('Yes')\nprint('No')", "K = int(input())\nA, B = map(int,input().split())\nfor i in range(A,B+1):\n if i % K == 0:\n print('OK')\n exit()\nprint('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s145049523', 's733256327', 's705198650'] | [9168.0, 9168.0, 9164.0] | [22.0, 23.0, 22.0] | [138, 123, 137] |
p02693 | u624613992 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b = map(int,input().split())\nfor i in range(a,b+1):\n if i %k ==0:\n print("Yes")\n exit()\nprint("No")', 'k = int(input())\na,b = map(int,input().split())\nfor i in range(a,b+1):\n if i %k ==0:\n print("OK")\n exit()\nprint("NG")'] | ['Wrong Answer', 'Accepted'] | ['s414838247', 's302649904'] | [9192.0, 9164.0] | [24.0, 22.0] | [125, 124] |
p02693 | u626011428 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a,b,n = map(int, input().split())\n#1 <= x <= n\n#minimize int(x/b)\n#x = int(a*x/b) - a * int(x/b)\n\nprint((a*n)//b)', 'k =int(input())\na,b = map(int, input().split())\nc = b//k\n \nif b%k==0:\n print("OK")\nelif k*c >=a:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s805962854', 's112562607'] | [9152.0, 9172.0] | [22.0, 22.0] | [114, 131] |
p02693 | u626684023 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nans = "No"\nfor val in range(A, B + 1):\n if val % K == 0:\n ans = "Yes"\n break\nprint(ans)', 'K = int(input())\nA, B = map(int, input().split())\nans = "NG"\nfor val in range(A, B + 1):\n if val % K == 0:\n ans = "OK"\n break\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s190065305', 's915582057'] | [9164.0, 9160.0] | [20.0, 22.0] | [154, 153] |
p02693 | u630467326 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\nx = 0\n \nwhile True:\n x += k\n \n if a <= x <= b:\n print('OK')\n\tbreak\n \n if x > b:\n print('NO')\n break", "k = int(input())\na, b = map(int, input().split())\nx = 0\n \nwhile True:\n x += k\n \n if a <= x <= b:\n print('OK')\n break\n \n if x > b:\n print('NG')\n break"] | ['Runtime Error', 'Accepted'] | ['s820078225', 's044589591'] | [8932.0, 9116.0] | [22.0, 29.0] | [164, 167] |
p02693 | u630554891 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int, input().split())\n\nmax = int(b/k)\n\nfor i in range(1,max+1):\n tmp = k * i\n if a <= tmp and b >= tmp:\n print('Yes')\n exit()\n\nprint('No')", 'import math\na,b,n=map(int, input().split()) \nmax = -10000\ntmp = 0\n\nfor i in range(1, n+1):\n tmp = math.floor(a * i / b) - math.floor(i / b)\n if max < tmp:\n max = tmp\n\nprint(max)', "k=int(input())\na,b=map(int, input().split())\n\nmax = int(b/k)\n\nfor i in range(1,max+1):\n tmp = k * i\n if a <= tmp and b >= tmp:\n print('OK')\n exit()\n\nprint('NG')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s019348168', 's333702630', 's220010036'] | [9180.0, 9176.0, 9180.0] | [22.0, 22.0, 22.0] | [181, 190, 180] |
p02693 | u631579948 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["\nn=int(input())\nm,t=map(int,input().split())\nif n<=t-m:\n print('OK')\nelse:\n print('NG')\nelif n==1:\n print('OK')\n \n ", "i=int(input())\nn,m=map(int,input().split())\ns=[]\nif n%i==0:\n print('OK')\nelif m%i==0:\n print('OK')\nelse:\n for j in range(n,m+1):\n if j%i==0:\n s.append(j)\n if len(s)>0:\n print('OK')\n else:\n print('NG')\n \n\n \n \n"] | ['Runtime Error', 'Accepted'] | ['s860718457', 's689200502'] | [8952.0, 9184.0] | [23.0, 24.0] | [122, 238] |
p02693 | u631998785 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B+1):\n if(i%K==0):\n print("ok")\n break\n if(i==B and i%K !=0)\n print("NG")\n \n \n', 'K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B):\n if(i%K==0):\n print("ok")\n if(i==B and i%K!=0)\n print("NG")\n \n \n', 'K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B):\n if(i%K==0):\n print("ok")\n if(i==B and i%K not ==0)\n print("NG")\n \n ', 'K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B):\n if(i%K==0):\n print("ok")\n break\n if(i==B and i%K not ==0)\n print("NG")\n \n \n', 'K = int(input())\nA, B = map(int, input().split())\nmul = 0\nfor i in range(A, B + 1):\n if i % K == 0:\n mul += 1\nprint("OK" if mul > 0 else "NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s547371275', 's727943141', 's753506063', 's850757535', 's622633360'] | [8968.0, 9024.0, 8972.0, 9024.0, 9176.0] | [24.0, 22.0, 20.0, 21.0, 21.0] | [151, 138, 142, 153, 152] |
p02693 | u633928488 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=input()\na,b=map(int,input().split())\np=1\nfor i in range(a,b+1):\n if i%K==0:\n print("OK")\n p=0\n break\nif p==1:\n print("NG")\n ', 'K=input()\na,b=map(int,inport().split())\np=1\nfor i in range(a,b+1):\n if i%K==0:\n print("OK")\n p=0\n break\nif p==1:\n print("NG")\n ', 'K=int(input())\na,b=map(int,input().split())\np=1\nfor i in range(a,b+1):\n if i%K==0:\n print("OK")\n p=0\n break\nif p==1:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s198500886', 's896080934', 's759564376'] | [9056.0, 9124.0, 9064.0] | [21.0, 20.0, 22.0] | [140, 141, 140] |
p02693 | u634046173 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA,B = map(int, input().split())\n\nc = K//B\nif c * K >= A:\n print('OK')\nelse: \n print('NG')\n \n", "K = int(input())\nA,B = map(int, input().split())\n\nc = B//K\nif c * K >= A:\n print('OK')\nelse: \n print('NG')\n \n"] | ['Wrong Answer', 'Accepted'] | ['s404899962', 's977121051'] | [9092.0, 9080.0] | [21.0, 22.0] | [121, 121] |
p02693 | u634282234 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["\nK=int(input())\nA,B=list(map(int,input().split()))\n\nx=A%K\nw=int(A/K)\ny=int(B/K)\nz=y-w\nprint(z)\nif B%K==0:\n print('OK')\nelif z>0:\n print('OK')\nelse:\n print('NG')", "K=int(input())\nA,B=list(map(int,input().split()))\n\nflg=False\n\nfor i in range(A,B+1):\n if i%K==0:\n flg=True\n else:\n pass\nif flg==True:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s925637825', 's720328840'] | [9140.0, 9124.0] | [19.0, 21.0] | [168, 191] |
p02693 | u635252313 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['n=int(input())\na,b=map(int,input().split())\nxs=[0]\nfor i in range(a,b+1):\n if i%n==0:\n xs.append(i)\nif a<=min(xs)<=b:\n print("OK")\nelse:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nans="NG"\nfor i in range(a,b+1):\n if i%k==0:\n ans="OK"\n break\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s686140664', 's927913679'] | [9084.0, 9164.0] | [21.0, 24.0] | [165, 132] |
p02693 | u636684559 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["import sys\nK=int(input())\nA,B=map(int,input().split())\nnum=1\nwhile K*num>B:\n if A<=K*num and K*num<=B:\n print('OK')\n sys.exit()\n num+=1\nprint('NG')", "import sys\nK=int(input())\nA,B=map(int,input().split())\nnum=1\nwhile K*num<=B:\n if A<=K*num and K*num<=B:\n print('OK')\n sys.exit()\n num+=1\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s313885067', 's972717008'] | [9088.0, 9172.0] | [2205.0, 22.0] | [155, 156] |
p02693 | u637918426 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["N = int(input())\nA, B = map(int, input().split())\n\nfor i in range(A, B+1):\n if i % N == 0:\n print('OK')\n else:\n if i == B:\n print('NG')\n else:\n continue", "N = int(input())\nA, B = map(int, input().split())\n\nfor i in range(A, B+1):\n if i % N == 0:\n print('OK')\n break\n else:\n if i == B:\n print('NG')\n break\n else:\n continue"] | ['Wrong Answer', 'Accepted'] | ['s592029523', 's305628790'] | [9196.0, 9172.0] | [22.0, 20.0] | [201, 233] |
p02693 | u638033979 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b = map(int,input().split())\n\nf=False\nfor i in range(a,b+1):\n if i % k ==0:\n f =True\n break\n\nif f:\n print("Yes")\nelse:\n print("no")', 'k = int(input())\na,b = map(int,input().split())\n\nf=False\nfor i in range(a,b+1):\n if i % k ==0:\n f =True\n break\n\nif f:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s629171865', 's332834787'] | [9176.0, 9172.0] | [19.0, 22.0] | [173, 172] |
p02693 | u641722141 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\ns = (B // K) * K\nif s => A: \n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\n\nfor i in range(A, B+1):\n if i % K == 0: \n print("OK")\nelse: \n print("NG") ', 'K = int(input())\nA, B = map(int, input().split())\n\ns = (B // K) * K\nif B => A: \n print("OK")\nelse:\n print("NG")', 'k=int(input())\na, b=map(int, input().split())\nfor i in range(a, b+i):\n if i % k == 0:\n print("OK")\n break\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\n \ns = (B // K) * K\nif A <= s: \n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s037946789', 's286499962', 's296995578', 's557056306', 's454858436'] | [8872.0, 9088.0, 8960.0, 9168.0, 9168.0] | [24.0, 23.0, 25.0, 21.0, 20.0] | [161, 201, 161, 132, 162] |
p02693 | u642528832 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = map(int,input().split())\n\nfor i in range(a,b+1):\n if i % k == 0:\n print('OK')\n break\n else:\n print('NG')\n ", "k = int(input())\na,b = map(int,input().split())\n\nfor i in range(a,b+1):\n if i % k == 0:\n print('OK')\n break\nprint('NG')", "k = int(input())\na,b = map(int,input().split())\n\nlargest = (b//k)*k\nif a <= largest:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s674841642', 's935372403', 's060586245'] | [9184.0, 9136.0, 8744.0] | [28.0, 28.0, 29.0] | [159, 136, 122] |
p02693 | u643679148 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int, input().split())\ni = 1\nflag = False\n\nwhile i < b:\n dis = i * k\n if dis >= a and dis <= b:\n flag = True\n break\n\n\nif flag:\n print("OK")\nelse:\n print("NG")\n', 'k = int(input())\na, b = map(int, input().split())\ni = 1\nflag = False\n\n\nwhile i < b:\n if k == 1:\n flag = True\n break\n dis = i * k\n if dis >= a and dis <= b:\n flag = True\n break\n\n i += 1\n\n\nif flag:\n print("OK")\nelse:\n print("NG")\n'] | ['Time Limit Exceeded', 'Accepted'] | ['s089120575', 's873723164'] | [9044.0, 9176.0] | [2206.0, 20.0] | [212, 274] |
p02693 | u646110634 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import sys\nA, B, N = map(int, input().split())\n\nif N < B :\n print(int(N * A // B) - A * int(N // B))\n sys.exit()\nelse :\n print(((B-1) * A // B) - A * ((B-1) // B))\n', 'K = int(input())\nA, B = map(int, input().split())\n\ndist = A % K + B - A\n\nif dist >= K :\n print("OK")\nelif A % K == 0 or B % K == 0:\n print("OK")\nelse :\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s104732164', 's900496730'] | [9176.0, 9176.0] | [21.0, 25.0] | [167, 167] |
p02693 | u650265349 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nnK = K\nn = 1\nans = "NG"\nwhile(nK=<B):\n if nK >= A:\n ans = "OK"\n break\n n += 1\n nK = n * K\nprint(ans)', 'K = int(input())\nA, B = map(int, input().split())\n\nnK = K\nn = 1\nans = "NG"\nwhile(nK<=B):\n if nK >= A:\n ans = "OK"\n break\n n += 1\n nK = n * K\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s802469910', 's741145386'] | [9028.0, 9156.0] | [19.0, 23.0] | [160, 160] |
p02693 | u650849518 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA,B = map(int, input().split())\n\nres = [i for i in range(A,B+1) if i%K==0]\n\nif res == []:\n print('NG')\nelse:\n print('YES')", "K = int(input())\nA,B = map(int, input().split())\n\nres = [i for i in range(A,B+1) if i%K==0]\nprint(res)\n\nif res == []:\n print('NG')\nelse:\n print('OK')", "K = int(input())\nA,B = map(int, input().split())\n\nfor i in range(A,B+1):\n if i % K == 0:\n print('OK')\n break\n else:\n print('NG')\n break", "K = int(input())\nA,B = map(int, input().split())\n\nres = [i for i in range(A,B+1) if i%K==0]\n\nif res == []:\n print('NG')\nelse:\n print('OK')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s085234617', 's535969642', 's733851703', 's145777641'] | [9064.0, 9112.0, 9056.0, 9076.0] | [21.0, 21.0, 23.0, 21.0] | [141, 151, 149, 140] |
p02693 | u653041271 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\n\nans='NO'\nfor i in range(a,b+1):\n if i%k==0:\n ans='YES'\n\nprint(ans)", "k=int(input())\na,b=map(int,input().split())\n\nans='NG'\nfor i in range(a,b+1):\n if i%k==0:\n ans='OK'\n break\n\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s116945003', 's218189042'] | [9076.0, 9088.0] | [24.0, 28.0] | [115, 124] |
p02693 | u654035739 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A = int(input())\nB, C = map(int,input().split())\n\nfor i in range(B, C):\n if i % A ==0:\n print("OK")\n break\n\nprint("NG")\n', 'A = int(input())\nB, C = input().split()\n\nfor i in range(int(B), int(C)+1):\n if i % A ==0:\n print("OK")\n break\n\nprint("NG")\n', 'A = int(input())\nB,C = map(int,input().split())\n\nfor i in range(B, C+1):\n if i % A =0:\n print("OK")\n break\n\nprint("NG")', 'A = int(input())\nB, C = map(int,input().split())\nflag = 1\n\nfor i in range(B, C+1):\n if i % A == 0:\n flag = 0\n print("OK")\n break\n\nif flag==1:\n print("NG")\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s131351481', 's529405547', 's897262069', 's243024343'] | [9160.0, 9160.0, 9028.0, 9104.0] | [20.0, 20.0, 20.0, 21.0] | [127, 130, 126, 166] |
p02693 | u655048024 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b = map(int,input()split())\nans = "NG"\nfor i in range(a,b+1):\n if(i%k==0):\n ans="OK"\nprint(ans)\n \n ', 'k = int(input())\na,b = int(input())\nans = "NG"\nfor i in range(a,b+1):\n if(i%k==0):\n ans = "OK"\nprint(ans)\n \n ', 'k = int(input())\na,b = map(int,input().split())\nans = "NG"\nfor i in range(a,b+1):\n if(i%k==0):\n ans="OK"\nprint(ans)\n \n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s202590391', 's629486271', 's400310768'] | [8884.0, 9156.0, 9104.0] | [28.0, 23.0, 22.0] | [126, 117, 127] |
p02693 | u655430899 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["N = input()\nA=input().split()\n\ns=int(A[0])//int(N)\nif (s+1)*N>A[1]:\n print('NG')\nelse:\n print('OK')", "N = input()\nA=input().split()\n\ns=int(A[0])/int(N)\nif (s+1)*N>A[1]:\n print('NG')\nelse:\n print('OK')", 'import math\nN = int(input())\n\ny<math.log(1.01, N/100)\nprint(y)', "N = input()\nA=input().split()\n\ns=int(A[0])//int(N)\nif int(A[0])%int(N)==0:\n print('OK')\nelse:\n if (s+1)*N>A[1]:\n print('NG')\n else:\n print('OK')\n", "N = int(input())\nA=input().split()\n\ns=int(A[0])//N\nif int(A[0])%N==0:\n print('OK')\nelse:\n if (s+1)*N>=A[1]:\n print('NG')\n else:\n print('OK')\n", "N = input()\nA=input().split()\n\ns=int(A[0])//int(N)\nif int(A[0])%int(N)==0:\n print('OK')\nelse:\n if (s+1)*N>=A[1]:\n print('NG')\n else:\n print('OK')\n", "N = input()\nA=input().split()\n\ns=int(A[0])//int(N)\nif int(A[0])%int(N)==0:\n print('OK')\nelse:\n if (s+1)*N=>A[1]:\n print('NG')\n else:\n print('OK')\n", "N = int(input())\nA=input().split()\n\ns=int(A[0])//N\nif int(A[0])%N==0:\n print('OK')\nelse:\n if (s+1)*N>int(A[1]):\n print('NG')\n else:\n print('OK')\n"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s188988081', 's320371171', 's573434759', 's607327561', 's663016099', 's706079680', 's927951039', 's069572133'] | [9164.0, 9100.0, 9100.0, 9036.0, 9168.0, 9168.0, 9028.0, 9172.0] | [20.0, 20.0, 23.0, 22.0, 19.0, 23.0, 25.0, 24.0] | [105, 104, 62, 168, 164, 169, 169, 168] |
p02693 | u656801456 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import sys\n\ndef main():\n k = int(input())\n a,b = map(int, input().split())\n n = "OK"\n for ai in range(a,b+1):\n if ai%k==0:\n break\n sys.exit()\n else:\n n="NG"\n print(n)\n \nif __name__ == "__main__":\n main()\n', 'def main():\n k = int(input())\n a,b = map(int, input().split())\n cnt = 0\n for ai in range(a,b+1):\n if ai%k==0:\n print("OK")\n break\n else:\n print("NG")\n break\n\nif __name__ == "__main__":\n main()\n', 'import sys\n\ndef main():\n k = int(input())\n a,b = map(int, input().split())\n n = "OK"\n for ai in range(a,b+1):\n if ai%k==0:\n n = "OK"\n break\n sys.exit()\n else:\n n="NG"\n print(n)\n \nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s019100233', 's792621933', 's135505935'] | [9116.0, 9144.0, 9180.0] | [23.0, 23.0, 22.0] | [272, 266, 292] |
p02693 | u660136570 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\n \nfor i in range(A,B+1):\n if(i>=K and i%K==0):\n print("OK")\n \nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(A,B+1):\n if(i>=K and i%K==0):\n print("OK")\n \n else:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\n \nfor i in range(A,B+1):\n if(i>=K and i%K==0):\n print("OK")\n \texit()\nprint("NG")', 'K = int(input())\nA,B = map(int,input().split())\n\nfor i in range(A, min(A+K,B)):\n if math.floor(B / K == 0):\n print("OK")\nelse\n print("NG")\n ', 'K=int(input())\nA,B=map(int,input().split())\n \nfor i in range(A, B+1):\n if(i>=K and i%K==0):\n print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s228688041', 's625865860', 's718235009', 's921659663', 's475730949'] | [9088.0, 9096.0, 9012.0, 8964.0, 9172.0] | [22.0, 20.0, 22.0, 20.0, 20.0] | [130, 133, 129, 159, 138] |
p02693 | u666844906 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["import sys\nk = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b+1):\n\tif i % k == 0:\n\t\tprint('Yes')\n\t\tsys.exit()\nprint('No')", "import sys\nk = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b+1):\n\tif i % k == 0:\n\t\tprint('OK')\n\t\tsys.exit()\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s738410623', 's156348827'] | [9104.0, 9088.0] | [29.0, 27.0] | [141, 140] |
p02693 | u667427469 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['if __name__ == \'__main__\':\n k = input()\n k = int(k)\n ab = input()\n ab = ab.split()\n a = int(ab[0])\n b = int(ab[1])\n print(a,b)\n flag = False\n sum = k\n while k<b:\n if a<=k and k<=b:\n flag = True\n k += sum\n print(k)\n if flag:\n print("OK")\n else:\n print("NG")\n', 'if __name__ == \'__main__\':\n k = input()\n k = int(k)\n ab = input()\n ab = ab.split()\n a = int(ab[0])\n b = int(ab[1])\n\n i = 1\n flag = False\n while k<b:\n k = k*i\n if a<=k and k<=b:\n flag = True\n i += 1\n if flag:\n print("OK")\n else:\n print("NG")\n', 'if __name__ == \'__main__\':\n k = input()\n k = int(k)\n ab = input()\n ab = ab.split()\n a = int(ab[0])\n b = int(ab[1])\n flag = False\n sum = k\n while k<=b:\n if a<=k and k<=b:\n flag = True\n k += sum\n if flag:\n print("OK")\n else:\n print("NG")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s049083684', 's856572565', 's665649222'] | [9048.0, 9188.0, 9160.0] | [23.0, 20.0, 25.0] | [339, 320, 308] |
p02693 | u667694979 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\na=0\nif i in range(A,B+1):\n if i%k==0:\n a+=1\nif a==1:\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\na=0\nfor i in range(A,B+1):\n if i%k==0:\n a+=1\nif a==1:\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\na=0\nif i in range(A,B+1):\n if k%i==0:\n a+=1\nif a==1:\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\na=0\nfor i in range(A,B+1):\n if i%K==0:\n a+=1\nif a==1:\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\na=0\nfor i in range(A,B+1):\n if i%K==0:\n a+=1\n break\nif a==1:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s467072197', 's530793086', 's604722277', 's619762241', 's110924662'] | [9180.0, 9156.0, 9184.0, 9180.0, 9124.0] | [21.0, 25.0, 24.0, 21.0, 26.0] | [134, 135, 134, 135, 145] |
p02693 | u671889550 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\n\nfor i in range(1,1001):\n k*=i\n if a<=k<=b:\n print('Yes')\n exit()\n else:\n continue\nprint('No')\n\n\n", "k=int(input())\na,b=map(int,input().split())\n\nfor i in range(1,1001):\n n==k*i\n if a<=n<=b:\n print('OK')\n exit()\n else:\n continue\n\nprint('NG')\n\n\n", "k=int(input())\na,b=map(int,input().split())\n\nfor i in range(1,1001):\n k*=i\n if a<=k<=b:\n print('OK')\n exit()\n else:\n continue\n\nprint('NG')\n\n\n", "k=int(input())\na,b=map(int,input().split())\n\nfor i in range(1,1001):\n k*=i\n if a<=k<=b:\n print('Yes')\n break\n else:\n print('No')\n\n\n", "k=int(input())\na,b=map(int,input().split())\n\nfor i in range(1,1001):\n n=k*i\n if a<=n<=b:\n print('OK')\n exit()\n else:\n continue\n\nprint('NG')\n\n\n"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s282039881', 's285274301', 's562754930', 's907246492', 's880420853'] | [9172.0, 9056.0, 9132.0, 8988.0, 8988.0] | [25.0, 25.0, 31.0, 27.0, 27.0] | [153, 155, 153, 143, 154] |
p02693 | u672370694 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\nl = list(map(int, input.split()))\n\nif l[1] - l[0] >= k:\n print("OK")\nelif l[0] == l[1]:\n if l[0] % k == 0:\n print("OK")\n else:\n print("NG")\nelse:\n print("NG")', 'k = int(input())\nl = list(map(int, input.split()))\nif l[1] - l[0] >= k:\n print("OK")\nelif l[0] == l[1]:\n if l[0] % k == 0:\n print("OK")\n else:\n print("NG")\nelse:\n print("NG")', 'k = int(input())\nl = list(map(int, input().split()))\nif (l[1] - l[0]) >= k or l[0] % k == 0 or l[1] % k == 0:\n print("OK")\nelse:\n while l[0] != l[1]:\n l[0] += 1\n if l[0] % k == 0:\n print("OK")\n exit()\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s537697752', 's826990080', 's211510199'] | [9184.0, 9180.0, 9192.0] | [23.0, 23.0, 22.0] | [187, 186, 232] |
p02693 | u673173160 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\nchk = False\nfor i in range(a+1, b+1):\n if i%k == 0:\n chk = True\n break\n else:\n pass\nif chk == True:\n print('Yes')\nelse:\n print('No')", "k = int(input())\na, b = map(int, input().split())\nchk = False\nfor i in range(a, b+1):\n if i%k == 0:\n chk = True\n break\n else:\n pass\nif chk == True:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s591595658', 's919867007'] | [9180.0, 9092.0] | [21.0, 23.0] | [215, 212] |
p02693 | u674347990 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int, input().split(\' \'))\n\nnum = k\nwhile num < b:\n if a < num:\n print("Yes")\n exit()\n num += k\n\nprint("No")', 'k = int(input())\na, b = map(int, input().split(\' \'))\n\nnum = k\nwhile num <= b:\n if a <= num:\n print("OK")\n exit()\n num += k\n\nprint("NG")'] | ['Wrong Answer', 'Accepted'] | ['s968339560', 's864876323'] | [9104.0, 9200.0] | [24.0, 20.0] | [154, 155] |
p02693 | u674588203 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(1000):\n if A<=i*K<=B:\n print('OK')\n exit()\n else:\n print('NG')\n exit()\n", "K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(1000):\n if A<=i*K and i*K<=B:\n print('OK')\n exit()\nprint('NG')\nexit()\n"] | ['Wrong Answer', 'Accepted'] | ['s292274904', 's635440731'] | [9092.0, 9036.0] | [24.0, 23.0] | [165, 147] |
p02693 | u676091297 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\n\na=int(input())\nli = list(map(int,input().split()))\nif li[1]>=math.floor(1+li[0]/a)*a:\n print("NG")\nelse:\n print("OK")', 'import math\n\na=int(input())\n#li = list(map(int,input().split()))\nprint(math.ceil(li[0]/a)*a)\nif li[1]<math.ceil(li[0]/a)*a:\n print("NG")\nelse:\n print("OK")', 'import math\n \na=int(input())\nli = list(map(int,input().split()))\n\nif li[1]<math.ceil(li[0]/a)*a:\n print("NG")\nelse:\n print("OK")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s232099804', 's503059292', 's608435178'] | [9168.0, 9172.0, 9168.0] | [20.0, 22.0, 22.0] | [136, 161, 162] |
p02693 | u676458682 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split(" "))\na=B//K*K\nprint("OK" if B//K>A else "NG")', 'K=int(input())\nA,B=map(int,input().split(" "))\nbaisu=B//K*K\nprint("OK" if A <= baisu and baisu <= B else "NG")'] | ['Wrong Answer', 'Accepted'] | ['s229573793', 's758885829'] | [9160.0, 9164.0] | [24.0, 26.0] | [87, 111] |
p02693 | u677842374 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\nimport sys\nfor i in range(a, b+1):\n if (i%k)==0:\n print('OK')\n sys.exit\nprint('NG')", "k = int(input())\na, b = map(int, input().split())\nimport sys\nfor i in range(a, b+1):\n if (i%k)==0:\n print('OK')\n sys.exit(0)\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s900223290', 's592126695'] | [9188.0, 9168.0] | [22.0, 23.0] | [150, 153] |
p02693 | u679236042 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\nimport itertools\n\nN,M,Q = map(int,input().split())\na =[0] * Q\nb =[0] * Q\nc =[0] * Q\nd =[0] * Q\nfor i in range(Q):\n a[i] , b[i] , c[i] , d[i] = map(int,input().split())\n\n\n\n\n\ndef combinations_count(n, r):\n return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))\n\n\n\nAll =[0] * M\nfor i in range(M):\n All[i] = i+1\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nans = 0\n#for A in itertools.combinations(All, N):\nfor A in itertools.product(All, repeat=N):\n \n \n \n #print(A)\n wa = 0\n for i in range(Q):\n #print(wa) \n kari = A[b[i]-1] - A[a[i]-1]\n if kari == c[i]:\n wa = wa + d[i] \n if ans < wa:\n ans = wa\n #print(ans) \n #print(wa) \n\n\nprint(ans)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n', 'K = int(input())\nA,B = map(int,input().split())\n\nAwari = A // K\nBwari = -(-A // K)\n\n\n\nif Awari == (Bwari-1):\n print("NG")\nelse:\n print("OK")\n', 'K = int(input())\nA,B = map(int,input().split())\n\n\n\n\n\n\n\nAwari = -(-A // K)\n\n\n\nif B >= Awari*K:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s293533283', 's671932302', 's723569945'] | [9248.0, 9096.0, 9160.0] | [22.0, 21.0, 21.0] | [1479, 147, 131] |
p02693 | u681390786 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['def f(n):\n a=0\n b=100\n while True:\n a+=1\n b*=(100+a)/100\n b=int(b)\n if b>=n:\n break\n return a\n \nprint(f(n))', 'n=int((input())\ndef f(n):\n a=0\n b=100\n while True:\n a+=1\n b*=(100+a)/100\n b=int(b)\n if b>=n:\n break\n return a\nprint(f(n))', 'n=int(input())\na,b=map(int,input().split())\nif a==b and if a%n==0:\n print("OK")\nelse:\n print("NG")\nif (b-a+1)/n>=1:\n print("OK")\nelse:\n print("NG")', 'n=int(input())\ndef f(n):\n a=0\n b=100\n while True:\n a+=1\n b*=(100+a)/100\n if b>=n:\n break\n return a\n \nprint(f(n))', 'n=int(input())\na,b=map(int,input().split())\nl=[abb for abb in range(a, b+1)]\nkl=[]\nfor am in l:\n if am%n==0:\n kl.append(am)\nif len(kl)>0:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s189469721', 's311503469', 's820343858', 's877410193', 's396044231'] | [9044.0, 9008.0, 8948.0, 9168.0, 9216.0] | [26.0, 22.0, 26.0, 23.0, 23.0] | [159, 172, 158, 157, 185] |
p02693 | u683406607 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int, input().split())\n \nif ((a // k) + 1) * k <= b or a % k = 0:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\n \nif ((a // k) + 1) * k <= b or a % k == 0:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s882400913', 's406258515'] | [8956.0, 9168.0] | [21.0, 22.0] | [126, 127] |
p02693 | u685983477 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k=int(input())\na,b=map(int, input().split())\n\nfor i in (a, b+1):\n if i%k==0:\n print("OK")\n exit()\nprint("NG")', 'k=int(input())\na,b=map(int, input().split())\n\nfor i in range(a, b+1):\n if i%k==0:\n print("OK")\n exit()\nprint("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s607796801', 's750007082'] | [9164.0, 9084.0] | [21.0, 22.0] | [126, 132] |
p02693 | u685998974 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\n\nv = 0\nfor i in range(1000):\n if a <= v <= b:\n print('YES')\n exit()\n v += k\n\nprint('NG')\n", "k = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b+1):\n if i % k == 0:\n print('OK')\n break\nelse:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s846169858', 's700897340'] | [9160.0, 9160.0] | [25.0, 19.0] | [159, 150] |
p02693 | u688858450 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a = int(input())\nb, c = map(int, input().split())\nfor i in range(b, c + 1):\n if i % a == 0:\n print("OK")\n break\n else: \n print("NG")\n break', 'a = int(input())\nb, c = map(int, input().split())\nflag = 0\nfor i in range(b, c + 1):\n if i % a == 0:\n flag = 1\n break\n\nif flag == 1: print("OK")\nelse: print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s857239711', 's155064425'] | [9164.0, 9112.0] | [20.0, 25.0] | [153, 169] |
p02693 | u690419532 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["from itertools import combinations_with_replacement\n\ndef main():\n N, M, Q = map(int, input().split())\n qs = [list(map(int,input().split())) for _ in range(Q)]\n seq = [i for i in range(1,M+1)]\n C = combinations_with_replacement(seq, N)\n max_score = 0\n\n for A in C:\n A = sorted(A)\n score = 0\n for q in qs:\n if A[q[1]-1] - A[q[0]-1] == q[2]:\n score += q[3]\n max_score = max(score, max_score)\n print(max_score)\n\nif __name__ == '__main__':\n main()", "K = int(input())\nA,B = map(int,input().split())\ni = 0\n\nwhile True:\n if A <= K*i <=B:\n print('OK')\n break\n elif B < K*i:\n print('NG')\n break\n else:\n i += 1"] | ['Runtime Error', 'Accepted'] | ['s138948703', 's874055488'] | [9144.0, 9000.0] | [24.0, 24.0] | [520, 198] |
p02693 | u690536347 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nfor i in range(A, B+1):\n if i%K==0:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\nfor i in range(A, B+1):\n if i%K==0:\n print("OK")\n break\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s848592675', 's058770408'] | [9152.0, 9156.0] | [22.0, 24.0] | [123, 133] |
p02693 | u692311686 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import math\nA,B,N=map(int,input().split())\nx=min(B-1,N)\nans=math.floor(A*x/B)-A*math.floor(x/B)\nprint(int(ans))\n\n', 'N,M,Q=map(int,input().split())\na=[]\nb=[]\nc=[]\nd=[]\nfor i in range(Q):\n ta,tb,tc,td=map(int,input().split())\n a+=[ta]\n b+=[tb]\n c+=[tc]\n d+=[td]\nmaxs=0\n\ndef suuretu(n,m):\n if n>1:\n A=[]\n for i in range(1,9):\n for j in suuretu(n-1,i):\n A+=[10*i+j]\n return A\n else:\n A=[i for i in range(m,10)]\n return A\nB=suuretu(N,1)\nanswer=0\nfor i in B:\n ans=0\n s=str(i)\n tmpl=[int(s[j]) for j in range(N)] \n for k in range(Q):\n if tmpl[a[k]-1]-tmpl[b[k]-1]==c[k]:\n ans+=d[i]\n answer=max(answer,ans)\nprint(answer)\n\n \n', 'import math\nA,B,N=map(int,input().split())\nx=min(B-1,N)\nans=math.ceil(A*x/B)-A*math.ceil(x/B)\nprint(int(ans))\n\n', 'K=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n break\n if i==B:\n print("NG")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s243847757', 's283751600', 's556840683', 's485186825'] | [9164.0, 9264.0, 9100.0, 9164.0] | [21.0, 21.0, 23.0, 23.0] | [113, 560, 111, 133] |
p02693 | u693173434 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b=map(int,input().split())\n\nfly=0\nl=[]\nwhile fly<b:\n fly += k\n l.append(fly)\n\nprint(l)\nif l[-1]>=a and l[-1]<=b:\n print('OK')\nelse:\n print('NG')\n\n ", "k = int(input())\na, b=map(int,input().split())\n\nfly=0\nl=[]\nwhile fly<b:\n fly += k\n l.append(fly)\n\nif l[-1]>=a and l[-1]<=b:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b=map(int,input().split())\n\nfly=0\nl=[]\nwhile fly<b:\n fly += k\n l.append(fly)\n \nif len(l)==1:\n if k>=a and k<=b:\n print('OK')\n else:\n print('NG')\nelse:\n if l[-1]>=a and l[-1]<=b:\n print('OK')\n elif l[-2]>=a and l[-2]<=b:\n print('OK')\n else:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s454608207', 's568153059', 's316156243'] | [9168.0, 9180.0, 9136.0] | [21.0, 22.0, 23.0] | [182, 167, 331] |
p02693 | u694665829 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n break\nprint("NG")\n', 'k=int(input())\na,b=map(int,input().split())\ncnt=0\nfor i in range(a,b+1):\n if i%k==0:\n cnt+=1\nprint("OK" if cnt>=1 else "NG")\n \n'] | ['Wrong Answer', 'Accepted'] | ['s303553307', 's516004546'] | [9160.0, 9164.0] | [20.0, 21.0] | [128, 144] |
p02693 | u697559326 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nflag = False\nfor i in range(1000):\n if A <= i*K and i*K <= B:\n flag = True\n\nif flag:\n print("Yes")\nelse:\n print("No")', 'K = int(input())\nA, B = map(int, input().split())\n\nflag = False\nfor i in range(1000):\n if A <= i*K and i*K <= B:\n flag = True\n\nif flag:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s044814258', 's653237723'] | [9172.0, 9172.0] | [20.0, 23.0] | [184, 183] |
p02693 | u697634943 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input());\ni= list(map(int,input().split()));\n\na = int(i[0]);\nb = int(i[1]) ;\nflag = False;\n\nwhile a <= b:\n if a % k == 0:\n flag = True;\n break;\n else:\n continue;\n a += 1;\n\nif(flag):\n print("OK");\nelse:\n print("NG");\n\n', 'k = int(input());\ni= list(map(int,input().split()));\n\na = int(i[0]);\nb = int(i[1]) ;\nflag = False;\n\n\nwhile(a <= b):\n if a % k == 0:\n flag = True;\n break;\n else:\n a += 1;\n\nif(flag):\n print("OK");\nelse: print("NG");\n\n'] | ['Time Limit Exceeded', 'Accepted'] | ['s035873545', 's260096803'] | [9184.0, 9112.0] | [2206.0, 23.0] | [261, 245] |
p02693 | u698849142 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b=map(int, input().split())\nfor i in range(1,2000):\n x=k*i\n if a <= k and k <= b:\n print("OK")\n break\n else b < k:\n print("NG")\n\tbreak\n', 'k = int(input())\na,b=map(int, input().split())\nfor i in range(1,2000):\n x=k*i\n if a <= k and k <= b:\n print("OK")\n break\n elif b < k:\n print("NG")\n break\n', 'k = int(input())\na,b=map(int, input().split())\nfor i in range(1,2000):\n x=k*i\n if a <= x and x <= b:\n print("OK")\n break\n elif b < x:\n print("NG")\n break\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s877235063', 's993568745', 's877646366'] | [9020.0, 9164.0, 9168.0] | [21.0, 23.0, 22.0] | [184, 191, 191] |
p02693 | u699696451 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A, B, N = map(int,input().split())\nans = []\n\nif N >= 100000:\n for i in range(N-200,N+1): \n k = (A*i)//B - A*(i//B)\n ans.append(k)\n i = i + 1\n \nelse:\n for i in range(N//2,N+1):\n k = (A*i)//B - A*(i//B)\n ans.append(k)\n i = i + 1\n \nprint(max(ans))', 'A, B, N = map(int,input().split())\nans = []\nfor i in range(N//2,N+1):\n k = (A*i)//B - A*(i//B)\n ans.append(k)\n i = i + 1\n \nprint(max(ans))', 'K = int(input())\nA,B = map(int,input().split())\n\nfor i in range(A,B+1):\n if i % K ==0:\n print("OK")\n break\n if i == B:\n print("NG")\n else:\n i = i + 1'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s032866742', 's542747543', 's581801301'] | [9208.0, 9156.0, 9172.0] | [22.0, 23.0, 23.0] | [298, 150, 186] |
p02693 | u699944218 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["A, B, N = list(map(int,input().split()))\nMAX = float('inf')*(-1)\na = int(A/B)\nb = B\nif N < B:\n MAX = (A * N // B) - A * (N // B)\nelse:\n MAX = (A * (B-1) // B) - A * ((B-1) // B)\nprint(MAX)", "K = int(input())\nA,B = list(map(int,input().split()))\na = A // K\nb = B // K\nflag = 0\nfor i in range(a,b+1):\n if A <= K * i and K * i <= B:\n flag += 1\nif flag != 0:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s095239363', 's051925125'] | [9064.0, 9208.0] | [20.0, 22.0] | [194, 211] |
p02693 | u701638736 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = input()\nA,B = input().split()\n\nk = int(K)\na = int(A)\nb = int(B)\n\nx = a // k\nz = b // k\n\nfor i in range(z-x + 1):\n if a <= k*(x+i) and k*i <= b:\n print("OK")\n exit()\n print("NO")', 'K = input()\nA,B = input().split()5\n\nk = int(K)\na = int(A)\nb = int(B)\n\nx = a // k\nz = b // k\n\nfor i in range(z-x + 1):\n if a <= k*i and k*i <= b:\n print("OK")\n exit()', 'K = input()\nA,B = input()\n\nk = int(K)\na = int(A)\nb = int(B)\n\nx = a // k\nz = b // k\n\nfor i in range(z-x + 1):\n if a <= k*i and k*i <= b:\n print("OK")\n exit()', 'K = input()\nA,B = input().split()\n\nk = int(K)\na = int(A)\nb = int(B)\n\nx = a // k\nz = b // k\n\nfor i in range(z-x + 1):\n if a <= k*i and k*i <= b:\n print("OK")\n exit()', 'K = input()\nA,B = input().split()\n\nk = int(K)\na = int(A)\nb = int(B)\n\nx = a // k\nz = b // k\n\n# print(x,z)\nfor i in range(z-x + 1):\n# print("fof---", k*(x+i))\n if a <= k*(x+i) and k*(x+i) <= b:\n print("OK")\n exit()\nprint("NG")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s051773405', 's078219949', 's125884833', 's258485791', 's020792319'] | [9188.0, 8896.0, 9116.0, 9184.0, 9188.0] | [23.0, 21.0, 22.0, 20.0, 22.0] | [197, 172, 163, 171, 241] |
p02693 | u705418271 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['x=int(input())\nm=100\ncnt=0\nwhile m<x:\n m+=m//100\n cnt+=1\n\nprint(cnt)\n', 'k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n exit()\nprint("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s854357405', 's713403305'] | [9080.0, 9132.0] | [28.0, 28.0] | [71, 117] |
p02693 | u715036868 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a = int(input())\nb, c = map(int, input().split())\n\nif a != 1:\n d = c - b\n if b <= d:\n print("OK")\n else:\n print("NG")\nelse:\n print("OK")', "a = int(input())\nb, c = map(int, input().split())\n\nans = int(c/a) * a\n\nif b<=ans<=c:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s119862330', 's430310610'] | [9064.0, 9004.0] | [30.0, 28.0] | [162, 122] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.