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
u247114740
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())\nfor i in range(a, b + 1):\n\tif(i % k == 0):\n \tprint('OK')\n exit()\nprint('NG') ", "n = int(input())\na, b = map(int, input().split())\nfor i in range(a, b + 1, 1):\n if(i % n == 0):\n print('OK')\n exit()\nprint('NG') "]
['Runtime Error', 'Accepted']
['s229001634', 's631081602']
[8960.0, 9168.0]
[23.0, 24.0]
[144, 139]
p02693
u247680229
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=list(map(int, input().split()))\ni=0\nfor i in range(A,B+1):\n if i%K==0:\n print("Yes")\n i=1\nif i==0:\n \n print("No") ', 'K=int(input())\n \nA,B=list(map(int, input().split()))\ni=0\nfor i in range(A,B+1):\n if i%K==0:\n print("Yes")\n i=1\n break\nif i==0:\n \n print("No") ', 'import sys\nK=int(input())\n\nA,B=list(map(int, input().split()))\n\nfor i in range(A,B+1):\n if i%K==0:\n \n print("Yes")\n sys.exit()\n\nprint("No")', 'K=int(input())\n \nA,B=list(map(int, input().split()))\nn=0\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n n=1\n break\nif n==0:\n print("NG")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s039955544', 's047651625', 's263661789', 's937122912']
[9172.0, 9180.0, 9108.0, 9180.0]
[21.0, 21.0, 24.0, 21.0]
[159, 172, 149, 165]
p02693
u249218427
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\nif A%K==0 or B%K==0 or A//K<B//K:\n print('Yes')\nelse:\n print('No')", "# -*- coding: utf-8 -*-\n\nK = int(input())\n\nA,B = map(int, input().split())\n\nif A%K==0 or B%K==0 or A//K<B//K:\n print('OK')\nelse:\n print('NG')\n"]
['Wrong Answer', 'Accepted']
['s588092672', 's428499208']
[9168.0, 9160.0]
[18.0, 22.0]
[144, 144]
p02693
u250734103
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())\nc = 0\n\nfor i in range(A, B+1):\n if i % K == 0:\n c += 1\nif c > 0:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nc = 0\n\nfor i in range(A, B+1):\n if i % K == 0:\n c += 1\nif c > 0:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s514536506', 's305347926']
[9172.0, 9176.0]
[20.0, 23.0]
[153, 161]
p02693
u250828304
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 if i // K == 0:\n print("OK")\n sys.exit()\n \nprint(\'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()\n \nprint(\'NG\')']
['Wrong Answer', 'Accepted']
['s809418431', 's440548175']
[9104.0, 9108.0]
[23.0, 20.0]
[147, 146]
p02693
u250944591
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 = input()\nA = input()\nB = input()\n\ni = 1\nr = i * K\nwhile r <= B:\n if r >= A:\n print('YES')\n elif r < A:\n i += 1\n r = i * K\n else:\n print('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('YES')\n else:\n print('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')\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 == 0:\n print('OK')\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 == 0:\n print('OK')\n break\nelse:\n print('NG')\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s016565278', 's076817107', 's475087534', 's875006257', 's899372830', 's064124531']
[9104.0, 9112.0, 9164.0, 9188.0, 9176.0, 9096.0]
[19.0, 21.0, 20.0, 21.0, 23.0, 20.0]
[141, 160, 131, 127, 130, 137]
p02693
u252071027
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\nelse:\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()\nprint("NG")']
['Runtime Error', 'Accepted']
['s416325078', 's326147350']
[8964.0, 9076.0]
[23.0, 25.0]
[138, 133]
p02693
u260053458
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 >= 1:\n print('OK')\nif A == B and A%K ==0:\n print('OK')\nelse:\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 >= 1:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s636713475', 's584644102']
[9172.0, 9172.0]
[22.0, 22.0]
[143, 158]
p02693
u260291412
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())\nimport math\na,b,n=map(int,input().split())\nif(n<=b):\n print(math.floor((a*n)/b))\nelse:\n print(math.floor((a*b-1)/b))\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'\n break\nprint(ans)"]
['Runtime Error', 'Accepted']
['s037070727', 's417854124']
[9152.0, 9172.0]
[23.0, 19.0]
[142, 142]
p02693
u261082314
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 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 break\nif i%k == 0:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s545423089', 's499011026']
[9184.0, 9168.0]
[23.0, 22.0]
[123, 140]
p02693
u263483399
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\nX = int(input())\nnow_money=100\ni = 0\n\nwhile X > now_money:\n now_money += now_money *0.01\n now_money = math.floor(now_money)\n i += 1\nprint(i)', '\nK = int(input())\nA , B = list(map(int,input().split()))\n\nfor i in range(A , B+1):\n print(i)\n if ( i % K ) == 0 :\n print("OK")\n exit()\nprint("NG")', '\nK = int(input())\nA , B = list(map(int,input().split()))\n\nfor i in range(A , B+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())\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', 'Accepted']
['s315507286', 's637616439', 's904935723', 's009706952']
[9032.0, 9176.0, 8932.0, 9168.0]
[29.0, 28.0, 30.0, 27.0]
[162, 166, 166, 142]
p02693
u263660661
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:\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 exit()\n\nprint("NG")\n\n\n']
['Wrong Answer', 'Accepted']
['s553889836', 's745669550']
[9156.0, 9164.0]
[20.0, 24.0]
[81, 144]
p02693
u264113350
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(i) for i in input().split(" ")]\nif A%K == 0\u3000or (A//K+1)*K <= B:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA,B=[int(i) for i in input().split(" ")]\nif A%K == 0:\n print("OK")\nelif (A//K+1)*K <= B:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s782269041', 's938175572']
[9020.0, 9176.0]
[21.0, 23.0]
[129, 146]
p02693
u264505326
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())\nf=1\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%n==0:\n print('yes')\n f=1\n break\nif f==0:\n print('no)", "n=int(input())\nf=0\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%n==0:\n print('OK')\n f=1\n break\nif f==0:\n print('NG')\n"]
['Runtime Error', 'Accepted']
['s120525355', 's362766064']
[8980.0, 9104.0]
[25.0, 23.0]
[140, 141]
p02693
u266014018
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\ninput = sys.stdin.readline\n\nN = int(input())\nA,B = map(int,input().split())\nred = B -A + 1\nif N <= red:\n print('Yes')\nelse:\n print('No')", "import sys\n\ninput = sys.stdin.readline\n\nN = 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('No')", "import sys\n\ninput = sys.stdin.readline\n\nN = int(input())\nA,B = map(int,input().split())\nfor i in range(A,B+1):\n if i%N == 0:\n print('OK')\n sys.exit(0)\nprint('NG')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s021635393', 's169026501', 's015373978']
[9164.0, 9176.0, 9180.0]
[24.0, 22.0, 22.0]
[154, 174, 179]
p02693
u267933821
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")\nelif (a-b)==0 and k==1:\n print("OK")\nelif (a-b)>=k:\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()\nprint('NG')"]
['Wrong Answer', 'Accepted']
['s218139737', 's916042564']
[9180.0, 9104.0]
[24.0, 25.0]
[166, 136]
p02693
u271123940
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 else:\n print("NG")\n break', 'k = int(input())\na, b = map(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())\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())\nre = False\nfor i in range(a, b+1):\n if (i % k) == 0:\n re = True\n break\nif re == True:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s436131686', 's771920147', 's973144450', 's639548938']
[9172.0, 9096.0, 9168.0, 9164.0]
[21.0, 23.0, 22.0, 20.0]
[172, 135, 170, 190]
p02693
u272457181
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 a, b = map(int,input().split())\n for i in range(a, b):\n if i%k ==0:\n print('OK')\n return\n print('NG')\n return\n ", "k = int(input())\na, b = int(input())\nif k <= b-a+1:\n print('Yes')\nelse:\n print('No')", "k = int(input())\na, b = map(int,input().split())\nif k <= b-a+1:\n print('Yes')\nelse:\n print('No')", "def main():\n k = int(input())\n a, b = map(int,input().split())\n for i in range(a, b+1):\n if i%k ==0:\n print('OK')\n return\n print('NG')\n return\n \nmain()"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s039300192', 's188895916', 's280516839', 's974183052']
[8856.0, 9100.0, 9116.0, 9020.0]
[23.0, 23.0, 28.0, 28.0]
[150, 86, 98, 169]
p02693
u272682534
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\ndef judge():\n for x in range(A,B+1):\n if x%K==0:\n return 'Yes'\n return 'No'\n \nprint(judge())\n\n", "K=int(input())\nA,B=map(int,input().split())\n\ndef judge():\n for x in range(A,B+1):\n if x%K==0:\n return 'OK'\n return 'NG'\n \nprint(judge())\n\n"]
['Wrong Answer', 'Accepted']
['s239610825', 's963860201']
[9100.0, 9160.0]
[22.0, 23.0]
[153, 152]
p02693
u273345915
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=K\ni=1\nflg=False\nwhile x<=B:\n if A<=x:flg=True;break\n i+=1\n x=K*i\nif flg:print("Yes")\nelse: print("No")', 'import math\nK=int(input())\nA,B=map(int,input().split())\nl=math.floor(B/K)*K\nif l>=A: print("OK")\nelse: print("NG")']
['Wrong Answer', 'Accepted']
['s954869494', 's435304489']
[9112.0, 9000.0]
[23.0, 21.0]
[157, 114]
p02693
u274615057
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`.
['\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n for i in range(a, b+1):\n if i % k == 0:\n print(\'Yes\')\n break\n\n\nif __name__ == "__main__":\n main()\n', '\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n flg = False\n for i in range(a, b+1):\n if i % k == 0:\n print(\'OK\')\n flg = True\n break\n if not flg:\n print(\'NG\')\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s509457461', 's234450342']
[9092.0, 9104.0]
[28.0, 27.0]
[205, 279]
p02693
u276588887
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().sprit())\nans = False\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = True\n\nif ans : print('OK')\nelse : print('NG')\n \n", "k = int(input)\na,b = map(int, input().sprit())\nans = False\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = True\n\nif ans==True : print('OK')\nelse : print('NG')\n \n", "k = int(input)\na,b = map(int, input().sprit())\nans = False\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = True\n break\n \nif ans : print('OK')\nelse print('NG')\n ", "k = int(input())\na,b = map(int, input().sprit())\nans = False\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = True\n\nif ans==True : print('OK')\nelse : print('NG')\n \n", "k = int(input())\na,b = map(int, input().sprit())\nans = 'NG'\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = 'OK'\n\nprint(ans)\n\n \n", "k = int(input)\na,b = map(int, input().sprit())\nans = False\nfor i in range(a,b+1) :\n if i%k == 0 : \n ans = True\n\nif ans : print('OK')\nelse print('NG')\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'\n\nprint(ans)\n\n \n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s097435571', 's277685635', 's370696702', 's788766762', 's866628582', 's982486301', 's185788797']
[8976.0, 9028.0, 8884.0, 9164.0, 9160.0, 8960.0, 8952.0]
[24.0, 25.0, 25.0, 22.0, 21.0, 20.0, 27.0]
[161, 167, 172, 169, 134, 159, 133]
p02693
u276686572
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())\n\nlow, hi = map(int, input().split())\n\nstart = a * low//a\n\nboolean = False\n\nwhile not (start > hi):\n if lo <= start <= hi: \n boolean = True\n break\n\nif boolean: print("OK")\nelse: print("NG")', 'a = int(input())\n\nlow, hi = map(int, input().split())\n\nstart = a * int(low//a)\n\nboolean = False\n\nwhile not (start > hi):\n print(start)\n if low <= start <= hi: \n boolean = True\n break\n start += a\n\nif boolean: print("OK")\nelse: print("NG")\n', 'a = int(input())\n\nlow, hi = map(int, input().split())\n\nstart = a * int(low//a)\n\nboolean = False\n\nwhile not (start > hi):\n if low <= start <= hi: \n boolean = True\n break\n start += a\n\nif boolean: print("OK")\nelse: print("NG")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s454564396', 's723989460', 's384331498']
[9132.0, 9120.0, 9152.0]
[23.0, 32.0, 25.0]
[212, 247, 232]
p02693
u277104886
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()\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')"]
['Runtime Error', 'Accepted']
['s762562585', 's539803426']
[9172.0, 9132.0]
[20.0, 23.0]
[139, 139]
p02693
u277314812
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\nfor cnt in range(int(b)):\n\n if cnt+1 >= int(a):\n if cnt+1 % int(k) == 0 or int(k) == 1:\n print("OK")\n exit()\nprint("NO")\n', 'k = input()\na, b = input().split()\n\nfor cnt in range(int(b)):\n if cnt+1 >= int(a):\n # print(cnt+1,int(k),int(cnt+1) % int(k))\n\n if int(cnt+1)% int(k) == 0 or int(k) == 1:\n print("OK")\n exit()\nprint("NG")']
['Wrong Answer', 'Accepted']
['s842738347', 's695603542']
[9172.0, 9120.0]
[20.0, 22.0]
[189, 241]
p02693
u277353449
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==0|b%k==0|a//k-b//k!=0):\n print("OK")\nelse:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nif(a%k==0 or b%k==0 or ((a//k)-(b//k))!=0):\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s793302060', 's568924793']
[9192.0, 9136.0]
[21.0, 22.0]
[109, 121]
p02693
u279735925
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(int(A / K))\nprint(int(B / K))', "K = int(input())\nA, B = map(int, input().split())\nA1 = int(A / K)\nA2 = int(A % K)\nB1 = int(B / K)\n# B2 = B % K\nif (B1 - A1) >= 1 or A2 == 0:\n print('OK')\nelse:\n print('NG')\n"]
['Wrong Answer', 'Accepted']
['s994921410', 's440309573']
[8956.0, 9172.0]
[20.0, 25.0]
[85, 175]
p02693
u281829807
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():\n k=int(input())\n a,b = map(int,input().split())\n for i in range(1000):\n if(a<=i*k and i*k <= b):\n print("Yes")\n return 0\n print("No") \n return 0\n\nmain()', 'def main():\n k=int(input())\n a,b = map(int,input().split())\n for i in range(1000):\n if(a<=i*k and i*k <= b):\n print("OK")\n return 0\n print("NG") \n return 0\n\nmain()']
['Wrong Answer', 'Accepted']
['s654052982', 's004763644']
[9104.0, 9116.0]
[20.0, 27.0]
[182, 181]
p02693
u283929013
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 = k\nwhile(c <= b):\n\tif a <= k <= b:\n\t\tprint("OK")\n\t\tquit()\n c += k\nprint("NG")', 'k = int(input())\na,b = map(int,input().split())\nif a % k == 0:\n c = a\nelse:\n c = (a // k) * k + k\nif c <= b:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s987807416', 's828411553']
[8844.0, 9176.0]
[26.0, 30.0]
[131, 152]
p02693
u287400365
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())\nans = 0\nfor i in range(1,min(N,B)):\n X = math.floor(A*i//B)-A*math.floor(i//B)\n if(X>=ans):\n ans = X\nprint(ans)\n', 'K = int(input())\nA, B = map(int,input().spilt())\nif(A<=(B//K)*K){\n print("OK")\n}\nelse{\n print("NG")\n}\n', 'N = int(input())\nA, B = map(int,input.split())\nif(A<=B/K*K){\n print("OK")\n}\nelse{\n print("NG")\n}', 'K = int(input())\nA, B = map(int,input.spilt())\nif(A<=B/K*K){\n print("OK")\n}\nelse{\n print("NG")\n}', 'K = int(input())\nA, B = map(int,input().spilt())\nif(A<=B/K*K){\n print("OK")\n}\nelse{\n print("NG")\n}\n', "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\nelse:\n print('NG')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s374248692', 's609455056', 's630389313', 's740943609', 's983011586', 's552783007']
[9148.0, 9024.0, 9028.0, 9020.0, 9008.0, 9160.0]
[21.0, 22.0, 23.0, 22.0, 24.0, 23.0]
[164, 104, 98, 98, 101, 136]
p02693
u287660527
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 = input()\nx = x.split()\nk = int(x[0])\na = int(x[1])\nb = int(x[2])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')", "x = input()\nk = int(x[0,0])\na = int(x[1, 0])\nb = int(x[1, 1])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')", "x = input()\nx = x.split()\nx = x.split('/')\nk = int(x[0])\na = int(x[1])\nb = int(x[2])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')\n", "x = input()\nx = x.split()\nx = x.split(\\n)\nk = int(x[0])\na = int(x[1])\nb = int(x[2])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')\n", "k = int(input())\na,b = map(int,input().split())\nprint(a,b)\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')", "x = input()\nx = x.split()\nk = int(x[0])\na = int(x[1])\nb = int(x[2])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')\n ", "x = input()\nx = x.split()\nx = x.split('\\n')\nk = int(x[0])\na = int(x[1])\nb = int(x[2])\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')\n", "k = int(input())\na,b = int(input().split())\nif k <= b - a:\n print('OK')\nelse:\n if b % k <= a % k:\n print('OK')\n else:\n print('NG')\n ", "k = int(input())\na,b = map(int,input().split())\nif b // k > a // k or a % k == 0:\n print('OK')\nelse:\n print('NG')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s060047675', 's160432522', 's213165891', 's240216314', 's404220678', 's483023013', 's573212779', 's923190347', 's883478869']
[9128.0, 8884.0, 9116.0, 8940.0, 9172.0, 9164.0, 8944.0, 9160.0, 9160.0]
[23.0, 24.0, 22.0, 20.0, 21.0, 21.0, 20.0, 22.0, 23.0]
[163, 157, 181, 180, 154, 167, 182, 143, 115]
p02693
u288147331
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 break\nelse:\n print("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 break\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s883667628', 's969299946']
[9168.0, 9192.0]
[24.0, 22.0]
[150, 149]
p02693
u290886932
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\nl = 0\nret = \'NG"\nwhile l <= B:\n if l >= A:\n ret = \'OK\'\n l += K\n \nprint(ret)', "K = int(input())\nA, B = map(int, input().split())\n \nl = 0\nret = 'NG'\nwhile l <= B:\n if l >= A:\n ret = 'OK'\n l += K\n \nprint(ret)"]
['Runtime Error', 'Accepted']
['s770497005', 's265106631']
[8960.0, 9176.0]
[23.0, 19.0]
[132, 133]
p02693
u291932618
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\nLists = list(range(a, b+1))\nfor i in Lists:\n if i % k == 0:\n print("OK")\n c = 1\nif c == 0:\n print("NG")\n', 'k = int(input())\na, b = map(int,input().split())\nc = 0\nLists = list(range(a, b+1))\nfor i in Lists:\n if i % k == 0:\n print("OK")\n c += 1\n break\nif c == 0:\n print("NG")']
['Wrong Answer', 'Accepted']
['s055072165', 's101982393']
[9176.0, 9200.0]
[23.0, 22.0]
[177, 193]
p02693
u293528155
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 = input()\nB = input()\n\nlist=[]\nup = int(A)\n\nfor i in range(int(B)-int(A)):\n\tlist = list + [up]\n\tup += 1\nlist = list + [up]\n\ncount = 0\n\nfor t in list:\n\tif int(t) % int(K) ==0:\n \t\tcount+=1\n\nif count == 0:\n print('NG')\nelse:\n print('OK')\n \t\t\n", "K = input()\nA, B = map(int, input().split())\n\nlist=[]\nup = int(A)\n\nfor i in range(int(B)-int(A)):\n\tlist = list + [up]\n\tup += 1\nlist = list + [up]\n\ncount = 0\n\nfor t in list:\n\tif int(t) % int(K) ==0:\n \t\tcount+=1\n\nif count == 0:\n print('NG')\nelse:\n print('OK')\n \t\t\n"]
['Runtime Error', 'Accepted']
['s711871927', 's668867582']
[9080.0, 9184.0]
[21.0, 22.0]
[259, 268]
p02693
u295030042
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='NG'\nfor i in range(A,B+1):\n if i%K==0:\n a=='OK'\n break\nprint(a)\n ", "K=int(input())\nA,B=map(int,input().split())\na='NG'\nfor i in range(A,B+1):\n if i%K==0:\n a=='OK'\n break\nprint(a)\n ", "K=int(input())\nA,B=map(int,input().split())\na='NG'\nfor i in range(A,B+1):\n if i%K==0:\n a=OK'\n break\nprint(a)\n \n", "K=int(input())\nA,B=map(int,input().split())\na='NG'\nfor i in range(A,B+1):\n if i%K==0:\n a='OK'\n break\nprint(a)\n "]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s060644556', 's802375159', 's976925164', 's338323341']
[9144.0, 9136.0, 9008.0, 9152.0]
[30.0, 29.0, 22.0, 28.0]
[118, 120, 119, 119]
p02693
u296082800
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())\ndef golf(N,a,b):\n for i in range(a,b+1):\n if i%N==0:\n return "OK"\n else:\n return "NG"\nprint(golf(N,a,b))', 'N=int(input())\na, b = map(int, input().split())\ndef golf(N,a,b):\n for i in range(a,b+1):\n if i%N==0:\n return "OK"\n return "NG"\nprint(golf(N,a,b))']
['Wrong Answer', 'Accepted']
['s972865740', 's773347114']
[9048.0, 9128.0]
[20.0, 21.0]
[169, 155]
p02693
u297080498
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, B, N= (int(x) for x in input().split())\nmax = 0\nx = B * math.floor(N/B) - 1\nif x == -1:\n x = N\na = math.floor(A * x / B) - A * math.floor(x / B)\nb = math.floor(A * N / B) - A * math.floor(N / B)\nif a > b:\n print(a)\nelse:\n print(b)', 'import math\n\nk = int(input())\na, b = (int(x) for x in input().split())\nouta = math.floor(a / k)\noutb = math.floor(b / k)\nif outb == 0:\n print("NG")\nelif outa == outb and a != b and outa != a / k:\n print("NG") \nelse:\n print("OK")']
['Runtime Error', 'Accepted']
['s752801391', 's398792727']
[9192.0, 9188.0]
[20.0, 22.0]
[255, 237]
p02693
u298338447
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(lambda x:int(x),input().split())\n\nflag=False\ni=0\nnum=0\nwhile num<=B and num>=A:\n\tnum=K*i\n\tif num>=A and num<=B:\n\t\tflag=True\n\t\tbreak\n\telse:\n\t\ti=i+1\n \nif flag:\n\tprint("OK")\nelse:\n\tprint("NG")\n', '\nK=int(input())\nA,B=map(lambda x:int(x),input().split())\n\nflag=False\ni=0\nnum=0\nwhile num<=B:\n\tnum=K*i\n\tif num>=A and num<=B:\n\t\tflag=True\n\t\tbreak\n\telse:\n\t\ti=i+1\n \nif flag:\n\tprint("OK")\nelse:\n\tprint("NG")\n']
['Wrong Answer', 'Accepted']
['s068557158', 's017834535']
[9120.0, 9176.0]
[23.0, 24.0]
[226, 215]
p02693
u298976461
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 = A / K\nb = c * K\nflag = False\n\nif b == B:\n flag = True\nwhile b <= B:\n b += K\n elif b <= B:\n flag = True\n\nif flag == True:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\n\nc = A / K\nb = c * K\nflag = False\n\nif b == B:\n flag = True\nb += K\n if b <= B:\n flag = True\n\nif flag == True:\n print("OK")\nelse:\n print("NG")\n', 'k = int(input())\na, b = map(int, input().split())\n\nif a <= (b // k) * k:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s365017756', 's869868199', 's677793699']
[8940.0, 8896.0, 9016.0]
[25.0, 25.0, 27.0]
[216, 198, 107]
p02693
u302084097
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=B-A+1\n\nif K>=C+1:\n print('OK')\nelif A%K==0:\n print('OK')\nelif B%K==0:\n print('OK')\nelse:\n print('NG')", 'K=int(input())\nA,B=map(int,input().split())\nC=B-A\nif C>=K-1:\n print("OK")\nelif A%K==0:\n print("OK")\nelif B%K==0:\n print("OK")\nelif A//K != B//K:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s701161623', 's857979119']
[9180.0, 9120.0]
[21.0, 20.0]
[160, 191]
p02693
u303913580
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=A\nwhile x<=B:\n if x%K==0:\n y=100\n else:\n x+=1\n y=0\nif y==100:\n print('OK')\nelse:\n print('No')\n", "K=int(input())\nA,B=map(int,input().split())\nx=A\nwhile x<=B:\n if x%K==0:\n print('OK')\n break\n else:\n x+=1\nif x==B+1:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s860877735', 's884389485']
[9072.0, 9116.0]
[2205.0, 22.0]
[153, 140]
p02693
u305781333
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(i) for i in input().split()]\n\nif B // K - A // K >= 1:\n print("Yes")\nelse:\n print("No")\n', 'K = int(input())\nA, B = [int(i) for i in input().split()]\n\nif B - A >= K:\n print("Yes")\nelse:\n print("No")\n', 'K = int(input())\nA, B = [int(i) for i in input().split()]\n\nif B // K * K >= A:\n print("OK")\nelse:\n print("NG")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s317917516', 's883666397', 's825613143']
[9156.0, 9032.0, 9108.0]
[20.0, 20.0, 22.0]
[119, 109, 113]
p02693
u306412379
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())\np = 0\nfor i in range(1, n+1):\n if p < (a*i)//b - a*(i//b):\n p = (a*i)//b - a*(i//b)\nprint(p)', "k = int(input())\na, b = map(int,input().split())\nlist1 = []\nx =(k+a-1)//k\ny = b // k\n\nfor i in range(x,y+1):\n list1.append(i)\nif list1 == []:\n print('NG')\nelse:\n print('OK')\n"]
['Runtime Error', 'Accepted']
['s137385886', 's470044588']
[9160.0, 9004.0]
[25.0, 28.0]
[133, 177]
p02693
u306497037
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"\nL = [i in i for range(1,1001) if i%k==0]\nfor j in range(a,b+1):\n if j in L:\n ans="OK"\nprint(ans)', 'k = int(input()) \na,b= map(int,input().split())\nans = "NG"\nL = []\nfor l in range(1,1001):\n if l%k == 0:\n L.append(l)\nfor j in range(a,b+1):\n if j in L:\n ans="OK"\nprint(ans)']
['Runtime Error', 'Accepted']
['s369486766', 's351689112']
[9020.0, 9124.0]
[21.0, 26.0]
[165, 192]
p02693
u307622233
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\ntxt = 'No'\ntmp = (a // k) * k\nif a == tmp or a <= tmp + k <= b:\n txt = 'Yes'\n\nprint(txt)\n", "k = int(input())\na, b = map(int, input().split())\n\ntxt = 'NG'\ntmp = (a // k) * k\nif a == tmp or a <= tmp + k <= b:\n txt = 'OK'\n\nprint(txt)\n"]
['Wrong Answer', 'Accepted']
['s484397901', 's763374851']
[9156.0, 9184.0]
[24.0, 23.0]
[143, 142]
p02693
u309120194
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\na = 100\ni = 0\nwhile a < X:\n a = int(a*1.01)\n i += 1\n\nprint(i)', "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\nprint('NO')", "K = int(input())\nA, B = map(int, input().split())\n \nans = 'NO'\nfor 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())\n \nif (B // K)*K >= A: print('OK')\nelse: print('NG')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s015727006', 's193218520', 's240524622', 's197310197']
[9108.0, 9124.0, 9176.0, 9160.0]
[27.0, 30.0, 31.0, 27.0]
[81, 130, 155, 101]
p02693
u309629016
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(input('a: ')), int(input('b: '))\n\nres = False\n\nfor i in range(a, b + 1):\n if i % k == 0:\n res = True\n break\n\nif res == True:\n print('OK')\nelse:\n print('NG')", "k = int(input('k = '))\na = int(input('a = ')); b = int(input('b = '))\n\nres = False\n\nfor i in range(a, b + 1):\n if i % k == 0:\n res = True\n break\n\nif res == True:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b = map(int, input().split())\n\nflag = False\n\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', 'Runtime Error', 'Accepted']
['s035843059', 's923663269', 's531257226']
[9192.0, 9184.0, 9164.0]
[24.0, 21.0, 21.0]
[212, 216, 191]
p02693
u309896307
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 = input().split()\n\nif int(list[0])//k != int(list[1])//k:\n print("OK")\nelse if int(list[0])%k == 0:\n print("OK")\nelse:\n print("NG")\n', 'k = int(input())\nlist = input().split()\n\nif int(list[0])//k != int(list[1])//k:\n print("OK")\nelif int(list[0])%k == 0:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s047687063', 's584477414']
[8968.0, 9164.0]
[22.0, 22.0]
[157, 154]
p02693
u313555680
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`.
['target = int(input())\npotential = input().split(" ")\nmin = int(potential[0])\nmax = int(potential[1])\n\ncan = []\nfor i in range(min,max+1):\n result = str(i/target)\n if not "." in result:\n can.append(i)\nif len(can) != 0:\n print("OK")\nelse:\n print("NG")', 'target = int(input())\npotential = input().split(" ")\nmin = int(potential[0])\nmax = int(potential[1])\n \ncan = []\nfor i in range(min,max+1):\n result = str(i/target)\n result = result.split(".")\n if result[1] == "0":\n can.append(i)\nif len(can) != 0:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s869936921', 's425989060']
[9184.0, 9196.0]
[21.0, 21.0]
[256, 285]
p02693
u315600877
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(input().split())\ncheck=False\nfor i in range(0,B-A):\n if (B-A-i)%K==0:\n check=True\nif check==True:\n print("OK")\nelse:\n print("NG")\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)']
['Runtime Error', 'Accepted']
['s722759766', 's014182225']
[9148.0, 9148.0]
[25.0, 29.0]
[161, 119]
p02693
u316390754
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())\nkk = []\nfor i in range(n):\n kk.append(math.floor(a*n/b)-a*math.floor(n/b))\n n -= 1\nprint(max(kk))\n', "k = int(input())\na,b = map(int,input().split())\n\nfor i in range(b-a+1):\n if a % k != 0:\n a += 1\n else:\n print('OK')\n break\nif a == b+1 and b%k != 0:\n print('NG')"]
['Runtime Error', 'Accepted']
['s064517767', 's834606679']
[9164.0, 9080.0]
[23.0, 26.0]
[145, 173]
p02693
u316603606
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 = 'No'\nwhile A <= B:\n if A%K == 0:\n X = 'Yes'\n break\n A += 1\nprint (X)", "K = int (input ())\nA,B = map (int, input ().split ())\nX = 'NG'\nwhile A <= B:\n if A%K == 0:\n X = 'OK'\n break\n A += 1\nprint (X)"]
['Wrong Answer', 'Accepted']
['s575722863', 's665289717']
[9160.0, 9092.0]
[25.0, 29.0]
[134, 133]
p02693
u318431908
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`.
["I = [input() for i in range(2)]\nK = int(I[0])\nS = I[1].split()\nA = int(S[0])\nB = int(S[1])\n\nna = K/A \nnb = K/B\n\nif na < nb :\n ans = 'OK'\nelse:\n ans = 'NG'\n\nprint(ans)", 'import math\nI = input().split()\nA = int(I[0])\nB = int(I[1])\nN = int(I[2])\ndef fl(x):\n return math.floor((A*x)/B) - A*math.floor(x/B)\n\nAn =fl(N)\n\nif A == 1 and B == 1 :\n An = 0\n\nif B < N :\n for i in range(B,N) :\n if i >= B+1 and fl(i) <= fl(i-1) :\n An = fl(i-1)\n break\nelif B == N :\n An = fl(N-1)\n\nprint(str(An))', 'import math\nI = input().split()\nA = int(I[0])\nB = int(I[1])\nN = int(I[2])\ndef fl(x):\n return math.floor((A*x)/B) - A*math.floor(x/B)\n\nAn = fl(N)\n\nif A == 1 and B == 1 :\n An = int(0)\n\nif B < N :\n for i in range(B,N) :\n if i >= B+1 and fl(i) <= fl(i-1) :\n An = fl(i-1)\n break\nelif B == N :\n An = fl(N-1)\n\nprint(str(An))', 'import math\nI = input().split()\nA = int(I[0])\nB = int(I[1])\nN = int(I[2])\ndef fl(x):\n return math.floor((A*x)/B) - A*math.floor(x/B)\n\nAn = fl(N)\n\nif A == 1 : \n if B == 1 :\n An = int(0)\n\nif B < N :\n for i in range(B,N) :\n if i >= B+1 and fl(i) <= fl(i-1) :\n An = fl(i-1)\n break\nelif B == N :\n An = fl(N-1)\n\nprint(str(An))', 'import math\nI = input().split()\nA = int(I[0])\nB = int(I[1])\nN = int(I[2])\ndef fl(x):\n return math.floor((A*x)/B) - A*math.floor(x/B)\n\nAn = fl(N)\n\nif B == 1 :\n An = int(0)\n\nif B < N :\n for i in range(B,N) :\n if i >= B+1 and fl(i) <= fl(i-1) :\n An = fl(i-1)\n break\nelif B == N :\n An = fl(N-1)\n\nprint(str(An))', 'import math\nI = input().split()\nA = int(I[0])\nB = int(I[1])\nN = int(I[2])\ndef fl(x):\n return math.floor((A*x)/B) - A*math.floor(x/B)\n\nif B > N :\n An =fl(N)\nelse :\n for i in range(B,N) :\n if i >= 2 and fl(i) < fl(i-1) :\n An = fl(i-1)\n break\n else:\n An = fl(N)\n\n\nprint(str(An))', "I = [input() for i in range(2)]\nK = int(I[0])\nS = I[1].split()\nA = int(S[0])\nB = int(S[1])\n\nna = A//K\nnb = B//K\n\nla = A%K\nlb = B%K\n\n#print(na)\n#print(nb)\n\nif na < nb or la == 0 or lb == 0 :\n ans = 'OK'\nelse:\n ans = 'NG'\n\nprint(ans)"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s131812333', 's499930610', 's680260727', 's684174852', 's686010194', 's870884518', 's332555244']
[9184.0, 9048.0, 9208.0, 9196.0, 9200.0, 9204.0, 9192.0]
[20.0, 22.0, 20.0, 25.0, 27.0, 23.0, 21.0]
[172, 352, 358, 369, 348, 331, 237]
p02693
u318909153
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=[int(x) for x in input().split()]\nk=0\nif N==1:\n print("OK")\nelse:\n if A[0]//int(N) == A[1]//int(N) and A[0]%int(N)==A[1]%int(N) and A[0]%int(N)==0 :\n print("OK")\n elif A[0]//int(N) != A[1]//int(N) and A[0]%int(N)!=0 :\n print("OK")\n else:\n print("NG")\n', 'N = int(input())\nA=[int(x) for x in input().split()]\nk=0\nif N==1:\n print("OK")\nelse:\n if A[0]//int(N) == A[1]//int(N) and A[0]%int(N)!=0 and A[1]%int(N)!=0:\n print("NG")\n else:\n print("OK")']
['Runtime Error', 'Accepted']
['s864657410', 's052902685']
[9040.0, 9184.0]
[22.0, 20.0]
[305, 217]
p02693
u325270534
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, A, B = map(int, input().split())\ncount = 0\nfor i in range(A, B+1):\n if i % K == 0:\n count += 1\nprint('OK' if count > 0 else 'NG')", "count, K = 0, int(input())\nA, B = map(int, input().split())\nfor i in range(A, B+1):\n if i % K == 0:\n count += 1\nprint('OK' if count > 0 else 'NG')"]
['Runtime Error', 'Accepted']
['s643680313', 's916213791']
[9104.0, 9160.0]
[23.0, 22.0]
[142, 156]
p02693
u327896646
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\n\n# print('OK')\n\n# print('NG')\n\nfor i in range(a, b + 1):\n if i % k == 0:\n print('OK')\n break\n\nprint('NG')\n", "k = int(input())\na, b = list(map(int, input().split(' ')))\n\nif k == 1:\n print('OK')\nif k > b:\n print('NG')\n\nfor i in range(a, b + 1):\n if i % k == 0:\n print('OK')\n break\n\nprint('NG')\n", "k = int(input())\na, b = list(map(int, input().split(' ')))\nres = None\n\nfor i in range(a, b + 1):\n if i % k == 0:\n res = 'OK'\n break\n else:\n res = 'NG'\n\nprint(res)\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s092425024', 's871927655', 's091881992']
[9156.0, 9112.0, 9108.0]
[25.0, 21.0, 23.0]
[214, 206, 190]
p02693
u328179275
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 k/b - k/a >= 1:\n print('OK')\nelse:\n print('NG')", 'import itertools\nn,m,q = map(int,input().split())\ngroup = []\nfor i in range(q):\n w,x,y,z = map(int,input().split())\n v = (w,x,y,z)\n group.append(v)\n\nmax_value = max(group[i][3] for i in range(len(group)))\n\n\n\nl = [i for i in range(1,m+1)]\nh = itertools.combinations_with_replacement(l,n)\narray =[]\n\nfor v in h:\n array.append(v)\n\n\n\nfor j in range(len(array)):\n total = 0\n for i in range(q):\n if array[j][group[i][1]-1] - array[j][group[i][0]-1] == group[i][2]:\n total += group[i][3]\n if total >= max_value:\n max_value = total \n\nprint(max_value)', "k = int(input())\na,b = map(int,input().split())\nc =0\nfor i in range(1,int(b/k)+1):\n if a <= i*k <= b:\n c = 1\n break\nif c ==1:\n print('OK')\nelse:\n print('NG')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s017773270', 's069565939', 's781167371']
[9156.0, 9280.0, 9180.0]
[23.0, 23.0, 22.0]
[105, 667, 180]
p02693
u330201623
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())\n\ndef m(a,b,c):\n\tfor i in (a, b+1):\n \t\tif i%k==0:\n print("OK")\n return\n print("NG")\n return\nm(a,b,k)', 'k= int(input())\na,b = map(int, input().split())\n\ndef m(a,b,c):\n for i in range(a, b+1):\n if i%c==0:\n print("OK")\n return\n print("NG")\n return\n\nm(a,b,k)']
['Runtime Error', 'Accepted']
['s270789262', 's680963908']
[8956.0, 9168.0]
[24.0, 24.0]
[172, 189]
p02693
u331233176
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\nok=0\nwhile i*K <= B:\n if A <= i*K and i*K <= B:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\ni=1\nok=0\nwhile i*K <= B:\n if A <= i*K and i*K <= B:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\ni=0\nok=0\nwhile i*K < B:\n if A <= i*K and i*K <= B:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\ni=0\nok=0\nwhile i*K <= B:\n if A <= i*K <= B:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\ni=1\nok=0\nwhile i*K <= B:\n if A <= i*K:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\ni=1\nok=0\nwhile i*K <= B and ok!=1:\n if A <= i*K <= B:\n print("OK")\n ok=1\n i=i+1\nif ok!=1:\n print("NG")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s447377352', 's509387790', 's655458306', 's784159113', 's858047357', 's970627306']
[9180.0, 9180.0, 9184.0, 9176.0, 9176.0, 9184.0]
[23.0, 22.0, 26.0, 22.0, 22.0, 20.0]
[167, 167, 166, 159, 154, 169]
p02693
u331327289
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\nfrom numba import njit\ninput = sys.stdin.buffer.readline\n\n\n@njit\ndef main():\n K = int(input())\n A, B = map(int, input().split())\n for i in range(A, B + 1):\n if i % K == 0:\n print('OK')\n return 0\n print('NG')\n return 0\n\n\nif __name__ == '__main__':\n main()\n", "import sys\nfrom numba import njit, i8\n\n\n@njit(i8(i8), cache=True)\ndef solve(X):\n money = 100\n res = 0\n while (money < X):\n money *= 1.01\n money = int(money)\n res += 1\n return res\n\n\ndef main():\n input = sys.stdin.buffer.readline\n X: int = int(input())\n print(solve(X))\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\nfrom numba import njit, b1, i8\n\n\n@njit(b1(i8, i8, i8), cache=True)\ndef solve(K, A, B):\n for i in range(A, B + 1):\n if i % K == 0:\n return True\n return False\n\n\ndef main():\n input = sys.stdin.buffer.readline\n K = int(input())\n A, B = map(int, input().split())\n\n print('OK' if solve(K, A, B) else 'NG')\n\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s087203535', 's311488035', 's016503560']
[106368.0, 106044.0, 106264.0]
[496.0, 486.0, 530.0]
[313, 350, 388]
p02693
u331997680
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 else:\n print('NG')\n", "K = int(input().split())\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')", "K = int(input())\nA, B = map(int, input().split())\nC = 0\nfor i in range(A,B+1):\n if i%K == 0:\n print('OK')\n C = 1\n break\nif C == 0:\n print('NG')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s013802041', 's785130379', 's556515041']
[9152.0, 9036.0, 9172.0]
[23.0, 22.0, 23.0]
[128, 135, 154]
p02693
u333139319
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[a,b] = [int(i) for i in input().split()]\nf = 0\nfor i in range(a,b+1):\n\tif i % k == 0:\n \tf = 1\nif f:\n\tprint("OK")\nelse:\n\tprint("NG")', 'k = int(input())\n[a,b] = [int(i) for i in input().split()]\nf = 0\nfor i in range(a,b+1):\n if i % k == 0:\n f = 1\nif f:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s237413341', 's541242989']
[8892.0, 9168.0]
[25.0, 31.0]
[152, 155]
p02693
u333273909
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`.
['l=list(map(int,input().split()))\na=l[0]\nb=l[1]\nn=l[2]\nif b-1<n:\n i=b-1\nelse:\n i=n\ny=(((a*i)/b)//1)-(a*((i/b)//1))\nprint(int(y))', 'l=list(map(int,input().split()))\na=l[0]\nb=l[1]\nn=l[2]\nx=0\nif b-1<n:\n i=b-1\n y=(((a*i)/b)//1)-(a*((i/b)//1))\nelse:\n i=n\n y=(((a*i)/b)//1)-(a*((i/b)//1))\nprint(int(x))', 'k=int(input())\nl=list(map(int,input().split()))\nx=l[0]//k\nif(x*k==l[0] or k*(x+1)<=l[1]):\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s894304658', 's972168229', 's233442437']
[9172.0, 9120.0, 9172.0]
[19.0, 18.0, 21.0]
[129, 169, 123]
p02693
u334242570
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())\nk=0\nfor i in range(a,b+1):\n if(n%i==0):\n k=1\n break\n else:\n k=0\nif(k==1):print("OK")\nelse:print("NG")', 'n=int(input())\na,b=map(int,input().split())\nk=0\nfor i in range(a,b+1):\n if(i%n==0):\n k=1\n break\n else:\n k=0\nif(k==1):print("OK")\nelse:print("NG")']
['Wrong Answer', 'Accepted']
['s646294830', 's800962350']
[9184.0, 9164.0]
[22.0, 21.0]
[156, 156]
p02693
u336968242
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`.
['nmq=list(map(int, input().split()))\nN=nmq[0]\nM=nmq[1]\nQ=nmq[2]\nablist=[list(map(int, input().split())) for i in range(Q)]\nsumlist=[]\nalist=[i for i in range(1,M+1)]\nimport itertools as ite\ncase=list(ite.combinations_with_replacement(alist,N))\nfor nowcase in case:\n sumd=0\n for i in range(Q):\n a=ablist[i][0]\n b=ablist[i][1]\n c=ablist[i][2]\n d=ablist[i][3]\n aa=nowcase[a-1]\n ab=nowcase[b-1]\n if ab-aa==c:\n sumd+=d\n sumlist.append(sumd)\nsumlist.sort(reverse=True)\nprint(sumlist[0])\n', 'nmq=list(map(int, input().split()))\nN=nmq[0]\nM=nmq[1]\nQ=nmq[2]\nablist=[list(map(int, input().split())) for i in range(Q)]\nsumlist=[]\nalist=[i for i in range(1,M+1)]\nimport itertools as ite\ncase=list(ite.combinations_with_replacement(alist,N))\nfor nowcase in case:\n sumd=0\n for i in range(Q):\n a=ablist[i][0]\n b=ablist[i][1]\n c=ablist[i][2]\n d=ablist[i][3]\n aa=nowcase[a-1]\n ab=nowcase[b-1]\n if ab-aa==c:\n sumd+=d\n sumlist.append(sumd)\nsumlist.sort(reverse=True)\nprint(sumlist[0])\n', 'nmq=list(map(int, input().split()))\nN=nmq[0]\nM=nmq[1]\nQ=nmq[2]\nablist=[list(map(int, input().split())) for i in range(Q)]\nsumlist=[]\nalist=[i for i in range(1,M+1)]\nimport itertools as ite\ncase=list(ite.combinations_with_replacement(alist,N))\nfor nowcase in case:\n sumd=0\n for i in range(Q):\n a=ablist[i][0]\n b=ablist[i][1]\n c=ablist[i][2]\n d=ablist[i][3]\n aa=nowcase[a-1]\n ab=nowcase[b-1]\n if ab-aa==c:\n sumd+=d\n sumlist.append(sumd)\nprint(max(sumlist))\n', 'nmq=list(map(int, input().split()))\nN=nmq[0]\nM=nmq[1]\nQ=nmq[2]\nablist=[list(map(int, input().split())) for i in range(Q)]\nsumlist=[]\nalist=[]\nfor i in range(1,M+1):\n alist.append(i)\nimport itertools as ite\ncase=list(ite.combinations_with_replacement(alist,N))\nfor nowcase in case:\n sumd=0\n for i in range(Q):\n a=ablist[i][0]\n b=ablist[i][1]\n c=ablist[i][2]\n d=ablist[i][3]\n aa=nowcase[a-1]\n ab=nowcase[b-1]\n if ab-aa==c:\n sumd+=d\n sumlist.append(sumd)\nsumlist.sort(reverse=True)\nprint(sumlist[0])\n', "K=int(input())\nab=list(map(int, input().split()))\nA=ab[0]\nB=ab[1]\nflg=False\nfor i in range(A,B+1):\n if i%K==0:\n flg=True\nif flg:\n print('OK')\nelse:\n print('NG')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s005100331', 's187044433', 's371677733', 's921286988', 's208420242']
[9124.0, 9248.0, 9088.0, 9136.0, 9120.0]
[23.0, 21.0, 21.0, 23.0, 21.0]
[549, 549, 524, 569, 177]
p02693
u340115305
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("multiple of: "))\nA = int(input("From A: "))\nB = int(input("To B:"))\nfor i in range(1, 1000):\n M = K * i\n if M in range(A, B):\n print("OK")\n break\n elif i == 100 and M not in range(A, B):\n print("NG")\n else: \n continue\n', 'K = int(input("multiple of: "))\nA, B = map(int, input().split())\nword = "NG"\nfor i in range(1, 1000):\n M = K * i\n if M in range(A, B+1):\n word = "OK"\n break\n else: \n continue\nprint(word)\n', 'K = int(input("multiple of: "))\nA, B = map(int, input().split())\nword = "NG"\nfor i in range(A, B+1):\n if i % K == 0:\n word = "OK"\nprint(word)\n', 'K = int(input("multiple of: "))\nA, B = map(int, input().split())\nfor i in range(1, 1000):\n M = K * i\n if M in range(A, B):\n print("OK")\n break\n elif i == 100 and M not in range(A, B):\n print("NG")\n else: \n continue\n', 'K = int(input("multiple of: "))\nA, B = map(int, input().split())\nfor i in range(1, 1000):\n M = K * i\n if M in range(A, B+1):\n print("OK")\n break\n elif i == 1000 and M not in range(A, B):\n print("NG")\n else: \n continue\n', 'K = int(input("multiple of: "))\nA = int(input("From A: "))\nB = int(input("To B: "))\nword = "NG"\nfor i in range(A, B+1):\n if i % K == 0:\n word = "OK"\nprint(word)\n', 'K = int(input())\nA, B = map(int, input().split())\nword = "NG"\nfor i in range(A, B+1):\n if i % K == 0:\n word = "OK"\nprint(word)\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s174580048', 's372037572', 's531877167', 's624000594', 's894602622', 's909071055', 's988094682']
[9176.0, 9168.0, 9160.0, 9172.0, 9176.0, 9160.0, 9156.0]
[20.0, 24.0, 18.0, 22.0, 22.0, 23.0, 24.0]
[273, 217, 152, 255, 258, 171, 137]
p02693
u344232182
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())\njudge = 0\nfor i in range(b-a):\n if a+i % k == 0:\n judge = 1\nif judge == 1:\n print("OK")\nelse:\n print("NG") ', 'k = int(input())\na, b = map(int, input().split())\njudge = 0\nfor i in range(b-a+1):\n if a+i % k = 0:\n judge = 1\nif judge == 1:\n print("OK")\nelse:\n print("NG") ', 'k = int(input())\na, b = map(int, input().split())\njudge = 0\nfor i in range(b-a+1):\n if a+i % k == 0:\n judge = 1\nif judge == 1:\n print("OK")\nelse:\n print("NG") ', 'k = int(input())\na, b = map(int, input().split())\njudge = 0\nfor i in range(b-a+1):\n if (a+i) % k == 0:\n judge = 1\nif judge == 1:\n print("OK")\nelse:\n print("NG") ']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s033738234', 's238011237', 's937368511', 's036292372']
[9176.0, 9024.0, 9176.0, 9176.0]
[20.0, 21.0, 22.0, 22.0]
[173, 180, 180, 183]
p02693
u346207191
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=(int(x) for x in input().split())\n\na=A%K\n\nb=K-a\n\nc=A+b\n\nif a!=0:\n if c >= B:\n print('No')\n else:\n print('Yes')\nelse:\n print('Yes')", "K=int(input())\n\nA,B=(int(x) for x in input().split())\n\na=A%K\n\nb=K-a\n\nc=A+b\n\nif a!=0:\n if c > B:\n print('NG')\n else:\n print('OK')\nelse:\n print('OK')"]
['Wrong Answer', 'Accepted']
['s482716910', 's240689954']
[9176.0, 9176.0]
[25.0, 22.0]
[173, 170]
p02693
u347452770
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,b,n = map(int,input().split())\n \nans = 0\npre = 0\nfor i in range(1, n+1):\n now = math.floor(a*i / b) - a * math.floor(i / b)\n if now > pre:\n ans = i\n pre = now\n else:\n break\n \nprint(pre)', 'k = int(input())\n \na, b = map(int, input().split())\nnecounter = 0\nfor i in range(a, b+1):\n if i % k == 0:\n break\n else:\n ngcounter += 1\n \nif ngcounter == b - a + 1:\n print("NG")\nelse :\n print("OK")\n', 'import math\n \na,b,n = map(int,input().split())\n \nans = 0\npre = 0\nfor i in range(1, n+1):\n now = math.floor(a*i / b) - a * math.floor(i / b)\n if now > pre:\n ans = i\n pre = now\n elif not now == 0:\n break\n \nprint(pre)', 'k = int(input())\n \na, b = map(int, input().split())\nngcounter = 0\nfor i in range(a, b+1):\n if i % k == 0:\n break\n else:\n ngcounter += 1\n \nif ngcounter == b - a + 1:\n print("NG")\nelse :\n print("OK")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s454229086', 's479071936', 's525430792', 's507631969']
[9020.0, 9052.0, 9084.0, 9004.0]
[24.0, 23.0, 19.0, 19.0]
[216, 211, 229, 210]
p02693
u350093546
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 \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 \n else:\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 else:\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')\nelse: print('NG')", "k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n print('OK' if i%k==0 else 'NG')", "k=int(input())\na,b=map(int,input().split())\nans='NG'\nif b-a-1>=k:\n ans='OK'\nelse:\n for i in range(a,b+1):\n if i%k==0:\n ans='OK'\n break\nprint(ans)"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s050536605', 's107338260', 's183257007', 's716056540', 's774131104', 's813986265', 's642449897']
[9052.0, 8976.0, 9172.0, 9116.0, 9152.0, 9068.0, 9208.0]
[20.0, 21.0, 23.0, 20.0, 23.0, 22.0, 20.0]
[116, 120, 125, 120, 114, 100, 160]
p02693
u350135473
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 = [int(x) for x in input().split()]\nk = int(input())\nfound = False\nfor i in range(a, b + 1):\n if i % k == 0:\n found = True\nif found: \n print("YES")\nelse:\n print("NO")\n ', 'k = int(input())\na, b = [int(x) for x in input().split()]\nfound = False\nfor i in range(a, b + 1):\n if i % k == 0:\n found = True\nif found:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Accepted']
['s768351983', 's372514090']
[9036.0, 9164.0]
[20.0, 23.0]
[192, 186]
p02693
u350578302
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\nsa = B - A \nflag = 0\n\nfor i in range(sa+1):\n\tif (A+i)%K==0:\n\t\tflag = 1\n\t\tbreak\n\nif flag==1:\n\tprint('OK')\nelse:\n\tprint('NG')", "K=int(input())\nA,B = map(int,input().split())\n\nsa = B - A \nflag = 0\n\nfor i in range(sa+1):\n\tif (A+i)%K==0:\n\t\tflag = 1\n\t\tbreak\n\nif flag==1:\n\tprint('OK')\nelse:\n\tprint('NG')"]
['Runtime Error', 'Accepted']
['s059191849', 's417278065']
[9176.0, 9180.0]
[22.0, 20.0]
[165, 170]
p02693
u353308344
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()]\nres = a//k < b//k or not a%k or not b%k\nprint('OK' if res else 'NG')", "k = int(input())\na, b = [int(x) for x in input()]\nres = a//k < b//k or not a%k not b%k\nprint('OK' if res else 'NG')", 'import sys\n\nk, tmp = [line.rstrip() for line in sys.stdin]\nk, a, b = int(k), [int(x) for x in tmp.split()]\nprint(a//k < b//k)', "k = int(input())\na, b = [int(x) for x in input().split()]\nres = (a//k < b//k) or (not a%k) or (not b%k)\nprint('OK' if res else 'NG')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s106204291', 's473768333', 's530127638', 's322400451']
[9168.0, 8956.0, 9172.0, 9172.0]
[23.0, 25.0, 28.0, 23.0]
[118, 115, 125, 132]
p02693
u354126779
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\n\nn,m,q=map(int,input().split())\n\nlis=[]\nfor i in range(q):\n lis.append(list(map(int,input().split())))\n\nAlist=[]\n\nfor l in itertools.combinations(range(1,n+m),n):\n ll=list(l)\n a=[]\n for i in range(n):\n a.append(ll[i]-i)\n Alist.append(a)\n\nslist=[]\nfor i in range(len(Alist)):\n s=0\n for j in range(q):\n aj=lis[j][0]\n bj=lis[j][1]\n cj=lis[j][2]\n dj=lis[j][3]\n if Alist[i][bj-1]-Alist[i][aj-1]==cj:\n s+=dj\n slist.append(s)\n\nprint(max(slist))', '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\nif c==0:\n print("NG")\nelse:print("OK")']
['Runtime Error', 'Accepted']
['s183892250', 's346956440']
[9252.0, 9176.0]
[20.0, 21.0]
[531, 142]
p02693
u354835101
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を入力してください")\nc = int(a)\nd = int(b)\nl = int(k)\ne = d-d%l\nif e>=c:\n print(\'ok\')\nelse:\n print(\'ng\')', "k=input()\na,b=input().split()\nc=int(a)\nd=int(b)\nl=int(k)\ne=d-d%l\nif e>=c:\n print('ok')\nelse:\n print('ng')", "k=input()\na,b=input().split()\nc=int(a)\nd=int(b)\nl=int(k)\ne=d-d%l\nif e>=c:\n print('OK')\nelse:\n print('NG')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s309889655', 's523609135', 's685142673']
[8936.0, 9120.0, 9120.0]
[24.0, 20.0, 20.0]
[233, 107, 107]
p02693
u355154595
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=0\nwhile True:\n n+=k\n if n>=a and n=<b:\n print('OK')\n break\n if n>b:\n print('NG')\n \n ", "k = int(input())\na,b = map(int,input().split())\nn=0\nwhile True:\n n+=k\n if n>=a and n<=b:\n print('OK')\n break\n if n>b:\n print('NG')\n break\n \n"]
['Runtime Error', 'Accepted']
['s221660933', 's592956195']
[8976.0, 9316.0]
[21.0, 21.0]
[180, 186]
p02693
u357751375
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 = n % k\nif i == 0:\n print('OK')\n exit()\n\nj = n - i\n\nif a > j:\n print('NG')\nelse:\n print('OK')", 'x = int(input())\ni = 100\nc = 0\n\nwhile i < x:\n i = i + (i * 0.01)\n c += 1\n\nprint(c)\n', "k = int(input())\na,b = map(int,input().split())\ni = b % k\nif i == 0:\n print('OK')\n exit()\n\nj = b - i\n\nif a > j:\n print('NG')\nelse:\n print('OK')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s150125384', 's208706324', 's225451121']
[9176.0, 9048.0, 9108.0]
[22.0, 22.0, 23.0]
[155, 89, 155]
p02693
u357867755
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 print(i)\n if i % k == 0:\n print('OK')\n sys.exit()\nprint('NG')", "import sys\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']
['s544490054', 's511578579']
[9168.0, 9132.0]
[21.0, 21.0]
[156, 145]
p02693
u362255558
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(a) for a in input().strip().split(' ')]\n \nif (B - A) % K == 0:\n print('OK')\nelse:\n print('NG')", "K = int(input())\nA, B = [ int(a) for a in input().strip().split(' ')]\n\nfor i in range(A, B+1):\n if i % K == 0:\n print('OK')\n break\nelse:\n print('NG')"]
['Wrong Answer', 'Accepted']
['s598749483', 's231221415']
[9172.0, 9148.0]
[20.0, 21.0]
[130, 169]
p02693
u362599643
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\nn_1 = int(A / n)\nn_2 = int(B / n)\nnn_1 = A%n\nnn_2 = B%n\n\nprint(n_1,n_2)\nif n == 1: print('OK')\nelse:\n if nn_1 ==0 or nn_2 == 0:print('OK')\n elif n_2 != n_1: print('OK')\n else: print('NG')\n", "n = int(input())\nA, B = map(int, input().split())\n\nn_1 = int(A / n)\nn_2 = int(B / n)\nnn_1 = A%n\nnn_2 = B%n\nif n == 1: print('OK')\nelse:\n if nn_1 ==0 or nn_2 == 0:print('OK')\n elif n_2 != n_1: print('OK')\n else: print('NG')"]
['Wrong Answer', 'Accepted']
['s238784604', 's169789237']
[9184.0, 9188.0]
[22.0, 23.0]
[248, 231]
p02693
u363080243
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("yes")\n break\n else:\n print("NG")\n break', "a = int(input())\nb, c= map(int, input().split())\nans = 'NG'\nfor i in range(b, c+1):\n if i%a == 0:\n ans = 'ok'\n break\nprint(ans)", "a = int(input())\nb, c= map(int, input().split())\nans = 'NG'\nfor i in range(b, c+1):\n if i%a == 0:\n ans = 'yes'\n break\nprint(ans)", 'a = int(input())\nb, c= map(int, input().split())\nfor i in range(b, c+1, -1):\n if i%a == 0:\n print("yes")\n break\n else:\n print("NG")\n break', "a = int(input())\nb, c= map(int, input().split())\nans = 'NG'\nfor i in range(b, c+1):\n if i%a == 0:\n ans = 'OK'\n break\nprint(ans)"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s047760241', 's641777495', 's654714904', 's980635994', 's079337217']
[9168.0, 9164.0, 9168.0, 9172.0, 9172.0]
[22.0, 20.0, 22.0, 21.0, 23.0]
[168, 144, 145, 172, 144]
p02693
u363836311
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())\nt=b-a\nwhile k<a:\n k+=k\nif k<=b:\n print('OK')\nelse:\n print('NG')\n", "k=int(input())\na,b=map(int, input().split())\nt=0\nwhile t<a:\n t+=k\nif t<=b:\n print('OK')\nelse:\n print('NG')\n"]
['Wrong Answer', 'Accepted']
['s959081615', 's977374113']
[9096.0, 9160.0]
[21.0, 18.0]
[118, 116]
p02693
u364238528
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())\ntemp=list(map(int,input().rstrip().split()))\na=temp[0]\nb=temp[2]\nif (b-a)>n :\n print("OK")\nelif n==1 :\n print("OK")\nelse :\n print("NG")', 'n=int(input())\ntemp=list(map(int,input().rstrip().split()))\na=temp[0]\nb=temp[2]\nif (b-a)>n :\n print("Yes")\nelse :\n print("No")', 'n=int(input())\ntemp=list(map(int,input().rstrip().split()))\na=temp[0]\nb=temp[1]\nrem=(a%n)\nleft=n-rem\nif b>=(left+a) :\n print("OK")\nelif a%n ==0 or b%n==0:\n print("OK")\nelse :\n print("NG")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s159143281', 's410793119', 's653145545']
[9176.0, 9168.0, 9180.0]
[23.0, 25.0, 22.0]
[157, 132, 196]
p02693
u364541509
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 = 0\nwhile A <= B:\n if A / K == A // K:\n i = i + 1\n A = A + 1\n else:\n i = i + 0\n A = A + 1\n \nif i = 0:\n print("NG")\nelse:\n print("OK")', 'K= int(input())\nA, B = map(int, input().split())\ni = 0\nwhile A <= B:\n if K / 4 == K // 4:\n i = i + 1\n A = A + 1\n else:\n i = i + 0\n A = A + 1\n \nif i = 0:\n print("NG")\nelse:\n print("OK")', 'K= int(input())\nA, B = map(int, input().split())\ni = 0\nwhile A <= B:\n if A / K == A // K:\n i = i + 1\n A = A + 1\n else:\n i = i + 0\n A = A + 1\n \nif i == 0:\n print("NG")\nelse:\n print("OK")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s720312173', 's750416173', 's497980261']
[8936.0, 9040.0, 9184.0]
[24.0, 23.0, 23.0]
[203, 203, 204]
p02693
u364555831
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().split()[0])\nB = int(input().split()[1])\n\nfor i in range(A, B + 1):\n if i % K == 0:\n print("OK")\n break\n exit()\nprint("NG")\n', 'K = int(input())\nS = input().split()\nA = int(S[0])\nB = int(S[1])\n\nfor i in range(A, B + 1):\n if i % K == 0:\n print("OK")\n break\n exit()\nprint("NG")\n', '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\nif flag == True:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s140867426', 's572974391', 's526314350']
[9148.0, 9140.0, 9156.0]
[26.0, 30.0, 27.0]
[180, 172, 198]
p02693
u365625186
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())\ntmp = A % k\nif(tmp == 0): \n\tprint('OK')\nelse:\n\tif(A + (K-tmp) <= B):\n\t\tprint('OK')\n\telse:\n\t\tprint('NG')", "K = int(input())\nA, B = map(int,input().split())\ntmp = a % k\nif(tmp == 0): \n\tprint('OK')\nelse:\n\tif(A + (K-tmp) <= B):\n\t\tprint('OK')\n\telse:\n\t\tprint('NG')", "K = int(input())\nA, B = map(int,input().split())\n\ntmp = A % K\nif(tmp == 0): \n\tprint('OK')\nelse:\n\tif(A + (K-tmp) <= B):\n\t\tprint('OK')\n\telse:\n\t\tprint('NG')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s182825247', 's632206587', 's997897764']
[9180.0, 9176.0, 9176.0]
[20.0, 22.0, 22.0]
[152, 152, 153]
p02693
u366424761
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 and K <= B:\n print('OK')\nelse:\n print('NG')", "K = int(input())\nA,B = map(int,input().split())\nn = 1\nwhile True:\n if A <= K*n and K*n <= B:\n print('OK')\n break\n elif Kn > B:\n print('NG')\n break\n n = n + 1 ", "K = int(input())\nA,B = map(int,input().split())\nn = 1\nwhile True:\n if A <= K*n and K*n <= B:\n print('OK')\n break\n elif K*n > B:\n print('NG')\n break\n n = n + 1 "]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s138456069', 's546069014', 's256304152']
[9088.0, 9092.0, 9184.0]
[20.0, 23.0, 23.0]
[107, 195, 196]
p02693
u366886346
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=map(int,input().split())\nfor i in range(m):\n print(m-i+1,m+2+i)\n', 'k=int(input())\na,b=map(int,input().split())\nc=a//k\nd=b//k\nif d-c==0 and c*k!=a and d*k!=b:\n print("NG")\nelse:\n print("OK")\n']
['Runtime Error', 'Accepted']
['s953162634', 's132097293']
[9152.0, 9160.0]
[24.0, 23.0]
[71, 129]
p02693
u373442126
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():\n K = int(input())\n A,B = [int(x) for x in input().split()]\n for a in range(A,B+1):\n print(a)\n if a % K == 0:\n print('OK')\n return\n print('NG')\n\nif __name__ == '__main__':\n main()\n", "def main():\n K = int(input())\n A,B = [int(x) for x in input().split()]\n for a in range(A,B+1):\n if a % K == 0:\n print('OK')\n return\n print('NG')\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s018273750', 's685232373']
[9168.0, 9168.0]
[22.0, 23.0]
[242, 225]
p02693
u373531749
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`.
['i = list(map(int,input().split()))\nf = 0\nfor x in range(i[1],i[2]+1):\n if x % i[0] == 0:\n f = 1\n\nif f == 1:\n print("OK")\nelse:\n print("No")', 'i = int(input())\ni2 = list(map(int,input().split()))\n\nf = 0\nfor x in range(i2[0],i2[1]+1):\n if x % i == 0:\n f = 1\n\nif f == 1:\n print("OK")\nelse:\n print("NG")']
['Runtime Error', 'Accepted']
['s026098116', 's705862446']
[9124.0, 9116.0]
[23.0, 21.0]
[155, 173]
p02693
u374082254
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())\n\nif A // K <= B // K and B % K == 0:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\n\nA, B = map(int, input().split())\n\nif A // K <= B // K and B % K == 0:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\n\nA, B = map(int, input().split())\n\nif A // K == B // K:\n if A % K == 0 or B % K == 0:\n print("OK")\n else:\n print("NG")\nelif A // K < B // K:\n print("OK")\nelse:\n print("NG")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s485760562', 's579415316', 's211130824']
[9048.0, 9120.0, 9176.0]
[22.0, 21.0, 20.0]
[118, 126, 216]
p02693
u374449234
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("Yes")\nelse:\n print("No")', 'k = int(input())\na, b = map(int, input().split())\n\nif b-(b%k) >= a:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Accepted']
['s222221329', 's176051705']
[9092.0, 9160.0]
[20.0, 21.0]
[105, 106]
p02693
u374784428
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())\nx,y = map(int,input().split())\t\n\nb = x//a\nc = y//a\n\nif c-b <= 1:\n print('NG')\nelif:\n print('OK')", "a=int(input())\nx,y = map(int,input().split())\t\n\nb = x//a\nc = y//a\n\nif c-b <= 1:\n print('NG')\nelif:\n print('OK')\n", "a=int(input())\nx,y = map(int,input().split())\t\n\nb = x//a\nc = y//a\n\nif c-b <= 1:\n print('NG')\nelif:\n print('OK')\n", "k=int(input())\na,b = map(int,input().split())\t\n\nc = b // k\nd = k*c\n\nif a <= d and d <= b:\n print('OK')\nelse:\n print('NG')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s033146145', 's261474984', 's958120299', 's665550078']
[9020.0, 9024.0, 9024.0, 9108.0]
[23.0, 20.0, 21.0, 20.0]
[117, 118, 118, 127]
p02693
u375006224
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())\nif c-b>=c%a:\n print("Yes")\nelse:\n print("No")', 'a=int(input())\nb,c=map(int,input())\nif c-b>=c%a:\n print("Yes")\nelse:\n print("No")', 'a=int(input())\nb,c=map(int,input().split())\nif c-b>=c%a:\n print("OK")\nelse:\n print("NG")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s194344841', 's642778758', 's962546429']
[9156.0, 9100.0, 9032.0]
[19.0, 26.0, 22.0]
[91, 83, 90]
p02693
u376099073
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 = "NG"\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\nprint(ans)']
['Wrong Answer', 'Accepted']
['s529002535', 's135742160']
[9168.0, 9168.0]
[21.0, 22.0]
[133, 132]
p02693
u376637061
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(i) for i in input().split()]\n\nif a % k == 0 or (a % k - b % k) > 0 or (a - b > 0 and (a-b)%k==0):\n print('OK')\nelse:\n print('NG')\n", "k = int(input())\na, b = [int(i) for i in input().split()]\n\nif a % k == 0 or (a % k - b % k) >= 0:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b = [int(i) for i in input().split]\n\nif a % k == 0 or (a % k - b % k) >= 0:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na = int(input())\nb = int(input())\n\nif a % k == 0 or (a % k - b % k) >= 0:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b = [int(i) for i in input().split()]\n\nif b-a >= k-1:\n print('OK')\nelif a % k - b % k > 0 or a % k == 0:\n print('OK')\nelse:\n print('NG')\n"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s023215411', 's247540787', 's417826867', 's649071287', 's253114044']
[9164.0, 9004.0, 9104.0, 9152.0, 9080.0]
[25.0, 24.0, 25.0, 22.0, 22.0]
[161, 131, 129, 124, 160]
p02693
u377834804
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 \nnow = 100\ncnt = 0\nwhile now < X:\n cnt += 1\n now = int(now*1.01)\nprint(cnt)', "import sys\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')\n"]
['Wrong Answer', 'Accepted']
['s132429423', 's395138349']
[9156.0, 9160.0]
[22.0, 25.0]
[95, 146]
p02693
u378233069
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())\nAB = input()\nl = AB.split()\nA = int(l[0])\nB = int(l[1])\nli = []\nfor i in range(A, B+1) : \n if i % K == 0 :\n li.append(i)\n else :\n continue\nif len(li) >=1 :\n print("YES")\nelse : \n print("NO")', 'K = int(input())\nAB = input()\nl = AB.split()\nA = int(l[0])\nB = int(l[1])\nli = []\nfor i in range(A, B+1) : \n if i % K == 0 :\n li.append(i)\n else :\n continue\nif len(li) >=1 :\n print("OK")\nelse : \n print("NG")']
['Wrong Answer', 'Accepted']
['s530708903', 's940267215']
[9084.0, 9188.0]
[22.0, 22.0]
[217, 216]
p02693
u379959788
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 if i%K == 0:\n print("YES")\n exit()\nprint("NG")\n', '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")\n']
['Wrong Answer', 'Accepted']
['s694309928', 's887049493']
[9116.0, 9108.0]
[24.0, 21.0]
[142, 141]