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 | u380669795 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nx = AB[1]/K\n\nif int(x) * K >= AB[0]:\n print('Yes')\nelse:\n print('No')\n", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nx = int(AB[1]/K)\n\nif x * K >= AB[0]:\n print('Yes')\nelse:\n print('No')", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nx = AB[1]/K\n\nif int(x) * K >= AB[0]:\n print('Yes')\nelse:\n print('No')\n", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nxb = int(AB[1]/K)\n\nif xb * K >= AB[0]:\n print('Yes')\nelse:\n print('No')", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\n\n\nif AB[1]/K - AB[0]/K >= 1 or AB[1]/K - AB[0]/K == 0:\n print('Yes')\nelse:\n print('No')", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nx = int(AB[1]/K)\n\nif x * K >= AB[0]:\n print('Yes')\nelse:\n print('No')\n", "K = input()\nAB = input()\n\nK = int(K)\nAB = [int(i) for i in list(AB.split())]\nx = AB[1]/K\n\nif int(x) * K >= AB[0]:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s096781340', 's173453762', 's626604232', 's641693414', 's669192219', 's865059076', 's977709015'] | [9100.0, 9092.0, 9168.0, 9080.0, 9044.0, 9180.0, 9176.0] | [20.0, 20.0, 23.0, 25.0, 23.0, 20.0, 24.0] | [149, 148, 149, 150, 166, 149, 147] |
p02693 | u384124931 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = True\nfor i in range(a, b+1):\n if i%k ==0:\n print(OK)\n c = False\n break\nif c:\n print(NG)\n', 'k=int(input())\na, b=map(int, input().split())\nc = True\nfor i in range(a, b+1):\n if i%k ==0:\n print("OK")\n c = False\n break\nif c:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s492720879', 's090445895'] | [9168.0, 9176.0] | [20.0, 23.0] | [149, 152] |
p02693 | u384744829 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nlist=list(map(int,input().split()))\n\nb=list[0]//a\nc=list[1]//a\n\nif list[1]%a==0\n\tprint("OK")\n\nelif c-b>=1:\n\tprint("OK")\n\nelse:\n print("NG")\n', 'a = int(input())\nlist=list(map(int,input().split()))\n\nb=list[0]//a\nc=list[1]//a\n\nif list[0]%a==0:\n\tprint("OK")\n\nelif c-b>=1:\n\tprint("OK")\n\nelse:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s863619798', 's808259781'] | [8928.0, 9128.0] | [25.0, 27.0] | [158, 159] |
p02693 | u385649291 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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# Your code here!\nK = int (input())\nline= list(map(int,input().split()))\na,b = line[0],line[1]\nif b>K:\n print("NG")\n\n\nelse:\n for i in range(a,b+1):\n if i%K==0:\n print("OK")\n break\n print("NG")', '# coding: utf-8\n# Your code here!\nK = int (input())\nline= list(map(int,input().split()))\na,b = line[0],line[1]\nif B<K:\n print("NG")\nif (b-a+1)>=K:\n print("OK")\n\nelse:\n for i in range(a,b+1):\n if i%K==0:\n print("OK")\n break\n print("NG")', '# coding: utf-8\n# Your code here!\nK = int (input())\nline= list(map(int,input().split()))\na,b = line[0],line[1]\nif b>K:\n print("NG")\nelif (b-a+1)>=K:\n print("OK")\n\nelse:\n for i in range(a,b+1):\n if i%K==0:\n print("OK")\n break\n print("NG")', '# coding: utf-8\n# Your code here!\nK = int (input())\nline= list(map(int,input().split()))\na,b = line[0],line[1]\nif b<K:\n print("NG")\n \n\nelse:\n for i in range(a,b+1):\n if i%K==0:\n print("OK")\n break\n elif i==b:\n print("NG")'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s126527283', 's616603348', 's852348656', 's266092810'] | [9116.0, 9184.0, 9192.0, 9120.0] | [26.0, 21.0, 19.0, 21.0] | [246, 274, 278, 277] |
p02693 | u387080888 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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=list(map(int,input().split()))\nans="No"\nfor i in range(b[0],b[1]+1):\n if i%a==0:\n ans="Yes"\nprint(ans)', 'a=int(input())\nb=list(map(int,input().split()))\nans="NG"\nfor i in range(b[0],b[1]+1):\n if i%a==0:\n ans="OK"\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s818494086', 's867720687'] | [9172.0, 9180.0] | [22.0, 20.0] | [129, 128] |
p02693 | u387870994 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["root = int(input())\nranges = list(map(int, input().slice()))\nflag = False\n\nfor i in range(ranges[0], ranges[1] + 1):\n if i % root:\n flag = True\n \nif flag: \n print('OK')\nelse:\n print('NG')\n", "root = int(input())\nranges = list(map(int, input().split()))\nflag = False\n\nfor i in range(ranges[0], ranges[1] + 1):\n if i % root == 0:\n flag = True\n \nif flag: \n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s565923057', 's747569105'] | [9176.0, 9184.0] | [25.0, 21.0] | [211, 216] |
p02693 | u388458865 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA,B = map(int,input().split())\nif K == 1 : print("Yes")\nif (B-A) < K : print("No")\nelse : print("Yes")\n', 'K = int(input())\nA,B = map(int,input().split())\nmes = 0\nfor num in range (A,B+1):\n if num % K == 0 : mes = 1\n else : pass\n\nif mes == 1 : print("OK")\nelse : print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s582566136', 's319539190'] | [9156.0, 9172.0] | [22.0, 22.0] | [120, 173] |
p02693 | u391725895 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["import math\nK = input()\nAB = input().split()\n\nif math.ceil(int(AB[1])/int(K)) <= math.ceil(int(AB[0])/int(K)):\n print('OK')\nelse:\n print('NG')", "import math\nK = input()\nAB = input().split()\n\nK = int(K)\nA = int(AB[0])\nB = int(AB[1])\n\nif B//K >= -(-A//K):\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s391279572', 's547283682'] | [9172.0, 9176.0] | [22.0, 21.0] | [148, 146] |
p02693 | u393224521 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = list(input())\na, b = map(int, input().split())\nif a % k == 0 or b % k == 0:\n print('OK')\nelse:\n if (b-a) // k == 0:\n print('NG')\n else:\n print('OK')", "k = int(input())\na, b = map(int, input().split())\nl = 0\nfor i in range(b // k):\n if a <= k*(i+1) <= b:\n l = 1\n print('OK')\n break\nif l == 0:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s335612385', 's830490649'] | [9068.0, 9108.0] | [22.0, 20.0] | [176, 181] |
p02693 | u395816772 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["m = int(input())\na,b = map(int,input().split())\nif b // k - a// k > 0:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nif a % k == 0:\n print('OK')\nelif b // k - a// k > 0:\n print('OK')\nelif a == b and a % k == 0:\n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s077806113', 's418263728'] | [9160.0, 9172.0] | [20.0, 26.0] | [104, 178] |
p02693 | u397638621 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(int, (input().split()))\nfor i in range(A, B):\n if i % K == 0:\n print("Yes")\n break\n else:\n print("No")\n break', 'K = int(input())\nA, B = map(int, (input().split()))\nfor i in range(A, B):\n if i % K == 0:\n print("Yes")\n break\n else:\n print("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 break\n else:\n print("NG")\n break', 'K = int(input())\nA, B = map(int, (input().split()))\nfor i in range(A, B):\n if i % K == 0:\n print("OK")\n break\n else:\n print("NG")\n break', 'K = int(input())\nA, B = map(int, (input().split()))\nlst = []\nfor i in range(A, B+1):\n if i % K == 0:\n result = "OK"\n lst.append(result)\n break\n else:\n result = "NG"\n lst.append(result)\nprint(lst[-1])'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s435853919', 's558953622', 's639259812', 's657213018', 's751670554', 's136705249'] | [9060.0, 9168.0, 9096.0, 9172.0, 9164.0, 9052.0] | [19.0, 24.0, 22.0, 22.0, 23.0, 20.0] | [172, 171, 157, 172, 170, 240] |
p02693 | u398203017 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 (A;B;A++):\n if A%K==0:\n print("OK")\n break\nelse:\n 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("OK")\n break\nelse:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s079257515', 's105507566'] | [8952.0, 9156.0] | [24.0, 24.0] | [117, 128] |
p02693 | u398626244 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()))\nA=A_B[0]\nB=A_b[1]\nm=1\nfor i in range(B):\n m=i*k\n if (m>A and m<B):\n print("OK")\n else:\n print("NG")\n \n \n ', 'K=int(input())\nA_B=list(map(int,input().split()))\nA=A_B[0]\nB=A_B[1]\nm=1\nc=0\nfor i in range(A,(B+1)):\n if(i%K==0):\n c=1\n else:\n c=0\nif(c==1):\n print("OK")\nelif(c==0):\n print("NG")', 'K=int(input())\nA_B=list(map(int,input().split()))\nA=A_B[0]\nB=A_B[1]\nm=1\nc=0\nfor i in range(B):\n m=i*K\n if(m>A and m<B):\n c=1\n else:\n c=0\nif(c==1):\n print("OK")\nelse:\n print("NG")', 'K=int(input())\nA_B=list(map(int,input().split()))\nA=A_B[0]\nB=A_B[1]\nm=1\nc=0\nfor i in range(A,(B+1)):\n if(i%K==0):\n c=1\n break\nif(c==1):\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s161718422', 's173846603', 's564842699', 's605983905'] | [9180.0, 9200.0, 9188.0, 9184.0] | [24.0, 19.0, 21.0, 22.0] | [170, 188, 189, 176] |
p02693 | u399455228 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = list(map(int, input().split()))\nicount = 0\nif A[2] - A[1] >= A[0]:\n print('OK')\n icount = icount + 1\nelse:\n for i in range(A[1]:A[2]+1):\n if i % A[0] == 0:\n print('OK')\n icount = icount + 1\n if icount == 1:\n break\n \nif icount == 0:\n print('NG')\n \n", 'A = list(map(int, input().split())) \ni_max = 0\ni_count = 0\nj_count = 0\n\nfor x in range(1, A[2]+1):\n if i_max < ((A[0]*x)//A[1]-A[0]*(x//A[1])):\n i_max = ((A[0]*x)//A[1]-A[0]*(x//A[1]))\n i_count = x\n if (x - i_count) == 1:\n j_count = j_count + 1\n if (j_count == 2):\n break\n \nprint(i_count)\n', "N = int(input())\nA = list(map(int, input().split())) \nicount = 0\nif A[1] - A[0] >= N:\n print('OK')\n icount = icount + 1\nelse:\n for i in range(A[0], A[1]+1):\n if i % N == 0:\n print('OK')\n icount = icount + 1\n if icount == 1:\n break\n \nif icount == 0:\n print('NG')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s416042917', 's444843650', 's063386027'] | [9024.0, 9188.0, 9080.0] | [22.0, 23.0, 20.0] | [288, 364, 353] |
p02693 | u408791346 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 * (a // k) + k\nif k == 1:\n print("OK")\nelif : x >= a and x <= b:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na, b = map(int,input().split())\nfor i in range(a, b+1):\n if i%k == 0 :\n print("OK")\n break\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s369132112', 's093273401'] | [8952.0, 9168.0] | [20.0, 20.0] | [160, 146] |
p02693 | u409974118 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nn = int()\nif a <= k * n <= b :\n print("OK")\nelse :\n print("NO")\n', 'k = int(input())\na,b = map(int,input().split())\n\nfor n in range(a,b):\n if n % k == 0:\n print("OK")\n break\n\n else :\n print("NO")\n break', 'k = int(input())\na,b = map(int,input().split())\nc = "NG"\nfor n in range(a,b+1):\n if n%k ==0:\n c = "OK"\n break\nprint(c)\n\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s129896649', 's456571849', 's020783708'] | [9152.0, 9088.0, 9084.0] | [24.0, 24.0, 23.0] | [119, 162, 137] |
p02693 | u410118019 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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('NYoe s'[b//k>a//k::2])", "k,a,b = map(int,open(0).read().split())\nprint('NOGK'[b%k<=b-a::2])"] | ['Wrong Answer', 'Accepted'] | ['s966832544', 's565559486'] | [9144.0, 9080.0] | [22.0, 22.0] | [77, 66] |
p02693 | u414376763 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = list(map(int,input().split()))\n\nfor i in range(a,b):\n if k % i == 0:\n print('OK')\n break;", "k = int(input())\na,b = list(map(int,input().split()))\nans = 'NG'\n\nfor i in range(a,b+1):\n if i % k == 0:\n ans = 'OK'\n\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s741296579', 's123317441'] | [9100.0, 9076.0] | [25.0, 27.0] | [119, 133] |
p02693 | u417610915 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 Num in range(A,B+1):\n count =0\n if Num%K ==0:\n count+=1\n if count !=0:\n print("OK")\n else:\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\nfor Num in range(A,B+1):\n count =0\n if Num%K ==0:\n count+=1\nif count!=0:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA,B = map(int,input().split())\ncount =0\nfor Num in range(A,B+1):\n if Num%K ==0:\n count+=1\nif count !=0:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s143649160', 's718870355', 's046033730'] | [9140.0, 9164.0, 9124.0] | [18.0, 20.0, 22.0] | [204, 172, 169] |
p02693 | u417959834 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["#! python3\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n ans = [i for i in range(a, b+1) if i%k == 0]\n if len(ans) == 0:\n print('NG')\n else:\n print('YES')\n\nmain()", "#! python3\ndef main():\n k = int(input())\n a, b = map(int, input().split())\n ans = [i for i in range(a, b+1) if i % k == 0]\n if len(ans) == 0:\n print('NG')\n else:\n print('OK')\n\nmain()"] | ['Wrong Answer', 'Accepted'] | ['s553238546', 's844742013'] | [9168.0, 9168.0] | [22.0, 21.0] | [210, 211] |
p02693 | u421828301 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\na, b = map(int,input().split())\n\nans = 'NG'\n\nh = b-a+1\n\nfor i in range(a, h, 1):\n if i % k == 0:\n ans = 'OK'\n\nprint(ans)", "# -*- coding: utf-8 -*-\n\nk = int(input())\na, b = map(int,input().split())\n\nans = 'NG'\n\nh = b-a+1\n\nfor i in range(h):\n p = a + i\n if p % k == 0:\n ans = 'OK'\n\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s506967719', 's187472081'] | [9172.0, 9176.0] | [22.0, 25.0] | [172, 180] |
p02693 | u423137719 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = input().split()\na,b = int(a), int(b)\nans='NG'\nfor i in range(a,b+1):\n if i%k==0:\n ans='YES'\nprint(ans)", "k = int(input())\na,b = input().split()\na,b = int(a), int(b)\nans='NG'\nfor i in range(a,b+1):\n if i%k==0:\n ans='OK'\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s587815624', 's115856546'] | [9108.0, 9060.0] | [21.0, 23.0] | [135, 135] |
p02693 | u425762225 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n\nprint(0)', 'A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(N)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n', 'A, B, N = map(int,input().split())\n\nx = N\nfor i in range(N):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n else:\n x -= 1\n', 'A, B, N = map(int,input().split())\n\nx = N\nfor i in range(N):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n', 'A, B, N = map(int,input().split())\n\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()', 'A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n\n \nprint("0")\n', 'A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n\n\nprint(0)', 'A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n', 'A, B, N = map(int,input().split())\n\nx = N\nfor x in reversed(range(1,N+1)):\n if x % B != 0:\n print(int(A*x/B)-A*int(x/B))\n exit()\n\n \nprint(0)', '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")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s002724437', 's134955207', 's196469575', 's298034303', 's320028732', 's440267728', 's761074681', 's768653314', 's973708728', 's870901136'] | [9172.0, 9160.0, 9104.0, 9156.0, 9176.0, 9172.0, 9168.0, 9148.0, 9052.0, 9192.0] | [24.0, 18.0, 20.0, 23.0, 20.0, 21.0, 23.0, 21.0, 20.0, 24.0] | [145, 132, 141, 122, 129, 153, 146, 136, 150, 133] |
p02693 | u426205961 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = list(map(int, input().split()))\nd = b//a\ne = c//a\nif not d == e:\n print("Yes")\nelse:\n print("No")', 'a = int(input())\nb, c = int(list(map(int, input().split())))\nd = b//a\ne = c//a\nif d == e:\n print("Yes")\nelse:\n print("No")', 'K = int(input())\nA, B = list(map(int,input().split()))\nS = 0\nfor i in range(A,B+1):\n\tif i % K == 0:\n\t\tS = 1\n\t\tbreak\nif S == 1:\n\tprint("OK")\nelse:\n\tprint("NG")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s538565179', 's684002612', 's681640536'] | [9192.0, 9164.0, 9176.0] | [31.0, 27.0, 26.0] | [127, 128, 158] |
p02693 | u428341537 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nq=0\n\nfor i in range(1,1000):\n if a<=k*i and k*i<=b:\n print('OK')\n q=1\n \n\nif q==0:\n print('NG')", "k=int(input())\na,b= map(int, input().split())\n\nif a//k-b//k==1:\n print('OK')\nelse:\n print('NG')", "k=int(input())\na,b= map(int, input().split())\nq=0\n\nfor i in range(1,1000):\n if a<=k*i and k*i<=b:\n print('OK')\n q=1\n \n\nif q==0:\n print('NG')", "k=int(input())\na,b= map(int, input().split())\n\nif b/k-a/k==1 or b/k-a/k==0:\n print('OK')\nelse:\n print('NG')", "k=int(input())\na,b= map(int, input().split())\nq=0\n\nfor i in range(1,1000):\n if a<=k*i and k*i<=b:\n print('OK')\n q=1\n \n\nif q==0:\n print('NG')", "k=int(input())\na,b= map(int, input().split())\nq=0\n\nfor i in range(1,1000):\n if a<=k*i and k*i<=b:\n print('OK')\n q=1\n break\n\nif q==0:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s179041330', 's275851717', 's283007846', 's653905672', 's945339234', 's879583754'] | [9012.0, 9064.0, 9140.0, 9160.0, 9052.0, 9084.0] | [26.0, 31.0, 29.0, 25.0, 30.0, 30.0] | [151, 97, 151, 109, 151, 156] |
p02693 | u430336181 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = input().split()\n\nif B - A >= K-1:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nif A - B > K:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = int(input().split())\n\nif B - A >= K-1:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nif A - B > K -1:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\nA, B = map(int, input().split())\nprint("OK" if A <= B//K*K else "NG" )'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s040807111', 's344695555', 's791575664', 's901367048', 's298248166'] | [9048.0, 9164.0, 9096.0, 9164.0, 9160.0] | [24.0, 21.0, 20.0, 22.0, 24.0] | [95, 101, 100, 104, 87] |
p02693 | u432098488 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA, B = map(int, input().split())\n\nif (A//K) != (B//K):\n print('Yes')\nelse:\n print('No')", "K = int(input())\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')"] | ['Wrong Answer', 'Accepted'] | ['s210738132', 's707176338'] | [9160.0, 9172.0] | [24.0, 19.0] | [110, 135] |
p02693 | u432754124 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = list(map(int, input().split()))\n\nfor i in range(a, b+1):\n\tprint(i)\n\tif i % k == 0:\n\t\tprint('OK')\n\t\texit()\nelse:\n\tprint('NG')", "k = int(input())\na, b = list(map(int, input().split()))\n\nfor i in range(a, b+1):\n\tif i % k == 0:\n\t\tprint('OK')\n\t\texit()\nelse:\n\tprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s402665570', 's964419175'] | [9212.0, 9156.0] | [22.0, 22.0] | [148, 138] |
p02693 | u433136867 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['\nimport numpy as np \n\n\ndef func_f(A,B,x):\n return -(int(A*x/B)-A*int(x/B))\n\n\n\ndef bisection(func_f, x_min, x_max, A, B, error=1e-10, max_loop=100):\n \n num_calc = 0 \n #print("{:3d}: {:.15f} <= x <= {:.15f}".format(num_calc, x_min, x_max))\n \n \n if(0.0 < func_f(A,B,x_min)*func_f(A,B,x_max)):\n #print("error: Section definition is invalid (0.0 < func_f(x_min)*func_f(x_max)).")\n quit()\n\n \n while(True):\n \n x_mid = (x_max +x_min)/2.0\n \n x_mid_max = (x_max +x_mid)/2.0\n x_mid_mim = (x_min +x_mid)/2.0\n \n \n if func_f(A,B,x_max) < func_f(A,B,x_mid):\n x_min = x_mid\n elif func_f(A,B,x_min) < func_f(A,B,x_mid):\n x_max = x_mid\n elif func_f(A,B,x_mid_max) < func_f(A,B,x_mid_mim): \n x_max = x_mid \n else: \n x_min = x_mid \n \n \n num_calc += 1 を数える\n#print("{:3d}: {:.15f} <= x <= {:.15f}".format(num_calc, x_min, x_max))\n \n \n if((x_max-x_min <= error) or max_loop <= num_calc):\n break\n\n \n #print("x = {:.15f}".format(x_mid))\n\n return x_mid\n\n\n\nif (__name__ == \'__main__\'):\n A,B,N=(int(x) for x in input().split())\n \n solution = bisection(func_f, 0, N,A,B)\n print(-func_f(A,B,solution))\n', "check=0\nK=int(input())\nA,B = (int(x) for x in input().split())\nif (A>=K and A%K == 0) or (B>=K and B%K==0):\n print('OK')\nelif B-A>=K:\n print('OK')\nelse:\n for i in range(A,B+1,1):\n if i%K == 0:\n check=1\n break\n if check == 1:\n print('OK')\n else:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s658804645', 's039131791'] | [27052.0, 9204.0] | [98.0, 24.0] | [2041, 315] |
p02693 | u435385845 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na = int(input())\nb = int(input())\n\nfor i in range(a,b+1):\n if i % k == 0:\n print("OK")\n break\nelse :\n print("NG")\n', 'k = int(input())\nabs = [int(e) for e in input().split()]\n\nfor i in range(abs[0],abs[1]+1):\n if i % k == 0:\n print("OK")\n break\nelse :\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s328106108', 's235308780'] | [9108.0, 9164.0] | [22.0, 22.0] | [139, 155] |
p02693 | u436173409 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(e) for e in input().split()]\nans='NG'\nfor i in range(a,b+1):\n if k%i == 0:\n ans='OK'\n break\n else:\n pass\nprint(ans)", "k = int(input())\na, b = [int(e) for e in input().split()]\n\nfor i in range(a,b+1):\n if k%i == 0:\n print('OK')\n break\n else:\n pass", "k = int(input())\na, b = [int(e) for e in input().split()]\nans='NG'\nfor i in range(a,b+1):\n if i%k == 0:\n ans='OK'\n break\n else:\n pass\nprint(ans)"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s122105602', 's430203354', 's778865511'] | [9104.0, 9040.0, 9092.0] | [21.0, 23.0, 24.0] | [171, 155, 171] |
p02693 | u436660228 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\nflag=False\nwhile flag:\n \n for i in range(A,B,1):\n if i % K ==0:\n print("OK")\n flag=True\n break\n\n if flag:\n break', '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()\n else:\n print("NG")', 'K=int(input())\nA,B=map(int,input().split())\na=0 \nfor i in range(A,B,1):\n if i % K ==0:\n print("OK")\n a+=1\n break \n \nelif a==0:\n print("NG")\n \n ', 'last=int(input())\nfirst=100\nr=[]\nwhile first<last:\n first=int(first*1.01)\n r.append(first)\n \nR=len(r)\n\nprint(R)', 'K=int(input())\nA,B=map(int,input().split())\nflag=False\na=0\nwhile flag:\n \n for i in range(A,B,1):\n if i % K ==0:\n print("OK")\n a+=1\n flag=True\n break \n\n if flag:\n break\n \n elif a==0:\n print("NG")\n break\n ', 'K=int(input())\nA,B=map(int,input().split())\na=0 \nfor i in range(A,B,1):\n if i % K ==0:\n print("OK")\n a+=1\n break \n \nif a==0:\n print("NG")\n \n ', 'K=int(input())\nA,B=map(int,input().split())\na=0 \nfor i in range(A,B,1):\n if i % K ==0:\n print("OK")\n a+=1\n break \n \nelif a==0:\n print("NG")\n \n ', 'K=int(input())\nA,B=map(int,input().split())\nflag=False\na=0\nwhile flag:\n \n for i in range(A,B,1):\n if i % K ==0:\n print("OK")\n a+=1\n flag=True\n break\n else: \n\n if flag:\n break\n \nif a==0:\n print("NG")\n ', 'K=int(input())\nA,B=map(int,input().split())\na=0 \nfor i in range(A,B+1):\n if i % K ==0:\n a=1\n \nif a==0:\n print("NG")\n \nelse:\n print("OK")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022542756', 's198268035', 's247365936', 's309967714', 's568646917', 's595411131', 's787481618', 's937097316', 's589858358'] | [9176.0, 9156.0, 8988.0, 9160.0, 9148.0, 8956.0, 8816.0, 9032.0, 9168.0] | [22.0, 23.0, 20.0, 21.0, 19.0, 20.0, 20.0, 21.0, 22.0] | [212, 130, 186, 114, 299, 184, 185, 292, 160] |
p02693 | u436664080 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["from sys import stdin\nimport math\nimport fractions\n\nk = int(stdin.readline().rstrip())\na, b = [int(x) for x in stdin.readline().rstrip().split()]\n\nresult = 0\nflag = False\nfor i in range(10000):\n result += k\n if (a <= result and b >= result):\n print('Yes')\n flag = True\n break\n\nif (flag == False):\n print('No')", "from sys import stdin\nimport math\nimport fractions\n\nk = int(stdin.readline().rstrip())\na, b = [int(x) for x in stdin.readline().rstrip().split()]\n\nresult = 0\nflag = False\nfor i in range(10000):\n result += k\n if (a <= result and b >= result):\n print('OK')\n flag = True\n break\n\nif (flag == False):\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s559225393', 's852985551'] | [10448.0, 10420.0] | [32.0, 32.0] | [339, 338] |
p02693 | u436982376 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int,input().split())\nflag = 0\n\nfor i in range(a, b+1):\n if i % k == 0:\n print('OK')\n flag = 1\n\nif flag == 0:\n print('NG')", "k = int(input())\na, b = map(int,input().split())\nflag = 0\n \nfor i in range(a, b+1):\n if i % k == 0 and flag == 0:\n print('OK')\n flag = 1\n \nif flag == 0:\n print('NG')\n "] | ['Wrong Answer', 'Accepted'] | ['s141832041', 's855448169'] | [9040.0, 9136.0] | [22.0, 22.0] | [157, 176] |
p02693 | u440161695 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%K==0:\n print("Yes")\n break\nelse:\n print("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 break\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s697561953', 's459944654'] | [9164.0, 9168.0] | [23.0, 22.0] | [126, 125] |
p02693 | u441246928 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 quit()\nelse : \n print('NG')\n", "K = int(input())\nA,B = map(int,input().split())\nfor i in range(A,B):\n if i % K == 0:\n print( 'OK' )\n 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')\nelse : \n print('NG')", "K = int(input())\nA,B = map(int,input().split())\nfor i in range(A,B+1):\n if i % K == 0:\n print( 'OK' )\n 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 quit()\nelse : \n print('NG')\n"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s350036858', 's854651845', 's955591693', 's965009282', 's665463732'] | [8948.0, 9176.0, 8848.0, 9160.0, 9008.0] | [23.0, 22.0, 24.0, 21.0, 23.0] | [148, 142, 132, 145, 149] |
p02693 | u441599836 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 print("OK" if a//k < b//k or a%k==0 or b%k==0 else "NG")', 'k = int(input())\na, b = map(int, input().split())\n\nif k == 1:\n print("OK")\nelse:\n if a % k == 0 or b % k == 0:\n print("OK")\n\n else:\n if a//k < b//k:\n print("OK")\n\n else:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s216157500', 's848708706'] | [8848.0, 9176.0] | [26.0, 28.0] | [112, 235] |
p02693 | u445916016 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = list(map(int, input().split(' ')))\n\n for num in range(A,B+1):\n if num % K == 0:\n print('OK')\n break\n print('NG')\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n K = int(input())\n A, B = list(map(int, input().split(' ')))\n\n for num in range(A,B+1):\n if num % K == 0:\n print('OK')\n return\n print('NG')\n\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s011463261', 's047203468'] | [9168.0, 9172.0] | [21.0, 21.0] | [232, 233] |
p02693 | u448720391 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['\nk = int(input())\na,b = map(int,input().split())\n\nif a//k == a//k:\n if a%k == 0:\n print("OK")\n else:\n print("NG")\nelse:\n print("OK")', 'k = int(input())\na,b = map(int,input().split())\n\nif a//k == b//k:\n if a%k == 0:\n print("OK")\n else:\n print("NG")\nelse:\n print("OK")'] | ['Wrong Answer', 'Accepted'] | ['s641391252', 's057191183'] | [9112.0, 9172.0] | [22.0, 25.0] | [155, 154] |
p02693 | u452512115 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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, B = map(int, input().split())\n\nflag = False\nfor x in range(A, B+1):\n if x % K == 0:\n flag = True\n \nif flag:\n print("OK")\nelse: \n print("NG")', 'X = int(input())\n\nA, B = map(int, input().split())\n\nflag = False\nfor x in range(A, B+1):\n if x % K == 0:\n flag = True\n\n\nif flag:\n print("OK")\nelse: \n print("NG")', 'X = int(input())\n\nA, B = map(int, input().split())\n\nflag = False\nfor x in range(A, B+1):\n if x % K == 0:\n flag = True\n\n\nif flag:\n print("OK")\nelse: \n print("NG")', 'K = int(input())\n\nA, B = map(int, input().split())\n\nflag = False\nfor x in range(A, B+1):\n if x % K == 0:\n flag = True\n\n\nif flag:\n print("OK")\nelse: \n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s421107625', 's843137990', 's895066607', 's113447646'] | [9104.0, 9160.0, 9108.0, 9172.0] | [22.0, 21.0, 19.0, 23.0] | [170, 167, 167, 167] |
p02693 | u453623947 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = list(map(int, input().split()))\n\nfor i in range(1000):\n if a<= k*i <= b :\n print("OK")\n exit()\n else :\n print("NG")\n\n', 'k = int(input())\na, b = list(map(int, input().split()))\n\nfor i in range(1000):\n if a<= k*i <=b :\n print("OK")\n exit()\nprint("NG") \n'] | ['Wrong Answer', 'Accepted'] | ['s675652484', 's341022382'] | [9104.0, 9160.0] | [22.0, 23.0] | [152, 154] |
p02693 | u454043187 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = A // K\nnk = K\nOK = False\nif A-B >= K:\n print('OK')\nelse:\n while nK < B:\n if (nK >= A) and (nK <= B):\n OK = True\n print('OK')\n nK = i * K\n i = i + 1\nif OK = False:\n print('NG')", "K = int(input())\nA, B = map(int, input().split())\ni = A // K\nnK = K\nOK = False\nif A-B > K:\n print('OK')\nelse:\n while nK =< B:\n if (nK >= A) and (nK <= B):\n OK = True\n print('OK')\n break\n nK = i * K\n i = i + 1\nif OK == False:\n print('NG')", "K = int(input())\nA, B = map(int, input().split())\ni = A // K\nnk = K\nOK = False\nif A-B >= K:\n print('OK')\nelse:\n while nK < B:\n if (nK >= A) and (nK <= B):\n OK = True\n print('OK')\n nK = i * K\n i = i + 1\nif OK == False:\n print('NG')", "K = int(input())\nA, B = map(int, input().split())\ni = A // K\nnK = K\nOK = False\nif A-B > K:\n print('OK')\nelse:\n while nK <= B:\n if (nK >= A) and (nK <= B):\n OK = True\n print('OK')\n break\n nK = i * K\n i = i + 1\nif OK == False:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s219782887', 's317263790', 's792223792', 's780733763'] | [8984.0, 9028.0, 9220.0, 9140.0] | [20.0, 21.0, 21.0, 23.0] | [251, 264, 252, 264] |
p02693 | u455957070 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = map(int,input().split())\nfor i in range(a,b):\n if i % k == 0:\n ans = 'OK'\n else:\n ans = 'No'\nprint(ans)", "k = int(input())\na, b = map(int, input().split())\np = a % k\nq = k - p\nif (p == 0) or ((a + q) <= b):\n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s084300126', 's218176140'] | [9032.0, 9104.0] | [24.0, 21.0] | [134, 139] |
p02693 | u456376495 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nflg=False\nfor i in range(a,b+1):\n if i % k = 0:\n flg=True\n break\nif flg:\n print('OK')\nelse:\n print('NG')\n ", "k=int(input())\na,b=map(int,input().split())\nflg=False\nfor i in range(a,b+1):\n if i % k == 0:\n flg=True\n break\nif flg:\n print('OK')\nelse:\n print('NG')\n \n"] | ['Runtime Error', 'Accepted'] | ['s722342436', 's698399481'] | [8788.0, 9108.0] | [26.0, 28.0] | [162, 164] |
p02693 | u459965464 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['\ns = input().split()\na = int(s[0])\nb = int(s[1])\nn = int(s[2])\n\nl = list()\n\nfor x in range(n):\n ans = a*(x+1)//b - a*((x+1)//b)\n l.append(ans)\n\n\nprint(max(l))\n\n \n ', "n = int(input())\nm = input().split()\na = int(m[0])\nb = int(m[1])\n \nif b//n - a//n >= 1:\n print('OK')\nelif b%n == 0:\n print('OK')\nelif a%n == 0:\n print('OK')\nelse :\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s422914239', 's949956389'] | [9176.0, 9176.0] | [22.0, 23.0] | [175, 189] |
p02693 | u461454424 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\n#input\nK = int(input())\nA, B = map(int, input().split())\n\n#output\nanswer = "NG"\nfor i in range(A, B+1):\n if i % K == 0:\n answer = "OK"\n else:\n continue\n\nprint(answer)', '#input\nK = int(input())\nA, B = map(int, input().split())\n\n#output\nanswer = "NG"\nfor i in range(A, B+1):\n if i % K == 0:\n answer = "OK"\n else:\n continue\n\nprint(answer)'] | ['Runtime Error', 'Accepted'] | ['s162458727', 's859616729'] | [9084.0, 9160.0] | [23.0, 22.0] | [188, 186] |
p02693 | u463281863 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nARGS=input().split()\nA=int(ARGS[0])\nB=int(ARGS[1])\n\nlargest=b / k * k\nif A <= largest\n print('OK')\nelse:\n print('NG')", "K=int(input())\n\nARGS=input().split()\nA=int(ARGS[0])\nB=int(ARGS[1])\n\nlargest=B / K * K\nif A <= largest\n print('OK')\nelse:\n print('NG')", "K=int(input())\n\nARGS=input().split()\nA=int(ARGS[0])\nB=int(ARGS[1])\n\nif A <= B//K*K:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s146637301', 's153713109', 's579450246'] | [8980.0, 9028.0, 9084.0] | [23.0, 23.0, 23.0] | [139, 139, 121] |
p02693 | u463704918 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(int())\nj,k=input(int())\nfor l in range(k+1)\n if j<=l*i<=k:\n break\n print("OK")\n else:\n print("NG")', 'i=int(input())\nj,k=int(input()),int(input())\nl=0\nwhile True:\n if j<=l*i<=k:\n print("OK")\n break\n elif l*i>k:\n print("NG")\n break\n l+=1', 'i=int(input())\nj,k=int(input()).split()\nl=0\nwhile True:\n if j<=l*i<=k:\n print("OK")\n break\n elif l*i>k:\n print("NG")\n break\n l+=1\n', 'i=int(input())\nj,k=(int(x) for x in input().split())\nl=0\nwhile True:\n if j<=l*i<=k:\n print("OK")\n break\n elif l*i>k:\n print("NG")\n break\n l+=1\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s168870056', 's300425280', 's353153439', 's893985506'] | [9016.0, 9104.0, 9160.0, 9048.0] | [23.0, 23.0, 20.0, 24.0] | [117, 171, 167, 180] |
p02693 | u464440434 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\na = (B//K) - (A//K)\n\nif A==B:\n if A % K = 0:\n print("OK")\n\n else:\n print("NG")\n\nelse:\n if a==0:\n print("NG")\n \n else:\n print("OK")', 'K = int(input())\nA,B = map(int,input().split())\n\na = (B//K) - (A//K)\n\nif A==B:\n if A % K = 0:\n print("OK")\n\n else:\n print("NG")\n\nif a==0:\n print("NG")\n\nelse:\n print("OK")', 'K = int(input())\nA,B = map(int,input().split())\n\na = (B//K) - (A//K)\n\nif A%K == 0:\n print("OK")\n\nelif B%K == 0:\n print("OK")\n\nelse:\n if A % K == 0:\n print("OK")\n \n else:\n print("NG")\n \n\n if a==0:\n print("NG")\n \n else:\n print("OK")', 'K = int(input())\nA,B = map(int,input().split())\n\na = (B//K)*K - A\n\nif a < 0:\n print("NG")\n\nelse:\n print("OK") \n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s411330105', 's443965451', 's619048214', 's553500040'] | [9012.0, 8892.0, 9132.0, 9144.0] | [20.0, 21.0, 20.0, 21.0] | [222, 196, 289, 117] |
p02693 | u465652095 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nfor i in range(1000):\n if A <= K*i and K*i <= B:\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")'] | ['Wrong Answer', 'Accepted'] | ['s875741623', 's420889669'] | [9176.0, 9168.0] | [22.0, 21.0] | [152, 146] |
p02693 | u465900169 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = [int(x) for x in input().split()]\nfor i in range(A, B+1):\n if i%k == 0:\n print("OK")\n sys.exit()\nprint("NG")', 'import sys\nK = int(input())\nA, B = [int(x) for x in input().split()]\nfor i in range(A, B+1):\n if i%K == 0:\n print("OK")\n sys.exit()\nprint("NG")'] | ['Runtime Error', 'Accepted'] | ['s246663251', 's056725071'] | [9172.0, 9172.0] | [22.0, 24.0] | [150, 150] |
p02693 | u467881696 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['import numpy as np\ns= int(input())\nList = list(map(int, input().split()))\narray = list()\nfor i in range(List[0],List[1]):\n if s == 1:\n print("OK")\n break\n if i % s == 0:\n print("OK")\n break\n else:\n array.append("NG")\nif not (\'OK\' in array):\n print("NG")', 'A, B = int(input())\ns = int(input().split())\nif s == 1:\n print("OK")\nif s < A:\n print("NG")\nif s > B:\n print("NG")\nprint("OK")', 'import numpy as np\ns= int(input())\nList = list(map(int, input().split()))\narray = list()\nfor i in range(List[0],List[1]+1):\n if s == 1:\n array.append("OK")\n break\n if i % s == 0:\n array.append("OK")\n break\nif (\'OK\' in array):\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s321796109', 's324167235', 's148284664'] | [27136.0, 9168.0, 27128.0] | [104.0, 24.0, 101.0] | [300, 135, 297] |
p02693 | u468663659 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nA_bai = int(A/K)\nB_bai = int(B/K)\n\nif A_bai != B_bai:\n print("OK")\nelse if (A%K == 0) || (B%K == 0):\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\n\nA_bai = int(A/K)\nB_bai = int(B/K)\n\nif A_bai != B_bai:\n print("OK")\nelif (A%K == 0) or (B%K == 0):\n print("OK")\nelse:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s284261338', 's692633871'] | [8892.0, 9064.0] | [21.0, 22.0] | [187, 184] |
p02693 | u468972478 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 if i % n == 0:\n print("OK")\n break\nprint("NO")', 'n = int(input())\na, b = map(int, input().split())\nans = 0\nfor i in range(a, b + 1):\n if i % n == 0:\n ans += 1\n break\nprint("OK" if ans == 1 else "NG")'] | ['Wrong Answer', 'Accepted'] | ['s773620641', 's514252605'] | [9116.0, 9172.0] | [29.0, 30.0] | [130, 157] |
p02693 | u471503862 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = list(map(int, input().split()))\nA = a[0]\nB = a[1]\nN = a[2]\n \nif N%B !=0:\n x_1 = (N//B)*B-1\n if x_1 == -1:\n x_1 = N\n x_2 = N\nelif N == 1 or B ==1:\n x_1 =N\n x_2 =N\n\nelse:\n x_1 = N-1\n x_2 = N-1\nans_1 = math.floor(A*x_1/B)-A*math.floor(x_1/B)\nans_2 = math.floor(A*x_2/B)-A*math.floor(x_2/B)\nif ans_1 >= ans_2:\n print(ans_1)\nelse:\n print(ans_2)', "k = int(input())\na = list(map(int, input().split()))\n\nif a[1]//k != a[0]//k:\n print('OK')\nelif a[0]%k == 0:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s097566804', 's177155541'] | [9196.0, 9176.0] | [20.0, 19.0] | [369, 142] |
p02693 | u473234731 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['#-*- using:utf-8 -*-\n\nk = int(input())\na, b = map(int, input().split())\nif(a<=k and k<=b):\n print("OK")\nelse:\n print("NG")', '#-*- using:utf-8 -*-\n\nk = int(input())\na, b = map(int, input().split())\nwhile a<=b:\n if(a%k==0):\n print("OK")\n break\n elif a==b:\n print("NG")\n break\n else:\n a += 1'] | ['Wrong Answer', 'Accepted'] | ['s888336213', 's354226722'] | [9156.0, 9172.0] | [20.0, 20.0] | [128, 207] |
p02693 | u478132434 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\n\nc = 0\n\nfor i in range(a,b+1):\n if i == k:\n c += 1\n \nif (c == 0):\n print('NG')\nelse:\n print('OK')", "k = int(input())\na, b = map(int, input().split())\n\nc = 0\n\nfor i in range(a,b+1):\n if i % k == 0:\n c += 1\n \nif (c == 0):\n print('NG')\nelse:\n print('OK')"] | ['Wrong Answer', 'Accepted'] | ['s753582256', 's139208235'] | [9172.0, 9180.0] | [24.0, 21.0] | [170, 174] |
p02693 | u479484272 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B =input().split()\n\nprint(int(A)//K+1)\nprint(int(B)//K)\n\nif (((int(A)//K)+1) <= (int(B)//K)):\n print("OK")\nelif(K==1):\n print("OK")\nelse:\n print("NG")\n', 'K=int(input())\nA,B =input().split()\n\nif (((int(A)//K)+1) <= (int(B)//K)):\n print("OK")\nelif(K==1):\n print("OK")\nelif(int(A)%K==0):\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s197763769', 's770554299'] | [9176.0, 9180.0] | [21.0, 21.0] | [177, 175] |
p02693 | u479719434 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\n\nif A//K - (B-1)//K > 0:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\n\nif B//K - (A-1)//K > 0:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s957558829', 's555746547'] | [9156.0, 9152.0] | [20.0, 23.0] | [113, 113] |
p02693 | u486209657 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA,B = map(int, input().split())\n\nif A%K==0 or B%K==0 or ABS(B-A)>=K:\n print('OK')\nelse:\n print('NG')\n", "K = int(input())\nA,B = map(int, input())\n\nif A%K==0 or B%K==0 or ABS(B-A)>=K:\n print('OK')\nelse:\n print('NG')", "K = int(input())\nA,B = map(int, input().split())\n\nfor num in range(A, B+1, 1):\n if num % K == 0:\n print('OK')\n break\nelse:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s231575943', 's310599584', 's378993927'] | [9164.0, 9088.0, 9120.0] | [31.0, 25.0, 29.0] | [120, 111, 143] |
p02693 | u492959898 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nx = min(b-1,n)\nprint(int(a*x/b)-a*int(x/b))', 'k=input()\na,b = map(int, input().split())\nans="NG"\nwhile a <= b:\n if a%k=0:\n ans ="OK"\n else:\n a=a+1\nprint(ans)', 'import math\nk=int(input())\na,b = map(int, input().split())\nans="NG"\n\nwhile a <= b:\n\tif a%k==0:\n\t\tans ="OK"\n\t\ta=b+1\n\telse:\n\t\ta=a+1\n\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s170799303', 's336266231', 's353341727'] | [8888.0, 8912.0, 9180.0] | [19.0, 20.0, 20.0] | [75, 119, 141] |
p02693 | u493318999 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\tif i%k == 0:\n \tprint('OK')\n exit()\nprint('NG')", "k = int(input())\na,b = map(int,input().split())\nfor i in range(a,b+1):\n if i%k == 0:\n print('OK')\n exit()\nprint('NG')"] | ['Runtime Error', 'Accepted'] | ['s008358035', 's473499444'] | [8996.0, 9172.0] | [22.0, 24.0] | [128, 134] |
p02693 | u494295478 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=(input().split())\nA=int(A)\nB=int(B)\n\n\nfor n in range(1,10):\n if A<=K*n and K*n<=B:\n print("OK")\n i="ok"\n break\n else:\n i="ng"\n \nif i == "ng":\n print("NG")', 'K=int(input())\nA,B=(input().split())\nA=int(A)\nB=int(B)\n\ns=range(A,B+1) \nfor n in range(1,1000): \n if K*n in s:\n print("OK")\n break\n if K==1:\n print("OK")\n break\nelse:\n print("NG")\n '] | ['Wrong Answer', 'Accepted'] | ['s396942437', 's832969882'] | [9040.0, 9080.0] | [24.0, 23.0] | [213, 252] |
p02693 | u498575211 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = list(map(int, input().split()))\n\nans = "NG"\n\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 = list(map(int, input().split()))\n\nans = "NG"\n\nfor i in range(A, B+1):\n #print(i)\n if i % K == 0:\n ans = "OK"\n break\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s903670184', 's834502693'] | [9180.0, 9172.0] | [21.0, 21.0] | [157, 158] |
p02693 | u500297289 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\nA, B = map(int, input().split())\n\nwhile K <= 1000:\n if K >= A and K <= B:\n print('OK')\n exit()\n K += K\n\nprint('NG')\n", "K = int(input())\nA, B = map(int, input().split())\nnow = K\nwhile now <= 1000:\n if now >= A and now <= B:\n print('OK')\n exit()\n now += K\n\nprint('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s301837375', 's573677632'] | [9156.0, 9104.0] | [22.0, 21.0] | [141, 156] |
p02693 | u505181116 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(" "))\ncan = False\nfor i in range(a,b+1):\n if k % i == 0:\n can = True\nif can:\n print("OK")\nelse:\n print("NG")\n', 'k = int(input())\na,b = map(int,input().split().split(" "))\ncan = False\nfor i in range(a,b+1):\n if k % i == 0:\n can = True\nif can:\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na,b = map(int,input().split(" "))\ncan = False\nfor i in range(a,b+1):\n if i % k == 0:\n can = True\nif can:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s289387649', 's780015823', 's890636853'] | [9168.0, 9176.0, 9144.0] | [24.0, 21.0, 20.0] | [160, 167, 160] |
p02693 | u505825680 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()))\nflg = False\nfor i = range(a, b+1):\n if i % k == 0:\n print("OK")\n flg = True\n break\nprint("NO") if not(flg)', 'k = int(input())\na, b = list(map(int, input().split()))\nfor i = range(a, b+1):\n if i % k == 0:\n print("OK")\n return\nprint("NO")\n', 'k = int(input())\na, b = list(map(int, input().split()))\nflg = False\nfor i in range(a, b+1):\n if i % k == 0:\n print("OK")\n flg = True\n break\nprint("NO") if not(flg)', 'k = int(input())\na, b = list(map(int, input().split()))\nflg = False\nfor i in range(a, b+1):\n if i % k == 0:\n flg = True\n break\nif flg:\n print("YES")\nelse:\n print("NO")', 'k = int(input())\na, b = list(map(int, input().split()))\nflg = False\nfor i in range(a, b+1):\n if i % k == 0:\n flg = True\n break\nif flg:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s135184710', 's561655328', 's814582382', 's900324516', 's782062352'] | [9020.0, 9012.0, 9040.0, 9180.0, 9172.0] | [25.0, 22.0, 24.0, 23.0, 19.0] | [172, 135, 173, 176, 175] |
p02693 | u507145838 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['#-*-ccoding:utf-8-*-\nk = int(input())\na, b = map(int, input().split())\nis_ok = False\n\nfor i in range(a,b+1):\n if i % k == 0:\n is_ok = true\n \nif is_ok:\n print("OK")\nelse:\n print("NG")', '#-*-ccoding:utf-8-*-\nk = int(input())\na, b = map(int, input().split())\nis_ok = False\n \nfor i in range(a,b+1):\n if i % k == 0:\n is_ok = True\n \nif is_ok:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s280252656', 's754730500'] | [9176.0, 9180.0] | [21.0, 23.0] | [191, 192] |
p02693 | u508061226 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 <= (a // k) * k and (a // k) * k <= b:\n print("OK")\nelse:\n print("NG")', 'k = int(input());\na, b = map(int, input().split());\n\nif (a // k) * k == a or (a // k + 1) * k <= b:\n print("OK");\nelse:\n print("NG");'] | ['Wrong Answer', 'Accepted'] | ['s241942991', 's193641277'] | [9168.0, 9100.0] | [24.0, 21.0] | [130, 135] |
p02693 | u509029769 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 A%K == 0 and B%K == 0 and A<=i*K<=B:\n print("OK")\n else:\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\n\nans = 0\nng = 0\nfor i in range(A,B+1):\n if i % K == 0:\n print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s098372180', 's820636463'] | [9148.0, 9156.0] | [28.0, 29.0] | [165, 161] |
p02693 | u510434738 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = input().split()\nA = int(A)\nB = int(B)\n\nans = "NG"\nfor i in range(B+1):\n if A <= K * i and K * i <= B:\n ans = "OK"\n break\n', 'K = int(input())\nA, B = input().split()\nA = int(A)\nB = int(B)\n\nans = "NG"\nfor i in range(B+1):\n if A <= K * i and K * i <= B:\n ans = "OK"\n break\n\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s352740096', 's192796831'] | [9020.0, 9164.0] | [21.0, 21.0] | [162, 174] |
p02693 | u510814835 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nx = int(input())\nbase = 100\nyear = 0\nwhile x > base:\n year += 1\n base = int(base * 1.01)\nprint(year)', '#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nk = int(input())\na,b = map(int,(input().split()))\nif b%k == 0:\n kb = b\nelse:\n kb = int(b / k) * k\nif a <= kb:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s253655483', 's558834297'] | [9016.0, 9100.0] | [21.0, 20.0] | [153, 199] |
p02693 | u515638999 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 if(n%i==0):\n print("OK")\n exit(0)\nprint("NG")', 'n = int(input())\na, b = map(int, input().split())\nfor i in range(a, b+1):\n if(i%n==0):\n print("OK")\n exit(0)\nprint("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s206840358', 's482844888'] | [9024.0, 9132.0] | [27.0, 25.0] | [127, 128] |
p02693 | u517621096 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b + 1):\n if i % k == 0:\n print('Yes')\n exit()\n\nprint('No')", "k = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b + 1):\n if i % k == 0:\n print('OK')\n exit()\n\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s928108023', 's288666369'] | [9164.0, 9116.0] | [24.0, 23.0] | [144, 143] |
p02693 | u518929058 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()))\nif(k >= a and ((k / b) <= a and (k / b) <= b)):\n print('OK')\nelse:\n print('NG')", "k = int(input())\na, b = list(map(int, input().split()))\nif(k >= a and ((k / b) <= a and (k / b) =< b)):\n print('OK')\nelse:\n print('NG')\n", "import math\nk = int(input())\na, b = list(map(int, input().split()))\nmul = math.floor(b/k) * k\n\nif(mul >= a and (mul >= a and mul <= b)):\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s748570882', 's866328281', 's043670860'] | [9200.0, 8976.0, 9084.0] | [29.0, 30.0, 29.0] | [141, 142, 174] |
p02693 | u521518741 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\na, b = map(int, input().split())\nans = 'NG'\nfor i in range(a, b+1):\n if i % K == 0:\n ans = 'OK'\n\tbreak\nprint(ans)", "def resolve():\n K = int(input())\n a, b = map(int, input().split())\n ans = 'NG'\n for i in range(a, b + 1):\n if i % K == 0:\n ans = 'OK'\n break\n print(ans)\n\nresolve()"] | ['Runtime Error', 'Accepted'] | ['s952960126', 's635094816'] | [9020.0, 9168.0] | [25.0, 22.0] | [134, 207] |
p02693 | u525722336 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K=int(input())\nA=int(input())\nB=int(input())\n\nif ('A,B%K==0'):\n print('OK')\nelse:\n print('NG')", "K=int(input())\nA=int(input())\nB=int(input())\nif A>=1 and B<=1000:\n print('OK')\nelse:\n print('NG')", 'k = int(input())\na, b = map(int, input().split())\nx = b // k * k\nif a <= x:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s226039236', 's379938678', 's242514939'] | [8952.0, 9160.0, 9112.0] | [22.0, 25.0, 24.0] | [96, 99, 113] |
p02693 | u526094365 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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:\n print('OK')\nelif K == 1:\n print('OK')\nelif A == B and K % A == 0:\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"] | ['Wrong Answer', 'Accepted'] | ['s537778571', 's376130230'] | [9164.0, 9152.0] | [26.0, 20.0] | [183, 109] |
p02693 | u527454768 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(sys.stdin.readline())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if i%K==0:\n return "OK"\n return "NG"', 'K=int(input())\nA,B = map(int, input().split())\ncount=0\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n count+=1\nif count==0:\n print("NG")\n \n ', 'K=int(input())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if i%K==0:\n return "OK"\n return "NG"', 'K=int(input())\ninp=input().split(\' \')\nA=int(inp[0])\nB=int(inp[1])\nfor i in range(A,B+1):\n if i%K==0:\n return "Yes"\n return "No"', 'K = int(sys.stdin.readline())\nA, B = map(int,sys.stdin.readline().split() )\nfor i in range(A,B+1):\n if i%K==0:\n return "OK"\n return "NG"', 'import sys\nK = int(sys.stdin.readline())\nA, B = map(int,sys.stdin.readline().split() )\nfor i in range(A,B+1):\n if i%K==0:\n return "OK"\n return "NG"', 'K=int(input())\nA,B = map(int, input().split())\ncount=0\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n count+=1\n break\nif count==0:\n print("NG")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s035373425', 's045583657', 's360454978', 's557753599', 's561674175', 's644224517', 's859763892'] | [9060.0, 9168.0, 8908.0, 9044.0, 9088.0, 9096.0, 9172.0] | [20.0, 23.0, 21.0, 22.0, 20.0, 21.0, 22.0] | [136, 162, 121, 140, 149, 160, 172] |
p02693 | u531219227 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nflag=True\nfor i in range(A,B+1):\n if K % i ==0:\n print("OK")\n flag=False\n break\nif flag:\n print("NG")', 'K = int(input())\n\nA,B = map(int,input().split())\nflag=True\nfor i in range(A,B+1):\n if K % i ==0:\n print("OK")\n flag=False\n break\nif flag:\n print("NG")', 'K = int(input())\nA,B=map(int,input().split())\nflag=True\nfor i in range(A+1,B+1):\n if K % i == 0:\n print("OK")\n flag = False\n break\n \nif flag:\n print("NG")', 'K = int(input())\n\nA,B = map(int,input().split())\nflag=True\nfor i in range(A,B+1):\n if i % K ==0:\n print("OK")\n flag=False\n break\nif flag:\n print("NG")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s448002197', 's606429674', 's733826432', 's456926949'] | [9132.0, 9172.0, 9184.0, 9156.0] | [21.0, 24.0, 21.0, 23.0] | [161, 161, 166, 161] |
p02693 | u531374611 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K=int(input())\nA,B=(int(x) for x in input().split())\nif (A%K)>=B-A:print('OK')\nelse:print('NG')\n", "K=int(input())\nA,B=(int(x) for x in input().split())\nif (A%K)>B-A:print('OK')\nelse:print('NG')\n", "K=int(input())\nA,B=(int(x) for x in input().split())\nif K-(A%K)<=B-A or A%K==0:print('OK')\nelse:print('NG')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s227710212', 's417551025', 's680001244'] | [9096.0, 9160.0, 9156.0] | [21.0, 23.0, 23.0] | [96, 95, 108] |
p02693 | u531599639 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nm = 0\nfor i in range(A, B+1):\n if i%K == 0:\n break\n m = 1\n print('OK')\nif m == 0:\n print('NG')", "K = int(input())\nA, B = map(int, input().split())\nm = 0\nfor i in range(A, B+1):\n if i%K == 0:\n m = 1\nprint('OK' if m==1 else 'NG')"] | ['Wrong Answer', 'Accepted'] | ['s683070455', 's525659698'] | [9076.0, 9104.0] | [22.0, 21.0] | [155, 134] |
p02693 | u534610124 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A,B,N = list(map(int, input().split()))\nres = 0\n\nfor x in range(1,N+1):\n if A <= res:\n break\n else:\n res = int(A*x/B)- A* int(x/B)\n\nprint(res) \n\n\n', 'K = int(input())\nA,B = input().split()\nA = int(A)\nB = int(B)\n\ni = 1\nwhile True:\n k = K*i\n if A <= k and k <= B:\n print("OK")\n break\n if B < k:\n print("NG")\n break\n i += 1\n '] | ['Runtime Error', 'Accepted'] | ['s496862492', 's711288080'] | [9164.0, 9028.0] | [21.0, 23.0] | [166, 215] |
p02693 | u538296348 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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().split()\nA=int(AB[0])\nB=int(AB[1])\nfor i in rage(A,B+1):\n i=567\n if(i%K==0):\n print('OK')\n exit()\nprint('NG')\n", "K=int(input())\nAB=input().split()\nA=int(AB[0])\nB=int(AB[1])\nfor i in range(A,B+1):\n if(i%K==0):\n print('OK')\n exit()\nprint('NG')"] | ['Runtime Error', 'Accepted'] | ['s737365755', 's378632804'] | [9172.0, 9176.0] | [21.0, 24.0] | [155, 145] |
p02693 | u539514977 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nmoney = 100\nyear=0\ni=0\nwhile i>=0:\n if money>=X:\n print(year)\n break\n else:\n money=int(money*1.01)\n year += 1', 'A,B,N = map(int,input().split())\nx = min(N, B-1)\na = A*x//B - A*(x//B)\nprint(a)\n', 'A,B,N = map(int,input().split())\nx = N\na = 0\nwhile x>999*N//1000:\n if x%B != 0 and a < A*x//B - A*(x//B):\n a = A*x//B - A*(x//B)\n x -= 1\n else:\n x -= 1\nprint(a)', 'A,B,N = map(int,input().split())\nx = 0\na = 0\nwhile x <= B-1:\n if x%B != 0 and a < A*x//B - A*(x//B):\n a = A*x//B - A*(x//B)\n x -= 1\n else:\n x -= 1\nprint(a)\n', 'K = int(input())\nA,B = map(int,input().split())\ni=1\nwhile i<=B:\n if K*i>=A and K*i<=B:\n print("OK")\n break\n else:\n i += 1\nif i == B+1:\n print("NG")\n '] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s261159604', 's514131671', 's640831553', 's901920067', 's936037215'] | [9164.0, 9036.0, 9140.0, 9020.0, 9184.0] | [20.0, 23.0, 24.0, 22.0, 22.0] | [140, 80, 171, 167, 162] |
p02693 | u542267798 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nrange_d = [int(i) for i in input().split()]\nmin_d = range_d[0]\nmax_d = range_d[1]\n\nflag = False\nif max_d < target:\n flag = \nelse:\n for i in range(min_d,max_d+1):\n if i%target == 0:\n flag = True\n break\n\tprint('OK') if flag else print('NG')", 'target = int(input())\nrange_d = [int(i) for i in input().split()]\nmin_d = range_d[0]\nmax_d = range_d[1]\n\nflag = False\nif max_d < target:\n print("NG")\nelse:\n for i in range(min_d,max_d+1):\n if i%target == 0:\n flag = True\n break\n print(\'OK\') if flag else print(\'NG\')'] | ['Runtime Error', 'Accepted'] | ['s970344862', 's051643072'] | [8748.0, 9184.0] | [24.0, 22.0] | [275, 280] |
p02693 | u542739769 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = B // K \nans1 = ans * K\n\nif (ans1 >= B):\n print('OK')\nelse:\n print('NG')\n", "K = int(input())\nA, B = map(int, input().split())\n\nans = B // K \nans1 = ans * K\n\nif (ans1 >= A and ans1 <= B):\n print('OK')\nelse:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s813803852', 's932312666'] | [9096.0, 9164.0] | [23.0, 24.0] | [131, 145] |
p02693 | u544272759 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = input()\na, b = map(int, input().split())\n \nfor i in range(a,b+1):\n if i%k == 0:\n print("OK")\n break\nelse:\n print("NG")', 'k = input()\na, b = map(int, input().split())\n \nfor i in range(a,b):\n if i%k == 0:\n print("OK")\n break\nelse:\n print("NG")', 'k = input()\na, b = map(int, input().split())\n\nfor i in range(a,b+1):\n if i%k == 0:\n print("OK")\n break\n else:\n print("NG")\n ', 'k = int(input())\na, b = map(int, input().split())\n \nfor i in range(a,b+1):\n if i%k == 0:\n print("OK")\n break\nelse:\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s477050775', 's515248828', 's884542780', 's019437522'] | [9116.0, 9160.0, 9060.0, 9176.0] | [22.0, 24.0, 22.0, 22.0] | [132, 128, 138, 135] |
p02693 | u547375079 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(s) for s in input().split()]\n \nlargest = B // K * K\n\nprint("OK" if largest >= a else "NG")', 'K = int(input())\nA, B = [int(s) for s in input().split()]\n \nlargest = B // K * K\n \nprint("OK" if largest >= A else "NG")'] | ['Runtime Error', 'Accepted'] | ['s641665684', 's804165853'] | [9016.0, 9100.0] | [20.0, 19.0] | [119, 120] |
p02693 | u547764399 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\ncount = 0\n\nfor i in range(x, y + 1):\n print(i)\n if i % a == 0:\n count += 1\n\nif count >= 1:\n print("OK")\nelse:\n print("NG")', 'a=int(input())\nx,y = map(int,input().split())\ncount = 0\n\nfor i in range(x, y + 1):\n if i % a == 0:\n count += 1\n\nif count >= 1:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s864024643', 's418951177'] | [9120.0, 9176.0] | [23.0, 22.0] | [187, 174] |
p02693 | u548545174 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['from itertools import combinations_with_replacement\nimport numpy as np\n\nN, M, Q = map(int, input().split())\n\nG = [list(map(int, input().split())) for _ in range(Q)]\n\nans = 0\n\n\n\n\nA = np.array(list(combinations_with_replacement(range(1, M + 1), N)))\nscores = np.zeros(len(A))\nfor g in G:\n a, b, c, d = g\n cond = A[:, b - 1] - A[:, a - 1] == c\n scores += d * cond\nprint(scores.max())', '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 import sys\n sys.exit()\nprint("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s033322684', 's822435680'] | [26960.0, 9092.0] | [105.0, 24.0] | [545, 164] |
p02693 | u548684908 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["K = int(input())\na,b = list(map(int, input().split()))\n\nfor i in range(a,b+1)\n if i % K == 0:\n print('OK')\n exit()\nprint('NG')", "K = int(input())\na,b = list(map(int, input().split()))\n\nfor i in range(a,b+1):\n if i % K == 0:\n print('OK')\n exit()\nprint('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s422639318', 's053995898'] | [9016.0, 9152.0] | [20.0, 21.0] | [144, 146] |
p02693 | u553459461 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nbool flag=true\nfor i in range(a,b+1):\n if(a%k==0):\n print("OK")\n flag=false\n \tbreak\nif(flag):\n print("NG")', 'k = int(input())\na,b = map(int, input().split())\n\nflag=1\nwhile(a<=b):\n if(a%k==0):\n print("OK")\n flag=0\n break\n a+=1\nif(flag):\n\tprint("NG")'] | ['Runtime Error', 'Accepted'] | ['s539470699', 's436387363'] | [9036.0, 9200.0] | [22.0, 23.0] | [165, 166] |
p02693 | u556477263 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nfor i in range(a,b + 1):\n print(i)\n if i % k == 0:\n print('OK')\n exit()\n\nprint('NG')", "k = int(input())\n\na, b = map(int, input().split())\n\nfor i in range(a,b + 1):\n if i % k == 0:\n print('OK')\n exit()\n\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s306750536', 's041551167'] | [9108.0, 9168.0] | [30.0, 26.0] | [156, 143] |
p02693 | u556589653 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\ndef equation(a,b,n):\n return math.floor((a*n)/b)-a*math.floor(n/b)\nd,e,f = map(int,input().split())\nK = min(e-1,f)\nprint(equation(K))\n', 'K = int(input())\nA,B = map(int,input().split())\nflag = 0\nfor i in range(A,B+1):\n if i%K == 0:\n flag += 1\n print("Yes")\n break\nif flag == 0:\n print("NG")', 'K = int(input())\nA,B = map(int,input().split())\nflag = 0\n\nfor i in range(A,B+1):\n\n if i%K == 0:\n flag += 1\n print("OK")\n break\nif flag == 0:\n print("NG")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s709547568', 's913250156', 's035224123'] | [9036.0, 9168.0, 8892.0] | [23.0, 28.0, 29.0] | [147, 163, 299] |
p02693 | u557494880 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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'\nif A % K == 0:\n ans = 'OK'\nelif B % K == 0:\n ans = 'OK'\nx = A // K\ny = A // K\nif y > x:\n ans = 'OK'\nprint(ans)", "K = int(input())\nA,B = map(int,input().split())\nans = 'NG'\nif A % K == 0:\n ans = 'OK'\nelif B % K == 0:\n ans = 'OK'\nx = A // K\ny = B // K\nif y > x:\n ans = 'OK'\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s031961079', 's800685100'] | [9180.0, 9172.0] | [23.0, 21.0] | [178, 179] |
p02693 | u559346857 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['a=int(input())\nb,c=map(int,input().split())\n\nflag=False\nfor i in range(a,b+1):\n if i%a==0:\n flag=True\n break\nprint("OK" if flag else "NG")\n \n \n\n\n', 'a=int(input())\nb,c=map(int,input().split())\n\nflag=False\nfor i in range(b,c+1):\n if i%a==0:\n flag=True\n break\nprint("OK" if flag else "NG")'] | ['Runtime Error', 'Accepted'] | ['s649874681', 's054109426'] | [8932.0, 9112.0] | [25.0, 24.0] | [153, 146] |
p02693 | u559367141 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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")', 'k = int(input())\na,b = map(int, input().split())\nc = b-a\nfor i in range(c, b+1):\n if i % k == 0:\n print(\'OK\')\n break\n else:\n print("NG")', 'k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s499293272', 's724866477', 's355284023'] | [9060.0, 9144.0, 9076.0] | [28.0, 27.0, 30.0] | [150, 157, 137] |
p02693 | u567664824 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()]\nflag=0\nfor i in range(1,1001):\n if(iK>=A and iK<=B):\n print("OK")\n flag=1\n break\n\tif (flag==0):\n \tprint("NG")', 'K = int(input())\nA,B = [int(j) for j in input().split()]\nflag=0\nfor j in range(1,1001):\n if(jK>=A and jK<=B):\n print("OK")\n flag=1\n break\nif (flag==0):\n print("NG")', 'K = int(input())\nA,B = [int(i) for i in input().split()]\nflag=0\nfor i in range(1,1001):\n if(i*K>=A and i*K<=B):\n print("OK")\n flag=1\n break\nif (flag==0):\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s441908086', 's794658686', 's495853357'] | [8968.0, 9180.0, 9188.0] | [24.0, 24.0, 19.0] | [193, 191, 193] |
p02693 | u568559987 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nq, r = divmod(a, k)\nQ, R = divmod(b, k)\n\nif q > Q:\n print('OK')\nelse:\n if r == 0:\n print('OK')\n else:\n print('NG')\n", "k = int(input())\na, b = map(int, input().split())\n\nq, r = divmod(a, k)\nQ, R = divmod(b, k)\n\nif q < Q:\n print('OK')\nelse:\n if r == 0:\n print('OK')\n else:\n print('NG')\n"] | ['Wrong Answer', 'Accepted'] | ['s154999209', 's340293927'] | [9176.0, 9160.0] | [23.0, 22.0] | [189, 189] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.