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
u716660050
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(1000):\n if (i+1)%K==0 and A <= (i+1):\n print('Yes')\n exit()\nprint('No')", "K=int(input())\nA,B=map(int,input().split())\nfor i in range(1000):\n if (i+1)%K==0 and (A <= (i+1) and (i+1) <= B) :\n print('OK')\n exit()\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s245229533', 's942638256']
[9096.0, 8976.0]
[22.0, 24.0]
[147, 164]
p02693
u718536599
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-a)>=k):\n print('Yes')\nelif (a%k==0) or (b%k==0):\n print('Yes')\nelse:\n print('No')", "k=int(input())\na,b=map(int,input().split())\nif ((b-a)>=k):\n print('OK')\nelif (a%k==0) or (b%k==0):\n print('OK')\nelif(a<(a//k)*k+k<b):\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s241508019', 's823560546']
[9136.0, 9048.0]
[25.0, 26.0]
[135, 169]
p02693
u718765445
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())\ncheck = 0\nfor i in range(A, B+1):\n if i % K == 0:\n print("OK")\n check = 1\nif check == 0:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\nfor Check in range(A, B+1):\n if Check % K == 0:\n print("OK")\n else:\n print("NG")', 'from math import floor\nA, B , N = map(int, input().split())\n\nAnswer = floor((A*N)/B) - (A*floor(N/B))\n\nprint(Answer)', 'from math import floor\nA, B , N = map(int, input().split())\nList = []\nfor x in range(N+1):\n Answer = floor((A*x)/B) - (A*floor(x/B))\n List.append(Answer)\n# print(List)\nprint(max(List))', 'K = int(input())\nA, B = map(int, input().split())\ncheck = 0\nfor i in range(A, B+1):\n if i % K == 0:\n print("OK")\n check = 1\n break\nif check == 0:\n print("NG")\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s497179790', 's563834868', 's598295087', 's751159123', 's600550288']
[9108.0, 9176.0, 9040.0, 9180.0, 9160.0]
[24.0, 22.0, 20.0, 25.0, 22.0]
[172, 150, 116, 190, 186]
p02693
u718949306
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 itertools\nN, M, Q = map(int, input().split())\nm = list()\nres = -100\nfor i in range(Q):\n n = list(map(int, input().split()))\n m.append(n)\nl = [x for x in range(1, M + 1)]\np = itertools.combinations_with_replacement(l, N)\nfor p in p:\n total = 0\n for i in range(Q):\n num = 0\n a = m[i][0]\n b = m[i][1]\n A = p[a - 1]\n B = p[b - 1]\n C = B - A\n if m[i][2] == C:\n num = num + m[i][3]\n total = total + num\n if res < total:\n res = total\nprint(res)', 'import itertools\nN, M, Q = map(int, input().split())\nm = list()\nres = -100\nfor i in range(Q):\n n = list(map(int, input().split()))\n m.append(n)\nl = [x for x in range(1, M + 1)]\np = itertools.combinations_with_replacement(l, N)\nfor p in p:\n total = 0\n for i in range(Q):\n num = 0\n a = m[i][0]\n b = m[i][1]\n A = p[a - 1]\n B = p[b - 1]\n C = B - A\n if m[i][2] == C:\n num = num + m[i][3]\n total = total + num\n if res < total:\n res = total\nprint(res)', "K = int(input())\nA, B = map(int, input().split())\n\nres = False\nfor i in range(1000):\n k = i * K\n if k >= A and k <= B:\n res = True\n\nif res:\n print('OK')\nelse:\n print('NG')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s076533909', 's453879029', 's681050746']
[9172.0, 9168.0, 9112.0]
[24.0, 22.0, 20.0]
[537, 537, 190]
p02693
u721316601
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\nans = 'No'\nfor i in range(A, B+1):\n if not i % K: \n ans = 'Yes'\n break\n \nprint(ans)", "K = int(input())\nA, B = list(map(int, input().split()))\n\nans = 'NG'\nfor i in range(A, B+1):\n if not i % K: \n ans = 'OK'\n break\n \nprint(ans)"]
['Wrong Answer', 'Accepted']
['s933459952', 's823765983']
[9112.0, 9108.0]
[21.0, 21.0]
[160, 159]
p02693
u721403425
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\nfor i in range(1,10000000000):\n a=int(a*1.01)\n if a>=x:\n print(i)\n break', "a=int(input())\nL,R = map(int,input().split())\nb=L%a\nif b==0:\n print('OK')\nelse:\n if L-b+a<=R:\n print('OK')\n else:\n print('NG')\n "]
['Wrong Answer', 'Accepted']
['s966430734', 's978215307']
[9052.0, 9164.0]
[20.0, 23.0]
[101, 138]
p02693
u722761145
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("K"))\nA, B = [int(i) for i in input("A, B").split()]\nC = B//K\nif C*K >= A:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = [int(i) for i in input().split()]\nC = B//K\nif C*K >= A:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s380851133', 's419793907']
[9108.0, 9136.0]
[20.0, 23.0]
[126, 117]
p02693
u723790132
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())\nres = "NG"\nfor i in range(a,b+1):\n if((i%k==0):\n res="OK"\n break\nprint(res)', 'k = int(input())\na,b = map(int, input().split())\n\nres = "NG"\nfor i in range(a,b+1):\n if (i%k==0):\n res = "OK"\n break\nprint(res)']
['Runtime Error', 'Accepted']
['s837992181', 's862316186']
[9020.0, 9100.0]
[22.0, 22.0]
[134, 144]
p02693
u725993280
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\n\nfor i in range(b+1):\n if k * i >= a and k * i <= b:\n flag = True\nif flag == True:\n print("Yes")\nelse:\n print("No")\n ', 'k = int(input())\na,b = map(int,input().split())\n\nflag = False\n\nfor i in range(b+1):\n if k * i >= a and k * i <= b:\n flag = True\nif flag == True:\n print("OK")\nelse:\n print("NG")\n ']
['Wrong Answer', 'Accepted']
['s108758648', 's471769253']
[9172.0, 9104.0]
[23.0, 21.0]
[198, 197]
p02693
u726984689
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 a<=b and b<=1000 and k<=1000 :\n for i in range(a,b+1):\n if i % k == 0:\n \tprint('OK')\nelse :\n print('NG')\n", "k = int(input())\na,b = map(int,input().split())\nif a<=b and b<=1000 and k<=1000 :\n for i in range(a,b+1):\n if i % k == 0:\n print('OK')\n break\n print('NG')\n \n \nelse :\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nif k>=a and k<=b and (b-a) >= k:\n print('OK')\nelse :\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nif b<=1000 :\n for i in range(a,b+1):\n if i % k == 0:\n \tprint('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')\n exit()\nprint('NG')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s063390400', 's192253820', 's391650738', 's665196369', 's284208002']
[9148.0, 9164.0, 9152.0, 9172.0, 9164.0]
[19.0, 21.0, 23.0, 24.0, 23.0]
[173, 219, 116, 151, 137]
p02693
u727021494
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 < a:\n print("NG")\nelse:\n print("OK")', 'k = int(input())\na, b = map(int, input().split())\ncount = 0\nfor i in range(a, b+1):\n if i % k == 0:\n count += 1\n else:\n continue\nif count != 0:\n print("OK")\nelse:\n print("NG")\n']
['Wrong Answer', 'Accepted']
['s215096391', 's023689873']
[9160.0, 9168.0]
[23.0, 21.0]
[97, 202]
p02693
u727051308
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 = 0\n\nif (B-A) >= K:\n print("OK")\nelse:\n for i in range(K):\n if ( A + i ) < B:\n if ( A + i ) % K == 0:\n print("OK")\n c = 1\n break\nif c == 0:\n print("NG")\n ', 'K = int(input())\nA,B = map(int,input().split())\nc = 0\n\nif (B-A) >= K:\n print("OK")\n c = 1\nelse:\n for i in range(K):\n if ( A + i ) <= B:\n if ( A + i ) % K == 0:\n print("OK")\n c = 1\n break\nif c == 0:\n print("NG")']
['Wrong Answer', 'Accepted']
['s502708913', 's586554973']
[9176.0, 9192.0]
[23.0, 21.0]
[239, 243]
p02693
u727717182
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 sys import stdin\n\ndef main():\n\n input = stdin.readline\n\n K = int(input())\n A,B = map(int,input().split())\n\n \n for i in range(1,1001):\n if A <= i * K & B >= i * K:\n print("OK")\n return 0\n else:\n print("NG")\n\n \nif __name__ == "__main__":\n main()', 'from sys import stdin\n\ndef main():\n\n input = stdin.readline\n\n K = int(input())\n A,B = map(int,input().split())\n\n for i in range(A,B+1):\n if i % K == 0:\n print("OK")\n return 0\n else:\n print("NG")\n\n \nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s993757208', 's847495299']
[9176.0, 9180.0]
[21.0, 23.0]
[308, 289]
p02693
u727980193
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,M=list(map(int, input().split()))\nsrc=[i+1 for i in range(M*2+1)]\nif N%2==0:\n for m in range(M//2):\n a=src[m]\n b=src[M-m]\n print('{} {}'.format(a,b))\n for m in range(M//2):\n a=src[M+1+m]\n b=src[-(m+1)]\n print('{} {}'.format(a,b))\nelse:\n for m in range(M//2):\n a=src[m]\n b=src[M-1-m]\n print('{} {}'.format(a,b))\n for m in range(M-(M//2)):\n a=src[M+m]\n b=src[-(m+1)]\n print('{} {}'.format(a,b))", "N,M=list(map(int, input().split()))\nsrc=[i+1 for i in range(M*2+1)]\nif N%2==0:\n for m in range(M//2):\n a=src[m]\n b=src[M-m]\n print('{} {}'.format(a,b))\n for m in range(M//2):\n a=src[M+1+m]\n b=src[-(m+1)]\n print('{} {}'.format(a,b))\nelse:\n for m in range(M//2):\n a=src[m]\n b=src[M-1-m]\n print('{} {}'.format(a,b))\n for m in range(M-(M//2)):\n a=src[M+m]\n b=src[-(m+1)]\n print('{} {}'.format(a,b))", "K = int(input())\na,b = list(map(int, input().split()))\nn = 0\nwhile True:\n n += 1\n if a <= n*K and n*K <= b:\n print('OK')\n break\n if b < n*K:\n print('NG')\n break"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s553257270', 's643052078', 's626425823']
[9264.0, 9120.0, 9180.0]
[21.0, 22.0, 23.0]
[434, 434, 175]
p02693
u729245484
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())\nline = input().split()\n\nfor i in range(int(line[0])+1,int(line[1])):\n if i%k ==0:\n print("OK")\n break\n \n else:\n print("NG")', 'k = int(input())\nline = input().split()\n\nfor i in range(int(line[0]),int(line[1])+1):\n if i%k ==0:\n print("OK")\n break\n \n else:\n print("NG")', 'k = int(input())\nline = input().split()\nans = "NG"\nfor i in range(int(line[0]),int(line[1])+1):\n if i%k ==0:\n ans = "OK"\n break\n \nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s064819459', 's424815955', 's352932279']
[9152.0, 9148.0, 9092.0]
[24.0, 24.0, 21.0]
[154, 154, 150]
p02693
u730107446
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=False\nfor i in range(a,b+1):\n if i%k==0:\n flag=true\n break\nif flag:\n print("OK")\nelse:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nflag=False\nfor i in range(a,b+1):\n if i%k==0:\n flag=True\n break\nif flag:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s400222988', 's014295343']
[9172.0, 9116.0]
[26.0, 21.0]
[171, 171]
p02693
u733465500
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())\nn_A = A//K\nn_B = B//K\nif n_B - n_A >= 1:\n print("Yes")\nelse:\n print("No")\nprint(n_A, n_B)', 'K = int(input())\nA, B = map(int,input().split())\nn_A = A//K\nn_B = B//K\nif n_B - n_A >= 1:\n print("Yes")\nelse:\n print("No")\n', 'K = int(input())\nA, B = map(int,input().split())\nn_A = A//K\nn_B = B//K\nif n_B - b_A >= 1:\n print("Yes"):\nelse:\n print("No")', 'K = int(input())\nA, B = map(int,input().split())\nn = 1\nm = 1\nfor i in range(1100):\n if A <= K * i:\n n = i\nfor i in range(n, 1100):\n if B >= K * i:\n m = i - 1\nif m - n >= 0:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int,input().split())\nm = B // K\nif m*K >= A:\n print("OK")\nelse:\n print("NG")\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s245979990', 's258084445', 's457350135', 's743854280', 's540481857']
[9048.0, 9096.0, 8956.0, 9192.0, 9152.0]
[22.0, 22.0, 22.0, 20.0, 19.0]
[140, 125, 125, 214, 107]
p02693
u735421397
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 \nK = int(input())\nA, B = map(int, input().split())\n \nfor i in range(A, B+1):\n print(i)\n if i % K == 0:\n print('OK')\n sys.exit()\nprint('NG')", "import sys\n \nK = 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 sys.exit()\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s042961388', 's745644436']
[9168.0, 9168.0]
[21.0, 22.0]
[159, 148]
p02693
u742385708
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().rstrip())\ndistance_range = list(map(int,input().split()))\nif (distance_range[1]//K)*K >= distance_range[0]:\n print("Yes")\nelse:\n print("No")', '\nK = int(input().rstrip())\ndistance_range = list(map(int,input().split()))\nif (distance_range[1]//K)*K >= distance_range[0]:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s539491408', 's861936882']
[9148.0, 9168.0]
[27.0, 28.0]
[163, 162]
p02693
u744398466
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\nlistA=[] \nwhile True:\n try:\n listA.append(list(map(int,input().split())))\n\n except:\n break;\n \n\na = listA[0][0]\nb = listA[0][1]\nn = listA[0][2]\n\nold = 0\nfor x in range(1,n+1):\n if x == 1:\n c = math.floor((a*x)/b)\n d = math.floor(x/b)\n old = c-(a*d)\n else:\n c = math.floor((a*x)/b)\n d = math.floor(x/b)\n current = c-(a*d)\n if old <= current:\n old = current\n if x > 10000000:\n break\nprint (old)\n \n', "listA=[] \nwhile True:\n try:\n listA.append(list(map(int,input().split())))\n\n except:\n break;\n \n\na = listA[0][0]\nb = listA[1][0]\nc = listA[1][1]\n\nif b % a == 0:\n print ('OK')\n\nd = b // a\n\nif b % a !=0:\n if a * (d+1) <= c:\n print ('OK')\n else:\n print ('NG')"]
['Runtime Error', 'Accepted']
['s170982341', 's066618966']
[9036.0, 9076.0]
[22.0, 23.0]
[550, 374]
p02693
u744493670
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\na,b,n=map(int,input().split())\nif(n<b):\n print(floor((a*n)/b))\nelse:\n if(n%b<(n/2)):\n for i in range(0,(n%b)+1):\n print(floor((a*(n-1-i))/b)-(a*floor((n-1-i)/b)))\n else:\n print(floor((a*(n))/b)-(a*floor((n)/b)))\n', 'k=int(input())\na,b=map(int,input().split())\ncount=0\nfor i in range(a,b+1):\n if(i%k==0):\n c=c+1\nif(c==0):\n print("NG")\nelse:\n print("OK")\n \n \n', '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("NG")\nelse:\n print("OK")\n \n \n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s046439206', 's960240824', 's644825517']
[9144.0, 9168.0, 9140.0]
[23.0, 23.0, 20.0]
[249, 153, 149]
p02693
u744695362
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())\nb,c=map(int, input().split())\nk = b\nwhile b<= k <= c :\n if k % n == 0 :\n print('OK')\n exit()\n b = b +1\nprint('NG')", "n = int(input())\nb,c=map(int, input().split())\nk = b\nwhile b<= k <= c :\n if k % n == 0 :\n print('OK')\n exit()\n k += 1\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s076698499', 's639246385']
[9168.0, 9160.0]
[22.0, 21.0]
[152, 150]
p02693
u747485678
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())\narr = list(map(int, input()))\na = arr[1] % K\nb = arr[1] - arr[0]\nif a > b:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\narr = list(map(int, input().split()))\na = arr[1] % K\nb = arr[1] - arr[0]\nif a <= b:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s995721766', 's729888651']
[9160.0, 9164.0]
[21.0, 22.0]
[130, 139]
p02693
u749416810
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())\nf=0\nfor i in range(a,b+1):\n if i%n==0:\n print("OK")\n f=1\nif f==0:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%n==0:\n print("OK")\n exit()\nprint("NG")', 'n=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%n==0:\n print("OK")\n break\nprint("NG")\n ', 'k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%n==0:\n print("OK")\nprint("NG")', 'k=int(input())\na,b=map(int,input().split())\nf=0\nfor i in range(a,b+1):\n if i%k==0:\n f=1\nif f==1:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s020891755', 's289070468', 's368128186', 's769935489', 's421759560']
[9184.0, 9116.0, 9156.0, 9068.0, 9120.0]
[19.0, 21.0, 21.0, 20.0, 21.0]
[130, 118, 122, 107, 134]
p02693
u749614185
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>=7:\n print("OK")\nelif K=="1":\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA=int(input())\nB=int(input())\nlargest=(B/K)*K\nif A<=largest:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nX = B//K - A//K\n\nif B%K == 0 or A%K == 0:\n print("OK")\n\nelif X == 0 :\n print("NG")\n\nelse :\n print("OK")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s049488847', 's561188412', 's211171849']
[8992.0, 9076.0, 9080.0]
[28.0, 24.0, 27.0]
[116, 109, 163]
p02693
u749742659
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\naa = a % k\nbb = b % k\n\nif(b - a > k):\n print('OK')\nif(aa > bb):\n print('OK')\nif(aa == 0):\n print('OK')\nelse:\n print('NG')\n", "k = int(input())\na,b = map(int, input().split))\n\naa = a % k\nbb = b % k\n\nif(b - a > k):\n print('OK')\nif(aa > bb):\n print('OK')\nif(aa == 0):\n print('OK')\nelse:\n print('NG')\n", "k = int(input())\na,b = map(int, input().split())\n\naa = a % k\nbb = b % k\n\nif(b - a >= k):\n print('OK')\nelif(aa > bb):\n print('OK')\nelif(aa == 0):\n print('OK')\nelse:\n print('NG')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s314279763', 's334118077', 's826359230']
[9172.0, 8900.0, 9188.0]
[22.0, 23.0, 25.0]
[182, 183, 189]
p02693
u750838232
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("Yes")\n exit()\n\nprint("No")\n\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 exit()\n\nprint("NG")\n\n']
['Wrong Answer', 'Accepted']
['s027347535', 's179945008']
[9160.0, 9160.0]
[20.0, 21.0]
[144, 143]
p02693
u754511616
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()))\nwhile True:\n x+=k\n if a<=x<=b:\n print('OK')\n break\n if x>b:\n print('NG')\n break", "k=int(input())\na,b=list(map(int,input().split()))\nx=0\nwhile True:\n x+=k\n if a<=x<=b:\n print('OK')\n break\n if x>b:\n print('NG')\n break\n"]
['Runtime Error', 'Accepted']
['s105757068', 's729453785']
[8880.0, 9164.0]
[26.0, 25.0]
[144, 149]
p02693
u755250447
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=(int(x) for x in input().split())\nz = int(a/k) - int(b/k)\nsum = 0\nfor i in range(z):\n sum = sum + 1\nif k == 1:\n print("OK")\nelif sum == 0:\n print("NG")\nelse:\n print("OK")', 'k = int(input())\na,b=(int(x) for x in input().split())\nz = int(a / k) - int(b / k)\nsum = 0\nfor i in range(z):\n sum = sum + 1\nif sum == 0:\n print("NG")\nelse:\n print("OK")', 'k = int(input())\na,b=(int(x) for x in input().split())\nz = int(a / k) - int(b / k)\nsum = 0\nfor i in range(z):\n sum = sum + 1\nif sum == 0:\n if k == 1:\n print("OK")\n else:\n print("NG")\nelse:\n print("OK")', 'k = int(input())\na,b=(int(x) for x in input().split())\ncount = 0\nfor i in range(a,b+1):\n if i%k == 0:\n count += 1\nif count == 0:\n print("NG")\nelse:\n print("OK")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s064985009', 's642484627', 's748982466', 's125921780']
[9180.0, 9184.0, 9188.0, 9164.0]
[22.0, 21.0, 21.0, 21.0]
[203, 178, 227, 176]
p02693
u756195685
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())\nf = "No"\nfor i in range(B,C+1):\n if i % A == 0:\n f = "Yes"\nprint(f)', 'A = int(input())\nB,C = map(int,input().split())\nf = "NG"\nfor i in range(B,C+1):\n if i % A == 0:\n f = "OK"\nprint(f)']
['Wrong Answer', 'Accepted']
['s270615875', 's137776490']
[9160.0, 9156.0]
[22.0, 24.0]
[125, 124]
p02693
u756518877
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 -*-\nfrom itertools import itertools_with_replacement\nN,M,Q=map(int,input().split())\nabcd=[]\nfor _ in range(Q):\n abcd.append(tuple(map(int,input().split())))\nAbase=[]\nfor a in range(1,M+1):\n Abase=Abase+[a]\nA=set(itertools.combinations_with_replacement(Abase,N))\nans=0\nfor i in A:\n temp=0\n for j in abcd:\n if i[j[1]-1]-i[j[0]-1]==j[2]:\n temp=temp+j[3]\n if temp>=ans:\n ans=temp\nprint(ans)', '# -*- coding: utf-8 -*-\nK=int(input())\nA,B=map(int,input().split())\ni=1\nans=0\nwhile B>=K*i:\n if A<=K*i:\n ans=1\n break\n i=i+1\nif ans==1:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s387837405', 's733503768']
[9084.0, 9176.0]
[21.0, 25.0]
[446, 193]
p02693
u757777793
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())\ni=0\nb=100\nwhile b<a:\n b=int(b*1.01)\n i+=1\nprint(i)', 'k = int(input())\na, b = map(int, input().split())\nans = "NG"\nfor c in range(a, b+1):\n if (c%k)==0:\n ans = "OK"\n break\nprint(ans)']
['Wrong Answer', 'Accepted']
['s481101579', 's020576268']
[9160.0, 9036.0]
[22.0, 20.0]
[67, 135]
p02693
u763628696
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 = [input() for i in range(2)]\nif (b-a+1 >= k):\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na,b = map(int,input().split())\nif ((b//k)*k >= a):\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s646233928', 's817539378']
[9096.0, 9160.0]
[25.0, 27.0]
[101, 101]
p02693
u766565683
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())\n\na, b = map(int, input().split())\nif a == b and a%k ==0:\n print("OK")\n exit()\nelse:\n print("NG")\n exit() \n\nif (b-a) // k > 0:\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")\n exit()\n\nprint("NG")']
['Wrong Answer', 'Accepted']
['s589509838', 's038796183']
[8980.0, 9120.0]
[24.0, 20.0]
[183, 131]
p02693
u766566560
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 <= B:\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')\n exit()\n\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s891592978', 's733440830']
[9164.0, 9172.0]
[23.0, 23.0]
[100, 131]
p02693
u768256617
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 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 \n \nif flag==1:\n print('OK')\n \nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s649884299', 's592912224']
[9084.0, 9148.0]
[20.0, 21.0]
[119, 162]
p02693
u769630892
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 numpy as np\nimport fractions\n \nK = int(input())\nA,B = [int(i) for i in (input()).split(" ")]\n \nif((B//K-A//K)>=0 and K<=B and 2*A<=K):\n print("OK")\nelse:\n print("NG")\n', 'import numpy as np\nimport fractions\n \nK = int(input())\nA,B = [int(i) for i in (input()).split(" ")]\n \nif(((B//K-A//K)>0 and K<=B) or A%K==0 or B%K==0):\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s408159539', 's854224940']
[27168.0, 27192.0]
[109.0, 110.0]
[176, 185]
p02693
u770077083
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 k % i == 0:\n print("OK")\n exit()\nprint("NG")', 'k = int(input())\na,b = map(int,input().split())\nfor i in range(a, b+1):\n\tif i % k == 0:\n \tprint("OK")\n exit()\nprint("NG")', 'k = int(input())\na,b = map(int,input().split())\nfor i in range(a, b+1):\n\tif k % i == 0:\n \tprint("OK")\n exit()\nprint("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")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s448533515', 's598520352', 's697615025', 's526635418']
[9164.0, 8964.0, 9016.0, 9168.0]
[23.0, 23.0, 20.0, 23.0]
[127, 131, 131, 127]
p02693
u772029934
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-A>=K-1:\n print("OK")\nelif A%K > B%K:\n print("OK")\nelif A%K=0 or b%K=0:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\n\nif B-A>=K-1:\n print("OK")\nelif A%K > B%K:\n print("OK")\nelif A%K=0 or B%K=0:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\n\nif B-A>=K-1:\n print("OK")\nelif A%K > B%K:\n print("OK")\nelif A%K==0 or B%K==0:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s327723987', 's888975409', 's362671645']
[9024.0, 8960.0, 9180.0]
[20.0, 19.0, 19.0]
[169, 169, 171]
p02693
u773265208
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\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')\n", "import sys\n\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')\n"]
['Wrong Answer', 'Accepted']
['s013877531', 's894763592']
[9156.0, 9160.0]
[22.0, 23.0]
[140, 139]
p02693
u773865844
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\nlines = sys.stdin.readlines()\nK = int(lines[0])\nX = lines[1].split(' ')\nprint(X)\nA = X[0]\nB = X[1]\n\nn = int(int(A)/int(K))\nm = int(int(B)/int(K))\n\nif m-n >0:\n print('OK')\nelse:\n print('NG')", "import sys\nimport math\n\nlines = sys.stdin.readlines()\nK = int(lines[0])\nX = lines[1].split(' ')\n\nA = int(X[0])\nB = int(X[1])\n\nn = math.ceil(A/K)-1\nm = int(B/K)\n\nif m-n >0:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s363490724', 's442450393']
[9192.0, 9140.0]
[23.0, 22.0]
[207, 209]
p02693
u777028980
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())\nn,m=map(int,input().split())\nflag=False\nfor i in range(1000):\n ans=1+i\n if(n<=ans and m>=ans):\n if(ans%n==0):\n flag=True\n \nif(flag):\n print("Yes")\nelse:\n print("No")', 'n=int(input())\na,b=map(int,input().split())\nflag=False\nfor i in range(1000):\n ans=1+i\n if(a<=ans and b>=ans):\n if(ans%n==0):\n flag=True\n \nif(flag):\n print("Ok")\nelse:\n print("NG")\n\n', 'n=int(input())\na,b=map(int,input().split())\nflag=False\nfor i in range(1000):\n ans=1+i\n if(a<=ans and b>=ans):\n if(ans%n==0):\n flag=True\n \nif(flag):\n print("OK")\nelse:\n print("NG")\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s282435641', 's585381793', 's600339197']
[9180.0, 9176.0, 9168.0]
[24.0, 21.0, 22.0]
[197, 198, 198]
p02693
u780698286
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 a <= k <= b:\n print("OK")\nelse:\n print("NO")', 'import sys\n\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']
['s584017207', 's121610997']
[9128.0, 8960.0]
[29.0, 27.0]
[99, 146]
p02693
u782460722
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())\nd = 0\nfor i in range(a,b+1):\n if i%k == 0:\n d += 1\n break\n else:\n d = 0\nif d == 1:\n print('OK')\nelse:\n print('NG')", 'k = int(input())\nn = list(map(int,input().split()))\nd = 0\nfor i in range(a,b+1):\n if i % k == 0:\n \n d = 1\n break\nif d == 0:\n print("NG")\nelse:\n print(\'NG\')', "k = int(input())\na,b = map(int,input())\nd = 0\t\nfor i in range(a,b+1):\n if i%k == 0:\n d = 3\n break\n else:\n d=0\nif d == 3:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input())\nd = 0\nfor i in range(a,b+1):\n if i%k == 0:\n d = 3\n break\n else:\n continue\nif d == 3:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input())\nd = 0\nfor i in range(a,b+1):\n if i%k == 0:\n d = 3\n break\nif d == 3:\n print('OK')\nelse:\n print('NG')", 'k = int(input())\na,b=map(int,input().split())\ncount = 0\nfor i in range(a,b+1):\n if i%k == 0:\n count += 1\nif count == 0:\n print("NG")\nelse:\n print("OK")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s005664296', 's131309215', 's186214609', 's568682806', 's866344838', 's384146769']
[9176.0, 9116.0, 8928.0, 9120.0, 9176.0, 9180.0]
[18.0, 25.0, 24.0, 21.0, 24.0, 22.0]
[168, 183, 165, 169, 148, 167]
p02693
u783340206
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+1, b):\n if i%k ==0:\n print("OK")\n else:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\nfor i in range(a, b):\n for j in range(i):\n if j%k == 0:\n print("NG")\n else:\n print("OK")', '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()\n if i%k != 0:\n print("NG")\n sys.exit()\n \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\n \n ']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s206973810', 's210850090', 's898137092', 's975877067']
[9164.0, 9060.0, 9112.0, 9164.0]
[21.0, 175.0, 21.0, 22.0]
[139, 155, 209, 166]
p02693
u783676040
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())\nif (A-1)/K == B/K:\n print('NG')\nelse:\n print('OK')", "K=int(input())\nA,B=map(int,input().split())\nif (A-1)//K == B//K:\n print('NG')\nelse:\n print('OK')\n"]
['Runtime Error', 'Accepted']
['s988116902', 's346111587']
[9064.0, 9088.0]
[23.0, 27.0]
[88, 99]
p02693
u785578220
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 \n \nif b<= a<= c and (c-b>=a or b%a==0 or c%a == 0):\n print('OK')\nelse:\n print('NG')", "a = int(input())\nb,c = map(int,input().split())\n \nf = 0\nfor i in range(b,c+1):\n if i%a == 0:\n f = 1\nif f ==1:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s663359234', 's221681193']
[9172.0, 9172.0]
[20.0, 21.0]
[139, 157]
p02693
u789436713
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\nK=int(input())\nA,B=[int(i)for i in input().split()]\na=math.ceil(A/K)\nprint("Yes" if B>=a*K else "No")\n', 'import math\nK=int(input())\nA,B=[int(i)for i in input().split()]\na=math.ceil(A/K)\nprint("OK" if B>=a*K else "NG")\n']
['Wrong Answer', 'Accepted']
['s944894770', 's118264844']
[9160.0, 9156.0]
[22.0, 23.0]
[114, 113]
p02693
u793821463
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 a//k !=b//k:\n print('Yes')\nelse:\n print('No')", "k = int(input())\na , b = map(int,input().split())\nif a//k != b//k or (b%k)*(a%k) == 0:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s990807087', 's358848889']
[9108.0, 9080.0]
[29.0, 27.0]
[98, 120]
p02693
u794136315
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 = [int(x) for x in input().split()]\n\nif A >= K:\n tmp = A // K\n if A % K == 0 or B <= ( tmp + 1 ) * K:\n print('OK')\n else:\n print('NG')\nelse:\n if B // K > 0:\n print('OK')\n else:\n print('NG') \n", "K = int(input())\nA , B = [int(x) for x in input().split()]\n\ntmp = A // K\nif A % K == 0 or B <= ( tmp + 1 ) * K:\n print('OK')\nelse:\n print('NG')", "K = int(input())\nA , B = [int(x) for x in input().split()]\n\nif A >= K:\n tmp = A // K\n if A % K == 0 or B >= ( tmp + 1 ) * K:\n print('OK')\n else:\n print('NG')\nelse:\n if B // K > 0:\n print('OK')\n else:\n print('NG') \n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s842411229', 's917058637', 's070962659']
[9064.0, 9060.0, 8868.0]
[22.0, 24.0, 21.0]
[264, 149, 264]
p02693
u798651377
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())\nc=0\nfor i in range(a,b+1):\n if i%k==0:\n c=c+1\nif c==0:\n print("NG")\nelse:\n print("OK")', 'k=int(input())\nA,B = input().split(" ")\nA = int(A)\nB = int(B)\nc=0\nfor i in range(A,B+1):\n if i%k==0:\n c=c+1\nif c==0:\n print("NG")\nelse:\n print("OK")\n']
['Runtime Error', 'Accepted']
['s733674730', 's654860399']
[9180.0, 9176.0]
[20.0, 21.0]
[137, 155]
p02693
u799428010
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()))\nans='No'\nfor i in range (A,B+1):\n if A<K*i and K*i<B:\n ans='OK'\n break\nprint(ans)", "K=int(input())\nA,B=list(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']
['s043340332', 's912421297']
[9040.0, 9160.0]
[24.0, 27.0]
[149, 140]
p02693
u800876458
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=1\nfor x in range(a,b+1):\n if x%k==0:\n flag=0\n print('OK')\nif not flag:\n print('NG')\n ", "k=int(input())\na,b=map(int,input().split())\nflag=1\nfor x in range(a,b+1):\n if x%k==0:\n flag=0\n print('OK')\n break\nif not flag:\n print('NG')\n \n", "k=int(input())\na,b=map(int,input().split())\nflag=1\nfor x in range(a,b+1):\n if x%k==0:\n flag=0\n print('OK')\n break\nif flag:\n print('NG')\n \n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s249817190', 's767496005', 's209065987']
[9168.0, 9112.0, 9168.0]
[22.0, 23.0, 22.0]
[143, 154, 150]
p02693
u802234211
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())\nf = 0\nfor i in range(A,B+1):\n if(i%K==0):\n print("OK")\n f =1\n break\n print(i)\nif(f ==0):\n print("NG")\n\n', 'from math import floor\nA,B,N = map(int,input().split())\nif(B-1>N):\n Nomin = floor(N)\nelse:\n Nomin = floor(B-1)\n\nprint(Nomin)', 'K =int(input())\nA,B = map(int,input().split())\nf = 0\nfor i in range(A,B+1):\n\n if(i%K==0):\n print("OK")\n f =1\n break\n\nif(f ==0):\n print("NG")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s428718154', 's645921370', 's006999873']
[9216.0, 9020.0, 9116.0]
[20.0, 21.0, 21.0]
[180, 130, 167]
p02693
u804850951
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())\nresult=0\nfor i in range(1000):\n tmp=K*i\n if A<=K<=B:\n result=1\n break\n if K>B:\n break\nif result==1:\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\nresult=0\nfor i in range(1000):\n tmp=K*i\n if A<=tmp<=B:\n result=1\n break\n if tmp>B:\n break\nif result==1:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s574857079', 's456324576']
[9180.0, 9184.0]
[24.0, 26.0]
[189, 193]
p02693
u805392425
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 sys import stdin\n\nK = int(stdin.readline())\nA, B = map(int, input().split())\n\nif ((B-A) < K) and (A%K != 0):\n print("OK")\nelse:\n print("NG")', 'from sys import stdin\n\nX = int(stdin.readline())\nY = 100\n\ncount = 1\nwhile True:\n Y += Y*0.01\n if Y >= X:\n print(count)\n break\n else:\n count += 1', 'from sys import stdin\n\nK = int(stdin.readline())\nA, B = map(int, input().split())\n\ncount = 0\nfor i in range(B-A+1):\n if (A+i) % K ==0:\n count += 1\n\nif count > 0:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s423430154', 's806358674', 's259280242']
[9168.0, 9172.0, 9180.0]
[24.0, 19.0, 22.0]
[147, 156, 199]
p02693
u806976856
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("K=")\nA=input("A=")\nB=input("B=")\n\nf="NG"\nfor i in range(int(A),int(B)):\n c=i%int(K)\n if c==0:\n f="OK"\nprint(f)\n', 'K=input()\nA, B=input().split()\n\n\nf="NG"\nfor i in range(int(A),int(B)+1):\n c=i%int(K)\n if c==0:\n f="OK"\nprint(f)\n']
['Runtime Error', 'Accepted']
['s942784794', 's904584514']
[9088.0, 9164.0]
[21.0, 22.0]
[133, 125]
p02693
u807021746
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=0\nfor i in range(a, b+1):\n\tif i%k == 0:\n c += 1\nif c == 0:\n\tprint("NG")\nelse:\n print("OK")', 'k = int(input())\na, b=map(int, input().split())\n\nc=0\nfor i in range(a, b+1):\n if i%k == 0:\n c += 1\n else:\n pass \nif c == 0:\n print("NG")\nelse:\n print("OK")']
['Runtime Error', 'Accepted']
['s982058128', 's274182137']
[8900.0, 9096.0]
[26.0, 26.0]
[150, 168]
p02693
u807889603
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# X\nX = int(input())\n\nA = 100\ni = 0\n\nwhile True:\n if X <= A :\n print(i)\n break\n else:\n i += 1\n A = math.floor(A*1.1)\n', "# K\nK = int(input())\n\n# A B\nA, B = map(int, input().split())\n\nfor i in range(1001):\n if A <= K*i <= B:\n print('OK')\n break\n if B<K*i:\n print('NG')\n break\n"]
['Wrong Answer', 'Accepted']
['s954901975', 's976297754']
[9056.0, 9040.0]
[24.0, 20.0]
[164, 188]
p02693
u807943476
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 else:\n continue\nif i = B:\n print(NG)', 'K = int(input())\nA, B = map(int, input().split())\nd = A // K\nr = A % K\n\nif r == 0:\n print("OK")\nelif K*(d+1) >= A and K*(d+1) <= B:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s816195462', 's685789383']
[8968.0, 9048.0]
[23.0, 21.0]
[148, 166]
p02693
u809371093
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())\nresult = 'NG'\nfor i in range (A, B + 1):\n if i % K == 0:\n result = 'OK'\nprint(result", "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', 'Accepted']
['s359114680', 's098824557']
[9036.0, 9164.0]
[24.0, 25.0]
[144, 145]
p02693
u809700806
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())\t\n \ncnt = 0\nfor i in range(A, B+1):\n if(i % K == 0):\n print("OK")\n cnt += 1\n break\nif(cnt == 0):\n print("NG")', 'K =input()\nA,B = map(int,input().split())\t\n\ncnt = 0\nfor i in range(A, B+1):\n if(i % K == 0):\n print("OK")\n cnt += 1\n break\nif(cnt == 0):\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\ncnt = 0\nfor i in range(A, B+1):\n if(i % K == 0):\n print("OK")\n cnt += 1\n break\nif(cnt == 0):\n print("NG")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s818162315', 's818718797', 's777867273']
[9176.0, 9200.0, 9184.0]
[19.0, 23.0, 21.0]
[177, 176, 180]
p02693
u811709035
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 = 0\nfor i in range(1000):\n if (a <= k * (i+1) and (b >= k * (i+1):\n print("OK")\n flag=1\n break\nif flag != 1:\n print("NO")', 'k = int(input())\na, b = map(int, input().split())\n\nflag = 0\nfor i in range(1000):\n if (a <= k * (i+1)) and (b >= k * (i+1)):\n print("OK")\n flag = 1\n break\nif flag != 1:\n print("NG")']
['Runtime Error', 'Accepted']
['s955618912', 's883269445']
[8956.0, 9212.0]
[21.0, 23.0]
[204, 208]
p02693
u814265211
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`.
["\nA, B = list(map(int, input().split()))\n\nfor i in range(A, B+1):\n if i % K == 0:\n print('OK')\n exit()\n\nprint('NG')", "K = int(input())\nA, B = list(map(int, input().split()))\n\nfor i in range(A, B+1):\n if i % K == 0:\n print('OK')\n exit()\n\nprint('NG')"]
['Runtime Error', 'Accepted']
['s280852238', 's827834861']
[9096.0, 9116.0]
[28.0, 29.0]
[131, 147]
p02693
u815468655
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`.
["G = int(input())\nA, B = map(int,input().split())\nTotal = 'OK'\nfor i in range(A,B+1):\n if i% G != 0:\n Total = 'NG'\nprint(Total)", "G = int(input())\nA, B = map(int,input().split())\nTotal = 'NG'\nfor i in range(A,B+1):\n if i% G == 0:\n Total = 'OK'\nprint(Total)"]
['Wrong Answer', 'Accepted']
['s018312783', 's631027146']
[9196.0, 9124.0]
[23.0, 22.0]
[136, 136]
p02693
u816462023
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 return print("OK")\nreturn print("NG")\n', '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\nif flag==1:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s643376450', 's163858017']
[9000.0, 9096.0]
[22.0, 23.0]
[132, 159]
p02693
u818349438
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())\nok = False\nfor i in range(a,b+1):\n if i %k == 0:\n ok = True\nif ok:print('YES')\nelse:print('NO')", "k = int(input())\na,b = map(int,input().split())\nok = False\nfor i in range(a,b+1):\n if i %k == 0:\n ok = True\nif ok:print('OK')\nelse:print('NG')"]
['Wrong Answer', 'Accepted']
['s673532290', 's489456897']
[9192.0, 9176.0]
[22.0, 22.0]
[153, 152]
p02693
u821775079
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())\nprint("OK" if B-A <= B%K else "NG")', 'K=int(input())\nA,B=map(int,input().split())\nprint("OK" if B-A >= B%K else "NG")']
['Wrong Answer', 'Accepted']
['s369726395', 's840430683']
[9100.0, 9128.0]
[24.0, 21.0]
[79, 79]
p02693
u821969418
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\nwhile True:\n if a%k == 0:\n print("OK")\n break\n elif: b%k == 0:\n print("OK")\n elif b-a >= k:\n print("OK")\n break\n else:\n print("NG")\n break\n', 'k=int(input())\na,b=map(int, input().split())\n\nprint("OK" if a <= b//k*k else "NG")']
['Runtime Error', 'Accepted']
['s866422584', 's114726130']
[8924.0, 9164.0]
[23.0, 20.0]
[246, 82]
p02693
u823810152
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"\n\nif K == 1:\n ans = "OK"\nelse:\n for i in range(A,B+1):\n print(i)\n if i % K == 0:\n ans = "OK"\n break\n \nprint(ans)', 'K = int(input())\nA,B = map(int,input().split())\nans = "NG"\n\nif K == 1:\n ans = "OK"\nelif K >= B-A:\n for i in range(A,B+1):\n if i % K == 0:\n ans = "OK"\n break\n \nprint(ans)', 'K = int(input())\nA,B = map(int,input().split())\nans = "NG"\n\nif K == 1:\n ans = "OK"\nelse:\n for i in range(A,B+1):\n if i % K == 0:\n ans = "OK"\n break\n \nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s140885577', 's198890988', 's738401216']
[9176.0, 9172.0, 9172.0]
[24.0, 20.0, 19.0]
[191, 187, 178]
p02693
u826785572
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\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 exit()\nprint('NG')\n"]
['Wrong Answer', 'Accepted']
['s175911267', 's667211866']
[9096.0, 9160.0]
[22.0, 23.0]
[140, 141]
p02693
u835482198
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\n\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", "import sys\n\n\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']
['s733953556', 's040133942']
[9160.0, 9200.0]
[24.0, 21.0]
[160, 159]
p02693
u837501838
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())\ncount = 0\nfor i in range(A-1,B+1):\n if i%K == 0:\n count += 1\n\nif count != 0:\n print('Yes')\nelse:\n print('No')", "K = int(input())\nA,B = map(int, input().split())\ncount = 0\n\nfor i in range(A,B+1):\n if i%K == 0:\n count += 1\n i += 1\n\nif count > 0:\n print('OK')\nelse:\n print('NG')\n "]
['Wrong Answer', 'Accepted']
['s792678704', 's639792057']
[9116.0, 9136.0]
[28.0, 24.0]
[164, 173]
p02693
u837677955
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`.
['4\n5 7', "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 break\n\nif flag:\n print('OK')\nelse:\n print('NG')"]
['Runtime Error', 'Accepted']
['s511539284', 's503731492']
[9008.0, 9176.0]
[22.0, 19.0]
[5, 185]
p02693
u837885766
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\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n\n ans = k\n while(True):\n # print(ans)\n if ans >= a and ans <= b:\n print(\'Yes\')\n break\n elif ans > b:\n print(\'No\')\n break\n else:\n ans = ans + k\n\nif __name__ == "__main__":\n main()\n', '# -*- coding: utf-8 -*-\n\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n\n ans = k\n while(True):\n # print(ans)\n if ans >= a and ans <= b:\n print(\'OK\')\n break\n elif ans > b:\n print(\'NG\')\n break\n else:\n ans = ans + k\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s305293104', 's956152720']
[9164.0, 9168.0]
[22.0, 25.0]
[393, 392]
p02693
u839110000
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")\n']
['Wrong Answer', 'Accepted']
['s850725688', 's326908242']
[9192.0, 9156.0]
[22.0, 22.0]
[142, 142]
p02693
u841021102
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 k % i == 0:\n print("OK")\n else:\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 ans = 0\nif ans = 0:\n print("OK)\nelse:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\nans = 0\nfor i in range(a, b+1):\n if i % k == 0:\n ans = 1\nif ans == 1:\n \t print("OK")\nelse:\n \tprint("NG")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s376138908', 's545883221', 's859205088']
[9144.0, 8964.0, 9104.0]
[30.0, 24.0, 29.0]
[130, 147, 159]
p02693
u841531687
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')", "k = int(input())\na, b = map(int, input().split())\n\nif a % k != 0:\n if a <= (a//k + 1)*k <= b:\n print('OK')\n else:\n print('NG')\nelse:\n if a <= (a//k)*k <= b:\n print('OK')\n else:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s978008881', 's859665908']
[9160.0, 9180.0]
[22.0, 19.0]
[114, 229]
p02693
u842476069
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, M, Q = map(int, input().split())\nl = []\nfor i in range(Q):\n l.append(list(map(int, input().split())))\n\nA_N = [[i] for i in range(1, M+1)]\nfor i in range(N-1):\n a = []\n for j in range(len(A_N)):\n last = A_N[j][-1]\n for k in range(last, M+1):\n a.append(A_N[j] + [k])\n A_N = a\n\nhigh_score = 0\nfor i in range(len(A_N)):\n A = A_N[i]\n score = 0\n for j in range(len(l)):\n aj, bj, cj, dj = l[j]\n if A[bj-1]-A[aj-1] == cj:\n score += dj\n high_score = max(high_score, score) \n \nprint(high_score)', "K = int(input())\nA, B = map(int, input().split())\n\nx = list(range(A, B+1))\n\nfor i in x:\n if i % K == 0:\n print('OK')\n break\n elif i == B:\n print('NG')\n else:\n pass"]
['Runtime Error', 'Accepted']
['s086466538', 's952863591']
[9248.0, 9164.0]
[22.0, 21.0]
[550, 178]
p02693
u842901156
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())\nlist = list(map(int,input().split()))\na=list[0]\nb=list[1]\nfor i in range(a,b):\n for j in range(99999):\n j*k==i\n break\n break\n ', 'k = int(input())\nlist = list(map(int,input().split()))\na=list[0]\nb=list[1]\nfor j in range(10000):\n for i in range(a,b):\n if j*k==i:\n print("OK")\n break\n break', 'x = int(input())\nfor i in range(10000):\n if (1.01)**i==0.01*x:\n print(i)', 'k = int(input())\nlist = list(map(int,input().split()))\na=list[0]\nb=list[1]\n\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n break\nelse:\n print("NG")\n\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s194301858', 's438954017', 's733800292', 's579815379']
[9168.0, 9168.0, 9412.0, 9000.0]
[20.0, 21.0, 23.0, 23.0]
[151, 173, 76, 161]
p02693
u845573105
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\nX = int(input())\ny = 100\nn = 0\nwhile(y<X):\n y = int(y*1.01)\n n += 1 \nprint(n)', 'K = int(input())\nA, B = map(int, input().split())\nN = B - A\nif B%K-N<=0:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s635524880', 's199167893']
[9156.0, 9160.0]
[20.0, 23.0]
[91, 106]
p02693
u845847173
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().split())\na, b = map(int, input().split())\n\nans = 0\nfor i in range(a,b):\n if i%k == 0:\n ans += 1\n else:\n ans += 0\nif ans >= 1:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\n\nans = 0\nif a == b:\n if a%k == 0:\n ans += 1\n else:\n ans += 0\nelse:\n for i in range(a,b + 1):\n if i%k == 0:\n ans += 1\n else:\n ans += 0\nif ans >= 1:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s326691965', 's686849158']
[8980.0, 9188.0]
[24.0, 22.0]
[199, 293]
p02693
u853728588
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 = b + 1\n \nfor i in range(a, B):\n\tif i % k == 0:\n \tprint("OK")\n \tbreak\nelse:\n\tprint("NG")', 'k = int(input())\na, b = map(int, input().split())\nB = b + 1\n \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())\nbetween = a - b + 1\n\nif between >= k:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na, b = list(map, int(input()))\nB = b + 1\n\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())\nB = b + 1\n \nfor i in range(a, B):\n\tif i % k == 0:\n \tprint("OK")\n \tbreak\nelse:\n\tprint("NG")', 'k = int(input())\na, b = map(int, input().split())\n\n \nfor i in range(a, b+1):\n\tif i % k == 0:\n \tprint("OK")\n \tbreak\nelse:\n\tprint("NG")', "k = int(input())\na, b = map(int, input().split())\nB = b+1\nfor x in range(a, B):\n if x % k == 0:\n print('OK')\n break\nelse:\n print('NG')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s090450723', 's131442959', 's224682878', 's403595351', 's812110992', 's996055688', 's720804508']
[9012.0, 9064.0, 9148.0, 9100.0, 8936.0, 9008.0, 9104.0]
[24.0, 25.0, 24.0, 23.0, 21.0, 26.0, 21.0]
[146, 140, 121, 137, 146, 139, 154]
p02693
u854623825
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 a<= k <=b:\n print("OK")\nelse:\n print("NG")', 'k= int(input())\na,b = map(int,input().split())\ncount = 0\n\nfor i in range(a,b+1):\n if i%k==0:\n count +=1\n\nif count >=1:\n print("OK")\nif count==0:\n print("NG")']
['Wrong Answer', 'Accepted']
['s385194513', 's895493804']
[9160.0, 9180.0]
[20.0, 21.0]
[94, 163]
p02693
u854992222
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, 1):\n print(i)\n if i % k == 0:\n print('OK')\n exit()\nprint('NG')", "k = int(input())\na, b = map(int, input().split())\nfor i in range(a, b+1, 1):\n if i % k == 0:\n print('OK')\n exit()\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s583931952', 's369885431']
[9176.0, 9168.0]
[23.0, 23.0]
[155, 142]
p02693
u855380359
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(1000):\n j = k*i - a\n if a <= j and j <= b:\n print('OK')\n break\n elif:\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 break\n else:\n print('NG')", "k = int(input())\na, b = map(int, input().split())\nans = 0\nfor i in range(a, b+1):\n if i%k == 0:\n print('OK')\n else:\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 break\nelse:\n print('NG')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s047207021', 's740245923', 's928216135', 's939870465']
[8952.0, 9008.0, 9152.0, 9096.0]
[21.0, 20.0, 22.0, 21.0]
[167, 138, 136, 134]
p02693
u856564576
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`.
['ut())\na, b = map(int, input().split(" "))\nngflag = True\nwhile(a <= b):\n if a % k == 0:\n print("OK")\n ngflag = False\n break\n a += 1\nif ngflag:\n print("NG")\n', 'k = int(input())\na, b = map(int, input().split(" "))\nngflag = True\nwhile(a <= b):\n if a % k == 0:\n print("OK")\n ngflag = False\n break\n a += 1\nif ngflag:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s238482129', 's370563977']
[9004.0, 9120.0]
[23.0, 29.0]
[185, 196]
p02693
u857377354
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()))\nans = "NG"\nfor i in range(A-B+1):\n Temp = A+i\n if(Temp%K==0):\n ans = "OK"\nprint(ans)\n', 'K = int(input())\nA,B = list(map(int, input().split()))\nans = "NG"\nfor i in range(B-A+1):\n Temp = A+i\n if(Temp%K==0):\n ans = "OK"\nprint(ans)']
['Wrong Answer', 'Accepted']
['s998407381', 's022532524']
[9120.0, 9180.0]
[24.0, 20.0]
[145, 144]
p02693
u857673087
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 or B-A >= K\u3000and A <= K <= B:\n print('OK')\nelse:\n print('NG')", 'K = int(input())\nA,B = map(int,input().split())\ncount=0\n\nfor i in range(A,B+1):\n if i%K==0:\n count+=1\nprint("NG" if count==0 else "OK")']
['Runtime Error', 'Accepted']
['s049286932', 's851494695']
[9024.0, 9172.0]
[21.0, 20.0]
[134, 139]
p02693
u859773831
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 solve(a,b,k):\n for x in range(a,b+1):\n if a%k==0:\n return "OK"\n return "NG"\n\nk=int(input())\na,b = map(int,input().split())\nprint(solve(a,b,k))', 'def solve(a,b,k):\n for x in range(a,b+1):\n if x%k==0:\n return "OK"\n return "NG"\n\nk=int(input())\na,b = map(int,input().split())\nprint(solve(a,b,k))\n']
['Wrong Answer', 'Accepted']
['s205893384', 's792979507']
[9168.0, 9160.0]
[22.0, 23.0]
[170, 171]
p02693
u860966226
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())\ndata = input.split()\na = data[0]\nb = data[1]\n\nif a - b > k:\n print("OK")\nelse:\n ans = False\n for i in range(a, b + 1):\n if i % k == 0:\n ans = True\n print("OK" if ans else "NG")\n', 'k = int(input())\ndata = input().split()\na = int(data[0])\nb = int(data[1])\n \nans = False\n \nif abs(a - b) > k:\n ans = True\nelse:\n for i in range(a, b + 1):\n if i % k == 0:\n ans = True\n break\nprint("OK" if ans else "NG")\n']
['Runtime Error', 'Accepted']
['s954431139', 's261418390']
[9148.0, 9064.0]
[21.0, 22.0]
[206, 233]
p02693
u861886710
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 \nfor i in range(A, B+1):\n if i%K == 0:\n print("OK")\n exit\nprint("NG")', 'K = int(input())\nA, B = list(map(int, input().split()))\n\nfor i in range(A, B+1):\n if i%K == 0:\n print("OK")\n end\nprint("NG")', 'import sys\nK = int(input())\nA, B = list(map(int, input().split()))\n \nfor i in range(A, B+1):\n if i%K == 0:\n print("OK")\n sys.exit( )\nprint("NG")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s231746879', 's713545018', 's603553695']
[9204.0, 8988.0, 9108.0]
[23.0, 23.0, 21.0]
[133, 133, 151]
p02693
u864101743
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 = a // k * k\nif a <= c <= b or a <= (c+k) <= b:\n print('ok')\nelse:\n print('NG')\n", "k = int(input())\na, b = map(int, input().split())\nc = a // k * k\nif a <= c <= b or a <= (c+k) <= b:\n print('OK')\nelse:\n print('NG')\n"]
['Wrong Answer', 'Accepted']
['s021759286', 's574775529']
[9096.0, 9160.0]
[22.0, 21.0]
[138, 138]
p02693
u865108308
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 num in range(a, b+1):\n if num % k == 0:\n print("OK")\n else:\n print("NG")\n ', 'K = int(input())\nA, B = map(int, input().split())\n\nif A <= K <= B:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\n\nif k <= b:\n if a <= k:\n print("OK")\nelse:\n print("NG")', 'x = int(input())\nmoney = 100\nyear = 0\n\nwhile money < x:\n money += (money // 100)\n year += 1\n \nprint(year)\n', 'k = int(input())\na, b = map(int, input().split())\nflag = 0\n\nfor num in range(a, b+1):\n if num % k == 0:\n flag = 1\n \nif flag == 1:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s247779306', 's316540956', 's677511560', 's829869238', 's185951453']
[9160.0, 9092.0, 9120.0, 9080.0, 9052.0]
[22.0, 21.0, 21.0, 21.0, 21.0]
[138, 100, 110, 109, 170]
p02693
u868606077
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\n\n#print(A)\n\n\nfor num in range(A, B):\n print(num)\n if num % K == 0:\n print("OK")\n sys.exit()\n\n\nprint("NG")\n', 'import sys\nK = int(input())\nA, B = map(int, input().split())\n\n\n#print(A)\n\n\nfor num in range(A, B):\n print(num)\n if num % K == 0:\n print("Yes")\n sys.exit()\n\n\nprint("No")\n', 'import sys\nK = int(input())\nA, B = map(int, input().split())\n\n\n#print(A)\n\n\nfor num in range(A, B+1):\n #print(num)\n if num % K == 0:\n print("OK")\n sys.exit()\n\n\nprint("NG")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s027946068', 's233572032', 's048257363']
[9104.0, 9100.0, 9088.0]
[23.0, 21.0, 24.0]
[194, 195, 197]
p02693
u870736713
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())\nimport numpy as np\nprint(max([int(A*x/B)-A*int(x/B) for x in np.arange(0,N+1,max((B/A),1))])', "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')"]
['Runtime Error', 'Accepted']
['s545398092', 's256393465']
[9044.0, 9172.0]
[23.0, 24.0]
[123, 133]
p02693
u871176343
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 = list(map(int,input().split()))[0]\nA,B = list(map(int,input().split()))\n\n\ndef is_ok(k, a, b):\n for i in range(a, b+1):\n if i % k == 0:\n return True\n return False\n\n\nprint(is_ok(K, A, B))', "K = list(map(int,input().split()))[0]\nA,B = list(map(int,input().split()))\n\ndef is_ok(k, a, b):\n for i in range(a, b+1):\n if i % k == 0:\n return True\n return False\n\nprint('OK' if is_ok(K, A, B) else 'NG')"]
['Wrong Answer', 'Accepted']
['s991994086', 's890595801']
[9204.0, 9184.0]
[22.0, 22.0]
[198, 214]
p02693
u871841829
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 K%i == 0:\n print("OK")\n exit(0)\nprint("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\n\nfor i in range(A, B +1):\n if K%i == 0:\n print("Yes")\n exit(0)\n\nprint("No")', '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(0)\n\nprint("NG")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s015697889', 's297129409', 's270119090']
[9056.0, 8932.0, 9156.0]
[32.0, 30.0, 31.0]
[131, 132, 132]
p02693
u872528383
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`.
["text = input()\nrows = text.split('\\n')\nk = int(rows[0])\na = int(rows[1].split(' ')[0])\nb = int(row[1].split(' ')[1])\nfor i in range(a, b + 1):\n if i % k == 0:\n print('OK')\n break\nelse:\n print('NG')\n", "row1 = input()\nrow2 = input()\nk = int(row1)\na = int(row2.split(' ')[0])\nb = int(row2.split(' ')[1])\nfor i in range(a, b + 1):\n if i % k == 0:\n print('OK')\n break\nelse:\n print('NG')"]
['Runtime Error', 'Accepted']
['s429708929', 's967274649']
[9180.0, 9184.0]
[24.0, 19.0]
[218, 200]
p02693
u874320250
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())\nprint('OK' if B-A<=K else 'NG')", "K = int(input())\nA, B = map(int, input().split())\nprint('OK' if B-A<=K-1 else 'NG')", "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')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s656804752', 's944517226', 's428896859']
[9084.0, 8952.0, 9164.0]
[31.0, 28.0, 29.0]
[81, 83, 150]