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 | u094425865 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["import sys\n\nk = int(input())\na,b = map(int,input().split())\n\nif k==1:\n print('OK')\n sys.exit()\nwk = b-a\nif (wk//k)>= 1:\n print('Ok')\nelse:\n print('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\nwk = a\nwhile wk <=b:\n if wk%k==0:\n print('Ok') \n sys.exit() \n else:\n wk+=1\nprint('NG')", "k = int(input())\na,b = map(int,input().split())\n\nwk = (b//k)\nif wk*k >=a:\n print('Ok') \nelse:\n print('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\nif k==1:\n print('Ok') \n sys.exit() \n\nwk = (a//k)+1\nwhile wk*k <=b:\n if wk*k<=b:\n print('Ok') \n sys.exit() \n else:\n wk+=1\nprint('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\nif k==1:\n print('Ok') \n sys.exit() \n\nwk = (a//k)+1\nwhile wk <=b:\n if wk*k<=b:\n print('Ok') \n sys.exit() \n else:\n wk+=1\nprint('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\n#if k==1:\n # print('Ok') \n# sys.exit() \n\nwk = (a//k)\nwhile wk*k <=b:\n print('Ok') \n sys.exit() \n wk+=1\n\nprint('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\ni =1\nwk =a\nif k==1:\n print('OK')\n sys.exit()\nwhile wk <=a:\n wk =i*k\n i+=1\nif wk <b:\n print('Ok')\nelse:\n print('NG')", "import sys\n\nk = int(input())\na,b = map(int,input().split())\n\n#if k==1:\n # print('Ok') \n# sys.exit() \n\nwk = (a//k)\nwhile wk*k <=b:\n print('Ok') \n sys.exit() \n wk+=1\n\nprint('NG')\n", "k = int(input())\na,b = map(int,input().split())\n\nwk = (b//k)\nif wk*k >=a:\n print('OK') \nelse:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s130589343', 's131119770', 's139046051', 's407248943', 's569914332', 's837319447', 's915578929', 's989270090', 's631933543'] | [9180.0, 9168.0, 9164.0, 9184.0, 9184.0, 9172.0, 9152.0, 8976.0, 9164.0] | [20.0, 21.0, 24.0, 21.0, 25.0, 19.0, 22.0, 21.0, 22.0] | [163, 181, 113, 238, 236, 199, 194, 200, 113] |
p02693 | u095844416 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 print(i)\n if i % k == 0:\n print('OK')\n break\nelse:\n print('NG')", "k=int(input())\na,b=map(input().split())\nfor i in range(a<b):\n\tif range(a<b)%k==0:\n\t\tprint('OK')\n else:\n \tprint('NG')\n", "k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print('OK')\n break\nelse:\n print('NG')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s204610259', 's575059895', 's522856647'] | [9068.0, 8916.0, 9060.0] | [23.0, 26.0, 23.0] | [140, 123, 129] |
p02693 | u096163895 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nnum = list(map(int, input().split()))\ncheck = False\nfor i in num:\n if (i % k == 0):\n check = True\n break\nprint("OK" if check else "NG")', 'k = int(input())\nnum = list(map(int, input().split()))\nchecker = False\nfor i in num:\n if i%k == 0:\n checker = True\n break\nprint("OK" if checker else "NG")', 'k = int(input())\na, b = map(int, input().split())\nchecker = False\nif a!=b:\n for i in range(a,b+1):\n if i%k == 0:\n checker = True\n break\nelse:\n if a%k == 0:\n checker = True\nprint("OK" if checker else "NG")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s247336296', 's868968149', 's126333998'] | [9148.0, 9168.0, 9116.0] | [25.0, 20.0, 24.0] | [159, 161, 224] |
p02693 | u097069712 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nif A <= K <= B and A or B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'K,A,B = map(int,input().split())\nif A <= B % K == 0 and A or B % K == 0:\n\tprint("OK")\nelse:\n print("NG")\n', 'K,A,B = map(int,input().split())\nif A or B % K == 0:\n\tprint("OK")\nelse:\n print("NG")', 'K,A,B = map(int,input().split())\nif A <= B and A or B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'K,A,B = map(int,input().split())\nA <= B \nif A or B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'a,b,k = map(int,input().split())\nif a or b % k ==0:\n\tprint("OK")\nelse:\n print("NG"', 'a,b,k = map(int,input().split())\nif a or b % k ==0:\n\tprint("OK")\n else:\n print("NG")', 'K,A,B = map(int,input().split())\nif A and B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'K,A,B = map(int,input().split())\nif A <=B % K == 0:\n\tprint("OK")\nelse:\n print("NG")\n', 'a,b,k = map(int,input().split())\nif a or b % k ==0:\n\tprint("OK")\n else:\n print("NG")', 'K,A,B = map(int,input().split())\nif A <= B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'K,A,B = map(int,input().split())\nif A <= B % K == 0 and A or B % K == 0:\n\tprint("OK")\nelse:\n \tprint("NG")', 'K=int(input())\nA,B=map(int,input().split())\nans="NG"\n\nfor i in range(1001):\n if A<=i*K and i*K<=B:\n ans="OK"\n break\n\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s054097446', 's080508914', 's296797052', 's363954477', 's417663907', 's482653968', 's623961214', 's704515098', 's716920673', 's760871666', 's812036901', 's898142246', 's728287865'] | [9160.0, 9184.0, 9160.0, 9164.0, 9156.0, 9032.0, 9012.0, 9160.0, 9160.0, 8948.0, 9164.0, 9160.0, 9056.0] | [22.0, 18.0, 20.0, 21.0, 20.0, 22.0, 25.0, 26.0, 20.0, 23.0, 20.0, 23.0, 22.0] | [102, 108, 87, 97, 94, 85, 92, 87, 87, 92, 86, 106, 134] |
p02693 | u103519843 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nflg = False\nfor i in range(A, B):\n\tprint(i)\n\tif i % K == 0:\n\t\tflg = True\n\t\tbreak\n\nif flg or A % K == 0 or B % K == 0:\n\tprint('OK')\nelse:\n\tprint('NG')", "K = int(input())\nA, B = map(int, input().split())\n\nflg = False\nfor i in range(A, B):\n\tif i % K == 0:\n\t\tflg = True\n\t\tbreak\n\nif flg or A % K == 0 or B % K == 0:\n\tprint('OK')\nelse:\n\tprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s925768505', 's426689667'] | [9220.0, 9116.0] | [23.0, 24.0] | [200, 190] |
p02693 | u105659451 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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'] | ['s994293111', 's379504792'] | [9160.0, 9160.0] | [19.0, 22.0] | [142, 141] |
p02693 | u106095117 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\ninput_list = list(range(A, B + 1))\n\nflag = False\n\nfor i in input_list:\n if i % K == 0:\n flag = True\n break\n\nif flag:\n print('ok')\nelse:\n print('NG')", "K = int(input())\nA, B = map(int, input().split())\n\ninput_list = list(range(A, B + 1))\n\nflag = False\n\nfor i in input_list:\n if i % K == 0:\n flag = True\n\nif flag:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s999831318', 's254750839'] | [9084.0, 9068.0] | [22.0, 20.0] | [222, 208] |
p02693 | u110081213 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\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:print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s630598121', 's901167791'] | [9164.0, 9176.0] | [20.0, 20.0] | [159, 153] |
p02693 | u112401982 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 == A//K:\n if A % K == 0:\n print("OK")\n else:\n print("NG")\n \n else:\n print("OK")\n', 'k = int(input())\na, b = map(int,input().split())\n\nif b//k == a//k:\n if a % k == 0:\n print("OK")\n else:\n print("NG")\nelse:\n print("OK")\n', 'k = int(input())\na, b = int(input())\nif k<=b-a+1:\n print("OK")\n else:\n print("NG")', 'K = 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")\n', 'k = int(input())\na, b = int(input())\nif k<=b-a+1:\n print("OK")\n else:\n print("NG")', 'k = int(input())\na, b = int(input())\nif k<=(B-A+1):\n print("OK")\n else:\n print("NG")\n \n', '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")\n \n else:\n print("OK")\n', "K = int(input())\nA, B = map(int,input().split())\n \n \nif A // K == B // K:\n if A % K ==0:\n print('OK')\n else:\n print('NG') \nelse:\n print('OK') "] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s001107270', 's085592939', 's149173932', 's251624832', 's464733970', 's562436573', 's812026370', 's410858882'] | [8916.0, 8932.0, 8868.0, 8848.0, 8856.0, 8936.0, 8880.0, 9004.0] | [19.0, 20.0, 21.0, 20.0, 21.0, 20.0, 19.0, 20.0] | [160, 148, 87, 148, 87, 93, 160, 166] |
p02693 | u113991073 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\naa=a//k\nbb=b//k\n\nif bb-aa=>1:\n print("OK")\nelse:\n print("NG")', 'k=int(input())\na,b=list(map(int,input().split()))\nfor i in range(a,b+1):\n if i%k==0:\n print("OK")\n break\nprint("NG")', 'k=int(input())\na,b=list(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', 'Wrong Answer', 'Accepted'] | ['s186447859', 's443655749', 's088228721'] | [9024.0, 9172.0, 9172.0] | [22.0, 21.0, 22.0] | [118, 133, 134] |
p02693 | u115110170 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nprint("OK" if a<=k and k<=b else "NG")', 'k = int(input())\nimport math\na,b = map(int,input().split())\n\nk = math.ceil(a//k)*k\nprint("OK" if a<=k and k<=b else "NG")\n', 'k = int(input())\nimport math\na,b = map(int,input().split())\n\nk = math.ceil(a/k)*k\n\nprint("OK" if a<=k and k<=b else "NG")\n\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s484361558', 's734436967', 's749764884'] | [9164.0, 9156.0, 9096.0] | [20.0, 22.0, 23.0] | [87, 122, 123] |
p02693 | u115188504 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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,x,y = map(int,input().split())\n\nif x%k>>0 :\n if x<= (x/k+1)*k <=y :\n print('OK')\n else:\n print('NO')\n\nif x%k ==0:\n\n print('OK')\n\n\n", "k,x,y = map(int,input().split())\n\nif x%k>>0 :\n if x<= (x/k+1)*k <=y :\n print('OK')\n else:\n print('NO')\nelse:\n print('OK')\n\n\n\n", "k,x,y = map(int,input().split())\nif 1<=x<=y<=1000 and 1<=k<=1000:\n pass\n\n\n\nif x%k>>0 :\n if x<= (x/k+1)*k <=y :\n print('OK')\n else:\n print('NG')\nelse:\n print('OK')", "k,x,y = map(int,input().split())\n\nif x%k>>0 :\n if x<= (x/k+1)*k <=y :\n print('OK')\n else:\n print('NG')\n\nif x%k ==0:\n\n print('OK')", "k,x,y = map(int,input().split())\n\nif (x//k+1)*k <<y :\n print('YES')\nelse:\n print('NO')", "k,x,y = map(int,input().split())\n\nif (x//k+1)*k <<y :\n print('OK')\nelse:\n print('NG')\n", "k,x,y = map(int,input().split())\n\nif x%k>>0 :\n if x<= (x/k+1)*k <=y :\n print('OK')\n else:\n print('NO')\n\nelif x%k ==0:\n\n print('OK')\n ", "k= int(input())\nx,y = map(int,input().split())\nif 1<=x<=y<=1000 and 1<=k<=1000:\n pass\n\n\n\n if x%k>>0 :\n if x<= (x//k+1)*k <=y :\n print('OK')\n else:\n print('NG')\n else:\n print('OK')\n\nelse:\n print('NG')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s090663154', 's201398298', 's209792305', 's399876952', 's410075098', 's853097873', 's920187666', 's930068748'] | [8960.0, 9160.0, 9184.0, 9168.0, 9160.0, 9148.0, 9100.0, 9192.0] | [20.0, 23.0, 21.0, 21.0, 20.0, 22.0, 22.0, 24.0] | [157, 148, 188, 152, 92, 92, 159, 254] |
p02693 | u116484168 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nlarge = (B // K) * K\nprint(large)\nif A <= large:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = map(int, input().split())\nlarge = (B / K) * K\nif A >= large:\n print("OK")\nelse:\n print("NO")\n', 'K = int(input())\nA, B = map(int, input().slice())\nprint("OK" if B - A >= K else "NG")\n', 'K = int(input())\nA, B = map(int, input().split())\nlarge = (B // K) * K\nif A <= large:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s351418821', 's559444719', 's877795440', 's961434649'] | [9060.0, 9048.0, 9052.0, 9052.0] | [26.0, 26.0, 22.0, 24.0] | [137, 123, 86, 124] |
p02693 | u117850242 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 (a,b+1):\n if i % n==0:\n print("OK")\n exit(0)\nprint("NG")', 'n=int(input())\na,b=map(int,input().split())\ni=a\nwhile i<=b:\n if i%n==0:\n print("OK")\n break\n i+=1\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s054574989', 's299533321'] | [9168.0, 9164.0] | [23.0, 25.0] | [116, 125] |
p02693 | u118760114 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\np = 0\nfor i in range(1000):\n if A <= K*i and k*i <= B:\n p = 1\n break\nif p = 1:\n print("OK")\nelse:\n print("NG")\n \n', 'K = int(input())\nA,B = map(int, input().split())\np = 0\nfor i in range(1000):\n if A <= K*i and k*i <= B:\n p = 1\n break\nif p == 1:\n print("OK")\nelse:\n print("NG")\n \n', 'K = int(input())\nA,B = map(int, input().split())\np = 0\nfor i in range(1000):\n if A <= K*i and K*i <= B:\n p = 1\n break\nif p == 1:\n print("OK")\nelse:\n print("NG")\n \n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s115371984', 's587549492', 's492323792'] | [8964.0, 9168.0, 9168.0] | [25.0, 21.0, 22.0] | [188, 189, 189] |
p02693 | u121523434 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["nt(input())\nA , B = map(int,input().split())\n\nif A == B:\n if A % K == 0:\n print('OK')\n else:\n print('NG')\n\nelse:\n for i in range(B-A):\n i += A\n if i % K == 0:\n print('OK')\n break\n\n else:\n print('NG')\n", "K = int(input())\nA , B = map(int,input().split())\n\nif A == B:\n if A % K == 0:\n print('OK')\n\n elif B % K == 0:\n print('OK')\n\n else:\n print('NG')\n\nelse:\n for i in range(B-A+1):\n i += A\n if i % K == 0:\n print('OK')\n break\n\n else:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s350899564', 's049067171'] | [8924.0, 9156.0] | [22.0, 22.0] | [269, 319] |
p02693 | u122495382 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(inut())\na, b = map(int, input().split())\n\nfor i in range(b-a):\n if (a + i) % k == 0:\n print("OK")\n else:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\ncount = 0\n \nfor i in range(b-a+1):\n if (a + i) % k == 0:\n count += 1\n \nprint("OK" if count > 0 else "NG")'] | ['Runtime Error', 'Accepted'] | ['s402926692', 's549369159'] | [9032.0, 9132.0] | [26.0, 25.0] | [133, 160] |
p02693 | u125337618 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 \texit()\nprint('No')", "k = int(input())\na,b = map(int, input().split())\nfor i in range(a, b+1):\n if i % k == 0:\n print('OK')\n exit()\nprint('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s356823795', 's434897764'] | [8956.0, 9160.0] | [22.0, 20.0] | [128, 129] |
p02693 | u126400412 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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入力は以下の形式で標準入力から与えられる。\nK\nAB\n出力\n目標の達成が可能であれば OK と、不可能であれば NG と出力せよ。\nk= int(input())\ns= input().rsprit().split()\na = int(s[0])\nb = int(s[1])\nf = "NG"\nfor i in range(a,b):\n\tif i%k == 0:\n \t\tf = "OK"\nprint(f)', 'k= int(input())\ns= input().rsprit().split()\na = int(s[0])\nb = int(s[1])\nf = "NG"\nfor i in range(a,b):\n if i%k == 0:\n f = "OK"\nprint(f)', 'k= int(input())\ns= input().rstrip().split()\na = int(s[0])\nb = int(s[1])\nf = "NG"\nfor i in range(a,b+1):\n if i%k == 0:\n f = "OK"\nif a == b:\n if a%k == 0:\n f = "OK"\nprint(f)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s816177953', 's927502612', 's015027098'] | [9008.0, 9140.0, 9184.0] | [25.0, 24.0, 22.0] | [310, 138, 179] |
p02693 | u127873832 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input())\nif k == 1 or (a // k == a / k):\n print('OK')\nelse:\n n = a // k\n m = b // k\n if m - n >= 1:\n print('OK')\n else:\n print('NG')", "k = int(input())\na, b = map(int, input().split())\nif k == 1 or (a // k == a / k):\n print('OK')\nelse:\n n = a // k\n m = b // k\n if m - n >= 1:\n print('OK')\n else:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s693675815', 's869765422'] | [9028.0, 9040.0] | [22.0, 23.0] | [176, 184] |
p02693 | u129380335 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na,b = map(int,input().split())\nif a*k<=b:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nif a*k<b:\n print('OK')\nelse:\n print('NG')", "k = int(input())\na,b = map(int,input().split())\nn = a//k\nm = b//k\nif a%k==0 or b%k==0 or m-n>=1:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s086019207', 's404503621', 's591926828'] | [9168.0, 9100.0, 9076.0] | [23.0, 21.0, 22.0] | [96, 95, 134] |
p02693 | u129824557 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()))\nres = 0\nfor i in range(a,b+1):\n if(i%k==0):\n res=1\n break\nif(res==1):\n print("OK")\nelse:\n print("NG")', 'k = int(input())\na,b = list(map(int,input().split()))\nres = 0\nfor i in range(a,b+1):\n if(i%k==0):\n res=1\n break\nif(res==1):\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s578997734', 's184484865'] | [9180.0, 9184.0] | [21.0, 24.0] | [162, 164] |
p02693 | u131406572 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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=a%k\nb=b%k\nif b>a:print("NG")\nelse:print("OK")', 'k=int(input())\na,b=map(int,input().split())\ncnt=0\nfor i in range(a,b+1):\n if i%k==0:cnt+=1\nif cnt==0:print("NG")\nelse:print("OK")'] | ['Wrong Answer', 'Accepted'] | ['s953378603', 's972725458'] | [9168.0, 9068.0] | [24.0, 23.0] | [91, 130] |
p02693 | u131453093 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA,B = map(int,input().split())\nf = "NG"\n\nfor i in range(A, B+1):\n i % K == 0:\n f = "OK"\n \nprint(f)', 'K = int(input())\nA, B = map(int, input().split())\nf = "NG"\n\nfor i in range(A, B + 1):\n if i % K == 0:\n f = "OK"\n\nprint(f)'] | ['Runtime Error', 'Accepted'] | ['s448957003', 's460882409'] | [9032.0, 9156.0] | [24.0, 20.0] | [122, 131] |
p02693 | u131464432 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = k\nwhile True:\n if a < k < b:\n print("OK")\n break\n m += k\n if m <= 1000:\n print("NG")\n break', 'k = int(input())\na,b = map(int,input().split())\nm = k\nwhile True:\n if a <= m <= b:\n print("OK")\n break\n m += k\n if m >= 1000:\n print("NG")\n break'] | ['Wrong Answer', 'Accepted'] | ['s402080666', 's423585687'] | [8996.0, 9108.0] | [2205.0, 29.0] | [158, 160] |
p02693 | u131925051 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nscore = input().split()\nif int(score[0] < K):\n\tif int(int(score[0])/K) < int(int(score[1])/K):\n\t\tprint('OK')\n\telse:\n\t\tif int(score[0]) % K == int(score[1]) % K:\n\t\t\tprint('OK')\n\t\telse:\n\t\t\tprint('NG')", "K = int(input())\nscore = input().split()\nif int(int(score[0])/K) < int(int(score[1])/K):\n\tprint('OK')\nelse:\n\tif int(score[0]) % K == int(score[1]) % K:\n\t\tprint('OK')\n\telse:\n\t\tprint('NG'", "K = int(input())\nA,B = map(int, input().split())\nfor i in range(A, B+1):\n\tif i % K == 0:\n\t\tprint('OK')\n\t\texit()\nprint('NG'", "K = int(input())\nA,B = map(int, input().split())\nprint(type(A))\nfor i in range(A, B+1):\n\tif i % K == 0:\n\t\tprint('OK')\n\t\texit()\nprint('NG')", "K = int(input())\nA,B = map(int, input().split())\nfor i in range(A, B+1):\n\tif i % K == 0:\n\t\tprint('OK')\n\t\texit()\nprint('NG')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s315071237', 's385663782', 's442055392', 's664229472', 's613924681'] | [9184.0, 9044.0, 9020.0, 9116.0, 9152.0] | [24.0, 24.0, 22.0, 23.0, 20.0] | [215, 185, 122, 138, 123] |
p02693 | u132266749 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\ncont=0\na, b= input().split()\na= int(a)\nb= int(b)\nwhile 1:\n cont+= k\n if a<= cont <= b:\n print("OK")\n break\n if x > b:\n print("NG")\n break', 'k= int(input())\na, b= input().split()\na= int(a)\nb= int(b)\ncont=0\nwhile 1:\n cont+= k\n if a<= cont <= b:\n print("OK")\n break\n if cont > b:\n print("NG")\n break'] | ['Runtime Error', 'Accepted'] | ['s474647476', 's801267442'] | [9172.0, 9164.0] | [27.0, 26.0] | [190, 193] |
p02693 | u133174241 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\ndef f(x):\n return int(a*x/b) - a*int(x/b)\nMax = f(min(b-1,n))\nprint(Max)', 'K = int(input())\na, b = map(int, input().split())\nfor i in range(1,1000):\n c = K*i\n if a <= c <= b:\n print("OK")\n test = 1\n break\n else:\n test = 0\n continue\nif test == 0:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s495099901', 's930266369'] | [9104.0, 9180.0] | [20.0, 22.0] | [109, 230] |
p02693 | u135331079 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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: print('OK')\nelif b % k == 0: print('OK')\nelif (a / k + 1) * k <= b: print('OK')\nprint('NG')\n", "k = int(input())\na, b = map(int, input().split())\n\nif a <= (b / k) * k: print('OK')\n\nprint('NG') ", "k = int(input())\na, b = map(int, input().split())\ni = a / k\nans = 'NG'\n\nwhile k * i <= b:\n if a <= k * i <= b: ans = 'OK'\n\nprint(ans)\n", "k = int(input())\na, b = map(int, input().split())\ni = 1\nans = 'NG'\n\nwhile k * i <= b:\n if a <= k * i <= b: ans = 'OK'\n\nprint(ans)", "k = int(input())\na, b = map(int, input().split())\n\nif a % k == 0: print('OK')\nelif (a / k + 1) <= b: print('OK')\nprint('NG')", "k = int(input())\na, b = map(int, input().split())\n\nif a <= int(b / k) * k: print('OK')\nelse: print('NG') \n"] | ['Wrong Answer', 'Wrong Answer', 'Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Accepted'] | ['s213159387', 's565618267', 's582120164', 's634201224', 's865709280', 's398492897'] | [9044.0, 8996.0, 9088.0, 9080.0, 9164.0, 9160.0] | [23.0, 21.0, 2205.0, 2205.0, 22.0, 22.0] | [158, 97, 137, 132, 124, 106] |
p02693 | u140191608 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["kk = K\nwhile True:\n if kk >= A and kk <= 600:\n ans = 'OK'\n break\n elif kk > 600:\n ans = 'NG'\n break\n else:\n kk = kk+K\nprint(ans)", "K = int(input())\nA , B = (map(int , input().split()))\nkk = K\nwhile True:\n if kk >= A and kk <= B:\n ans = 'OK'\n break\n elif kk > B:\n ans = 'NG'\n break\n else:\n kk = kk+K\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s316915699', 's801441182'] | [9100.0, 9172.0] | [23.0, 18.0] | [173, 223] |
p02693 | u145145077 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print('Yes')\n exit()\nprint('No')", "k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print('Yes')\n exit()\nprint('No')", "k=int(input())\na,b=map(int,input().split())\nfor i in range(a,b+1):\n if i % k == 0:\n print('OK')\n exit()\nprint('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s021090539', 's835577987', 's479422013'] | [9072.0, 9164.0, 9084.0] | [30.0, 29.0, 27.0] | [123, 123, 122] |
p02693 | u152252650 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\nNUM = list(map(int,input().split()))\ncount = 0\nfor num in range(NUM[1]-NUM[0]+1):\n if (NUM[1]+num % 7 == 0):\n print("OK")\n count = 1\n break\n\nif (count == 0):\n print("NG")', 'K = input()\nNUM = list(map(int,input().split()))\ncount = 0\nfor num in range(NUM[1]-NUM[0]+1):\n if ((NUM[0]+num )% int(K) == 0):\n print("OK")\n count += 1\n break\n\nif (count == 0):\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s946902715', 's266967214'] | [9160.0, 9148.0] | [29.0, 29.0] | [193, 201] |
p02693 | u152283104 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\n\nans = 'NG'\nif a % k == 0:\n ans = 'OK'\nelif b % k == 0:\n ans = 'OK'\nelif (b-a) / k > 0:\n ans = 'OK'\nprint(ans)", "k = int(input())\na, b = map(int, input().split())\n \nans = 'NG'\naa = (a-1) // k\nbb = b // k\nif(bb - aa) > 0:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s621726297', 's348393607'] | [9172.0, 9036.0] | [22.0, 20.0] | [155, 147] |
p02693 | u153686508 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K=int(input())\nA,B=map(int,input().split())\na=0\nfor i in range(A,B+1):\n if i%k==0:\n a=1\nif a==1:\n print("OK")\nelse:\n print("NG")\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 a=1\nif a=1:\n print("OK")\nelse:\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\nif a==1:\n print("OK")\nelse:\n print("NG")\n \n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s265416768', 's958174509', 's898341719'] | [9104.0, 8964.0, 9128.0] | [30.0, 22.0, 26.0] | [140, 138, 140] |
p02693 | u153823221 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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) <= b:\n print("Yes")\nelse:\n print("No")', 'k = int(input())\na, b = map(int, input().split())\n\nif a <= k * (b // k) <= b:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s131679281', 's154210246'] | [9160.0, 9160.0] | [24.0, 20.0] | [112, 111] |
p02693 | u153846982 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['def f(vs,i):\n\t# print(vs)\n\tfor j in range(len(vs)):\n\t\tif vs[j]+i in vs:\n\t\t\ta = vs[j]\n\t\t\tb = vs[j]+i\n\t\t\tprint(a,b)\n\t\t\tvs.remove(a)\n\t\t\tvs.remove(b)\n\t\t\treturn\n\nn,m = map(int,input().split())\nvs = list(range(1,n+1))\n\nfor i in range(1,m+1):\n\tf(vs,i)', "k = int(input())\na,b = map(int,input().split())\n\nans = 'NG'\nfor i in range(a,b+1):\n\tif i%k == 0:\n\t\tans = 'OK'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s348995393', 's120985361'] | [9188.0, 9160.0] | [22.0, 20.0] | [244, 121] |
p02693 | u157232135 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nx = list(map(int, input().split()))\ny = []\n\nfor i in range(x[2]):\n y.append(list(map(int, input().split())))\n\nfor i in range(len(y)):\n y[i][0] -= 1\n y[i][1] -= 1\n\ndef get_score(arr: list):\n score = 0\n for yy in y:\n if arr[yy[1]] - arr[yy[0]] == yy[2]:\n score += yy[3]\n return score\n\nscores = []\nfor t in itertools.combinations_with_replacement(range(1, 11), x[0]):\n isError = False\n for i in range(x[0] -1):\n if t[i] > t[i+1]:\n isError = True\n if isError == True:\n continue\n scores.append(get_score(t))\n\nprint(max(scores))', 'a = int(input())\nargs = list(map(int, input().split()))\n\n# main\nresult = "NG"\nfor i in range(args[0], args[1] + 1):\n if i % a == 0:\n result = "OK"\n\n# /main\n\nprint(result)'] | ['Runtime Error', 'Accepted'] | ['s390363798', 's552803810'] | [9192.0, 9204.0] | [22.0, 23.0] | [613, 180] |
p02693 | u158380546 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nx = 0;\nfor i in range(a,b+1);\n if i % k == 0:\n x += 1;\n\nif x == 0:\n print('NG')\nelse:\n print('OK')", 'c, a, b = map(int, input().split())\nd = 0\n\nwhile a <= b :\n if a % c == 0:\n d = d + 1;\n\n a = a + 1;\n \nif d == 0:\n print("NG");\n\nelse:\n print("OK");', "k = int(input())\na, b = map(int, input().split());\n\nx = 0;\nfor i in range(a,b+1):\n if i % k == 0:\n x += 1;\n\nif x == 0:\n print('NG')\nelse:\n print('OK')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s049724770', 's588185674', 's322746404'] | [8984.0, 9176.0, 9120.0] | [22.0, 22.0, 29.0] | [166, 168, 166] |
p02693 | u159701940 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\n[start,end] = input().split(' ')\n\nfor i in range(start,end+1):\n if i % k == 0:\n return True\nreturn False", "input = map(int, [input()] + input().split(' '))\n[k,start,end] = input\n\nfor i in range(start, end + 1):\n if i % k == 0:\n return True\nreturn False\n\n", "k = int(input())\n[start end] = input().split(' ')\nstart = int(start)\nend = int(end)\n\nfor i in range(start, end):\n if i % k == 0:\n return True\nreturn False", "k = int(input())\n(start, end) = map(int, input().split())\n\n\nfor i in range(start, end+1):\n if i % k == 0:\n print('OK')\n exit(0)\nprint('NG')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s227028196', 's679852142', 's929886609', 's632116214'] | [9016.0, 9088.0, 9016.0, 9040.0] | [25.0, 22.0, 21.0, 21.0] | [120, 151, 158, 146] |
p02693 | u159757108 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = eval(input().replace(\' \', \',\'))\n print(k, a, b)\n for i in range(a, b + 1):\n if i % k == 0:\n print("OK")\n break\n else:\n print("NG")\n\n\nif __name__ == \'__main__\':\n main()\n', 'def main():\n k = int(input())\n a, b = eval(input().replace(\' \', \',\'))\n for i in range(a, b + 1):\n if i % k == 0:\n print("OK")\n break\n else:\n print("NG")\n\n\nif __name__ == \'__main__\':\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s996141274', 's420869546'] | [9172.0, 9180.0] | [21.0, 23.0] | [260, 241] |
p02693 | u161155417 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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")', 'mport sys\nK = int(input())\nA,B = map(int,input().split())\nfor i in range(A,B+1):\n if i%K==0:\n print("OK")\n sys.exit()\nprint("NG")', '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(0)\nprint("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s271122303', 's823289750', 's182936106'] | [8876.0, 8940.0, 9116.0] | [21.0, 21.0, 24.0] | [121, 136, 138] |
p02693 | u162565714 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\n\nfor i in range (a,b+1):\n if k%i==0:\n print('ok')\n exit()\nprint('ng')\n\n", "k,a,b=map(int,input().split())\nfor i in range (a,b):\n if k//i==0:\n print('ok')\n break\n else:\n print('ng')\n break", "K = int(input())\na,b = map(int, input().split())\nfor n in range(a, b + 1):\n if n % K == 0:\n print('OK')\n exit()\nprint('NG')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s132064175', 's495683406', 's592579617'] | [9144.0, 8984.0, 9020.0] | [29.0, 25.0, 27.0] | [132, 146, 130] |
p02693 | u163320134 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nif b//k-(a-1)//k>=1:\n print('OK')\nelse:\n print('NG')", "k=int(input())\na,b=map(int,input().split())\nif b//k-(a-1)//k>=1:\n print('OK')\nelse:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s407839724', 's241012050'] | [9160.0, 9096.0] | [20.0, 22.0] | [86, 98] |
p02693 | u163501259 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\ninput = sys.stdin.readline\ndef main():\n K = int(input())\n A, B = map(int, input().split())\n OK = False\n for i in range(A,B+1):\n if i%K == 0:\n print("OK")\n OK = True\n if OK == False:\n print("NG")\n\nif __name__ == \'__main__\':\n main()', 'import sys\ninput = sys.stdin.readline\ndef main():\n K = int(input())\n A, B = map(int, input().split())\n OK = False\n for i in range(A,B+1):\n if i%K == 0:\n print("OK")\n OK = True\n break\n if OK == False:\n print("NG")\n\nif __name__ == \'__main__\':\n main()'] | ['Wrong Answer', 'Accepted'] | ['s467141208', 's809759777'] | [9180.0, 9176.0] | [25.0, 19.0] | [295, 313] |
p02693 | u165133750 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nbl = False\nfor i in range(a, b+1):\n if i % k == 0:\n bl = True\n break\nif bl:\n print("ok")\nelse:\n print("no")\n ', 'k = int(input())\na, b = map(int, input().split())\nbl = False\nfor i in range(a, b+1):\n if i % k == 0:\n bl = True\n break\nif bl:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s897838578', 's133188973'] | [9164.0, 9160.0] | [24.0, 21.0] | [185, 181] |
p02693 | u166621202 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['A,B,N = map(int,input().split())\nans = []\nif N < 15:\n for x in range(N+1):\n tmp = (A * x // B) - A * (x//B)\n ans.append(tmp)\n #print(tmp)\nelse:\n for x in range(N-1000,N+1):\n tmp = (A * x // B) - A * (x//B)\n ans.append(tmp)\n #print(tmp)\nprint(max(ans))', "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'] | ['s645607106', 's715998656'] | [9136.0, 9152.0] | [24.0, 23.0] | [299, 144] |
p02693 | u167681994 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int,input().split())\nfor i in range(a - 1, b):\n if i % k == 0:\n print("OK")\nelse:\n print("NG")\n ', 'k = int(input())\na, b = map(int,input().split())\nfor i in range(a, b + 1):\n if i % k == 0:\n print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s522570224', 's121088043'] | [9128.0, 9108.0] | [26.0, 23.0] | [132, 137] |
p02693 | u170415480 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['input1 = input()\nKbai= int(input1)\n \ninput2=input().split(" ")\nmaxs= int(input2[0])\nmins= int(input2[1])\nflg=0\nans=0\n \nwhile ans < maxs:\n ans=ans+kbai\n if ans >= mins and ans <= maxs:\n flg=1\n \nif flg ==1:\n print("OK")\nelse:\n print("NG")', 'input1 = input()\nKbai= int(input1)\n\ninput2=input().split(" ")\nmaxs= int(input2[0])\nmins= int(input2[2])\nflg=0\nans=0\n\nwhile ans < maxs:\n ans=ans+kbai\n if ans >= mins and ans <= maxs:\n flg=1\n \nif flg ==1:\n print("OK")\nelse:\n print("NG")\n', '#\n#at coder beginner contest165 a we love golf\n#\nimport math\n\ninput1 = input()\nkbai= int(input1)\n \ninput2=input().split(" ")\nmins= int(input2[0])\nmaxs= int(input2[1])\nflg=0\nans=0\ntmp=0\n\ntmp=math.floor(mins/kbai)\nans=tmp*kbai\n#print(tmp)\n\nwhile ans <= maxs:\n if ans >= mins and ans <= maxs:\n flg=1\n ans=ans+kbai\n\nif flg ==1:\n print("OK")\n #print(ans,maxs,mins,flg)\nelse:\n print("NG")\n #print(ans,maxs,mins,flg)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s390394393', 's933317796', 's873284299'] | [9160.0, 9168.0, 9128.0] | [22.0, 23.0, 22.0] | [243, 242, 419] |
p02693 | u173644182 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 x = list(range(K, 1001, K))\n print(x)\n print(\'OK\') if any([A <= i <= B for i in x]) else print(\'NG\')\n\n return\n\n\nif __name__=="__main__":\n main()\n', 'def main():\n K = int(input())\n A, B = map(int, input().split())\n x = list(range(K, 1001, K))\n print(x)\n print(\'OK\') if any([A <= i <= B for i in x]) else print(\'NG\')\n\n return\n\n\nif __name__=="__main__":\n main()\n', ' main():\n K = int(input())\n A, B = map(int, input().split())\n x = list(range(K, 1001, K))\n print(\'OK\') if any([A <= i <= B for i in x]) else print(\'NG\')\n\n return\n\n\nif __name__=="__main__":\n main()\n', 'def main():\n K = int(input())\n A, B = map(int, input().split())\n\n for i in range(A, B+1):\n if i % K == 0:\n print(\'OK\')\n return\n print(\'NG\')\n\n\nif __name__=="__main__":\n main()\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s100893738', 's889432508', 's924954441', 's425074917'] | [9120.0, 9164.0, 8800.0, 9112.0] | [23.0, 21.0, 23.0, 22.0] | [231, 231, 215, 219] |
p02693 | u175590965 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na,b = map(int,input().split())\nfor i in range(a,b):\n if i % k == 0:\n print("OK")\n else:\n print("NG")', 'k = int(input())\na,b = map(int,input().split())\nans = 0\nfor i in range(a,b+1):\n if i % k == 0:\n ans += 1\nif ans == 0:\n print("NG")\nelse:\n print("OK")'] | ['Wrong Answer', 'Accepted'] | ['s888601674', 's988201320'] | [9020.0, 9112.0] | [23.0, 24.0] | [137, 165] |
p02693 | u178079174 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nk = K\nwhile k <= B:\n if k >= A:\n print('Yes')\n exit()\n k += K\nprint('No')", "K = int(input())\nA, B = list(map(int,input().split()))\nans = 'NG'\nfor i in range(1,1000):\n if i*K >= A and i*K <= B:\n ans = 'OK'\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s354442072', 's483424710'] | [9108.0, 9060.0] | [24.0, 21.0] | [146, 149] |
p02693 | u178432859 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 i%k == 0:\n print("OK")\n exit()\nprint("NG")', 'k = int(input())\na,b = map(int, input().split())\n if i%k == 0:\n print("OK")\n exit()\nprint("NG")', 'k = int(input())\na,b = map(int, input().split())\nfor i in range(a,b+1):\n if i%k == 0:\n print("OK")\n exit()\nprint("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s296944321', 's711410167', 's537858938'] | [9164.0, 9012.0, 9108.0] | [24.0, 21.0, 23.0] | [100, 112, 135] |
p02693 | u179581055 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\n\nanswer = 'NG'\n\nfor i in range(a,b):\n if i % k == 0:\n answer = 'OK'\nprint(answer)\n\n", "k = int(input())\na, b = map(int, input().split())\n\nanswer = 'NG'\n\nfor i in range(a,b+1):\n if i % k == 0:\n answer = 'OK'\nprint(answer)\n\n"] | ['Runtime Error', 'Accepted'] | ['s167111707', 's401598732'] | [9108.0, 9192.0] | [22.0, 26.0] | [135, 145] |
p02693 | u180528413 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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('Yes')\n break\nelse:\n print('No')", "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')"] | ['Wrong Answer', 'Accepted'] | ['s332262729', 's012563503'] | [9168.0, 9164.0] | [22.0, 20.0] | [150, 149] |
p02693 | u181195295 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['k = int(input())\na, b = map(int, input().split())\n\nif b%k == 0: \n print(“OK”)\nelse:\n tmp = b//k\n tmp *= k\n if tmp>=a:\n print("OK")\n else:\n print("NG")', 'k = int(input())\na, b = map(int, input().split())\n\nif b%k == 0: \n print("OK")\nelse:\n tmp = b//k\n tmp *= k\n if tmp>=a:\n print("OK")\n else:\n print("NG")\n'] | ['Runtime Error', 'Accepted'] | ['s271248973', 's755900540'] | [9024.0, 9172.0] | [19.0, 22.0] | [165, 162] |
p02693 | u187621751 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nif A % K == 0 and B % K == 0:\n print('OK')\nelse:\n print('NG')", "K = int(input())\n\nA, B = map(int, input().split())\n\nb = B % K\nw = B - A\n\nif w - b >= 0:\n print('OK')\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s822099349', 's645587437'] | [9164.0, 9168.0] | [21.0, 19.0] | [119, 125] |
p02693 | u187883751 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int, input().split())\n\nfor i in range(a,b+1):\n if i % k ==0:\n print('OK')\n else:\n 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\nprint('NG')", "k=int(input())\na,b=map(int,input().split())\n\nif k % 7 == 0 and a <= k <= b:\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 exit\n\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(0)\n\nprint('NG')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s125772622', 's172968669', 's407885373', 's653112539', 's070345189'] | [9104.0, 9176.0, 9084.0, 9164.0, 9160.0] | [27.0, 27.0, 29.0, 28.0, 27.0] | [136, 133, 114, 132, 135] |
p02693 | u189487046 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nif N == max(A, B, N):\n ans = math.floor((A*N)/B)-A*(N//B)\nelse:\n if N <= 1000000:\n for x in range(1, N+1):\n tmp = math.floor((A*x)/B)-A*(x//B)\n ans = max(ans, tmp)\n else:\n for x in range(1, 300000):\n tmp = math.floor((A*x)/B)-A*(x//B)\n ans = max(ans, tmp)\n\n base = N//2-150000\n for x in range(base, base+300000):\n tmp = math.floor((A*x)/B)-A*(x//B)\n ans = max(ans, tmp)\n\n for x in range(N-300000, N+1):\n tmp = math.floor((A*x/B))-A*(x//B)\n ans = max(ans, tmp)\nprint(int(ans))\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(0)\nprint('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s412834001', 's818290709'] | [9232.0, 9156.0] | [24.0, 22.0] | [666, 142] |
p02693 | u189516107 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\n\ni = 1\nwhile K * i <= 1000:\n if A <= K * i and K * i <= B:\n print("Yes")\n exit()\n else:\n i+=1\n\nprint("NG")', 'K = int(input())\nA, B = map(int, input().split())\n\n\ni = 1\nwhile K * i <= 1000:\n if A <= K * i and K * i <= B:\n print("OK")\n exit()\n else:\n i+=1\n\nprint("NG")'] | ['Wrong Answer', 'Accepted'] | ['s308615859', 's672634360'] | [9096.0, 9024.0] | [23.0, 23.0] | [168, 167] |
p02693 | u193880030 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nfor i in range(a, b+1):\n if i % k == 0:\n print('OK')\n break\n else:\n print('NG')\n break", "k = int(input())\na, b = map(int, input().split())\n\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', 'Accepted'] | ['s379944910', 's623661264'] | [9164.0, 9060.0] | [22.0, 22.0] | [181, 175] |
p02693 | u194228880 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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('')\na = int(ab.split(' ')[0])\nb = int(ab.split(' ')[1])\n\nret=0\nfor i in range(a,b):\n print(i)\n if i % k == 0:\n ret=1\nif a==b:\n if a%k==0:\n ret=1\n\nif ret==0:\n print('NG')\nelse:\n print('OK')\n", "k = int(input(''))\nab = input('')\na = int(ab.split(' ')[0])\nb = int(ab.split(' ')[1])\n\nret=0\nfor i in range(a,b+1):\n if i % k == 0:\n ret=1\n\nif ret==0:\n print('NG')\nelse:\n print('OK')\n"] | ['Wrong Answer', 'Accepted'] | ['s202518739', 's822857196'] | [9088.0, 9120.0] | [22.0, 24.0] | [248, 199] |
p02693 | u195396655 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 and k < a\n print('OK')\nelse:\n print('NG')", 'counter = 0\nx = int(input())\nyokin = 100\n\nwhile x > yokin:\n yokin = int(yokin * 1.01)\n counter += 1\n\nprint (counter)\n', "k = int(input())\na, b = map(int, input().split())\n\nfor cnt in range(a, b + 1):\n if cnt % k == 0:\n print('OK')\n break\n elif cnt + 1 == b + 1:\n print('NG')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s175486316', 's552926303', 's083964397'] | [8956.0, 9068.0, 9108.0] | [18.0, 22.0, 18.0] | [107, 119, 164] |
p02693 | u196507615 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\n\na,b=[int(x) for x in input().split()]\nflag=0\nfor i in range(a,b+1):\n if i%k==0:\n flag=1\n break\nif flag==0:\n print("NG")\nelse:\n print("OK")', 'n=int(input())\n\na,b=[int(x) for x in input().split()]\nflag=0\nfor i in range(a,b+1):\n if i%n==0:\n flag=1\n break\nif flag==0:\n print("NG")\nelse:\n print("OK")'] | ['Runtime Error', 'Accepted'] | ['s327983863', 's406310082'] | [9116.0, 9116.0] | [23.0, 25.0] | [177, 177] |
p02693 | u198257719 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\nA, B = map(int, input().split())\nif (B//K - A//K)>=1 or B%K == 0 or A%K == 0:\n print("yes")\nelse:\n print("no")', 'K = int(input())\nA, B = map(int, input().split())\nif (B//K - A//K)>=1 or B%K == 0 or A%K == 0:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s600961614', 's191208806'] | [9168.0, 9168.0] | [22.0, 21.0] | [133, 132] |
p02693 | u198274496 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nresult = False\nfor i in range(A, B + 1):\n if (i % K) == 0:\n result = True\nprint("OK" if result else "NG")', 'K = int(input())\nA, B = map(int, input().split())\n\nresult = False\nfor i in range(A, B + 1):\n if (i % K) == 0:\n result = True\nprint("OK" if result else "NG")'] | ['Runtime Error', 'Accepted'] | ['s909910899', 's351777451'] | [9168.0, 9172.0] | [19.0, 22.0] | [161, 166] |
p02693 | u198668088 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 n in range(A, B+1):\n if K % n == 0:\n print('OK')\n quit()\n\nprint('NG')", "K = int(input())\nA, B = map(int, input().split())\n\nfor n in range(A, B+1):\n if n % K == 0:\n print('OK')\n quit()\n\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s660489927', 's188856392'] | [9128.0, 9044.0] | [22.0, 21.0] | [141, 141] |
p02693 | u200228637 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k = int(input())\na, b = map(int, input().split())\n \nfor i in (a, b + 1):\n if i % k == 0:\n break\nprint('OK' if i % k == 0 else 'NG')", "k = int(input())\na, b = map(int, input().split())\n\nfor i in rage(a, b):\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 (a, b):\n if i % k == 0:\n break\nprint('OK' if i % k == 0 else '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', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s347263463', 's645847910', 's944466692', 's857522462'] | [9172.0, 9112.0, 9120.0, 9172.0] | [20.0, 23.0, 22.0, 23.0] | [135, 128, 130, 140] |
p02693 | u200473040 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['from math import *\nk=int(input())\na=int(input())\nb=int(input())\nm=0\nwhile a<=b :\n if a%k==0:\n m=1\n break\n a+=1\nif m==1:\n print("OK")\nelse :\n print("NG")', 'from math import *\nk=int(input())\na=int(input())\nb=int(input())\nm=0\nwhile a<=b :\n if a%k==0:\n m=1\n break\n a=a+1\nif m==1:\n print("OK")\nelse :\n print("NG")', 'from math import *\nk=int(input())\na,b =map(int,input().split())\nm=0\nwhile a<=b :\n if a%k==0:\n m=1\n break\n a=a+1\nif m==1:\n print("OK")\nelse :\n print("NG")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s553210227', 's616374497', 's083013061'] | [9088.0, 9132.0, 9168.0] | [23.0, 25.0, 22.0] | [178, 179, 179] |
p02693 | u200527996 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 K%i == 0:\n print("OK")\n exit()\nprint("NG")', 'K = int(input())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if K%i == 0:\n print("OK")\n exit()\nprint("NG")', 'K = int(input())\nA, B = map(int, input().split())\nfor i in range(A,B+1):\n if i%K == 0:\n print("OK")\n exit()\nprint("NG")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s166401109', 's873063952', 's189639666'] | [9168.0, 9164.0, 9164.0] | [19.0, 20.0, 23.0] | [124, 126, 126] |
p02693 | u200847118 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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):\n if i % a == 0:\n print('OK')\n else:\n print('NG')", "a = int(input())\nb,c = map(int,input().split())\nfor i in range(b,c+1):\n if i % a == 0:\n print('OK')\n exit()\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s462821239', 's227371821'] | [9160.0, 9164.0] | [19.0, 21.0] | [137, 136] |
p02693 | u202400119 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nnums = []\nfor _ in range(q):\n nums.append(list(map(int, input().split())))\n\ntotal = 0\n\nl = [1,2,3,4,5,6,7,8,9,10]\nfor v in itertools.combinations_with_replacement(l, n):\n scores = []\n for a,b,c,d in nums:\n if v[b-1]-v[a-1] == c:\n scores.append(d)\n else:\n scores.append(0)\n if total <= sum(scores):\n total = sum(scores)\n\nprint(total)\n', 'k = int(input())\na, b = map(int, input().split())\n\nn = a//k\nif a <= (n+1)*k <= b or a <= n * k <=b:\n print("OK")\nelse:\n print("NG")'] | ['Runtime Error', 'Accepted'] | ['s369107163', 's360788470'] | [9196.0, 9172.0] | [23.0, 23.0] | [443, 137] |
p02693 | u203471639 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 print("OK")\n break\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s444997407', 's642153938'] | [9168.0, 9108.0] | [21.0, 20.0] | [142, 152] |
p02693 | u203843959 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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")\n'] | ['Wrong Answer', 'Accepted'] | ['s285729510', 's295160642'] | [9168.0, 9152.0] | [22.0, 21.0] | [127, 127] |
p02693 | u208309047 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\ndef f(a, b, n):\n fl1 = (a * (n + 1)) // b\n fl2 = (n + 1) // b\n fl = fl1 - (a * fl2)\n return fl\n #return int(a * n / b) - a * int(n / b)\n\nprint(f(A, B, B-1) if N >= B-1 else f(A, B, N))', 'K = int(input())\nA,B = map(int, input().split())\nC = K\ncount = 1\nans = "NG"\n\nwhile (C<=B):\n #print("test")\n if(A<=C and C<=B):\n ans ="OK"\n C = K*count\n count += 1\n print(C)\n\n\nprint(ans)\n\n', 'K = int(input())\nA,B = map(int, input().split())\nC = K\ncount = 1\nans = "NG"\n\nwhile (C<=B):\n #print("test")\n if(A<=C and C<=B):\n ans ="OK"\n C = K*count\n count += 1\n #print(C)\n\n\nprint(ans)\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s572309523', 's619998686', 's273856842'] | [9052.0, 9176.0, 9176.0] | [24.0, 23.0, 21.0] | [233, 209, 209] |
p02693 | u210369205 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K = int(input())\na,b = map(int,input().split())\nif a - b >= K:\n print("OK")\nelif a%K == 0 or b%K == 0:\n print("OK")\nelif a%K > b%K:\n print("OK")\nelse:\n print("NG")', 'K = int(input())\na,b = map(int,input().split())\nif a//K < b//K:\n print("OK")\nelif a%K == 0 or b%K == 0:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s936462025', 's696692292'] | [9176.0, 9108.0] | [20.0, 22.0] | [175, 144] |
p02693 | u210543511 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\ns, t = [int(i)/k for i in input().split()]\n\nif math.ceil(s) <= math.floor(t):\n print('OK')\nelse:\n print('NG')", "import math\nk = int(input())\ns, t = [int(i)/k for i in input().split()]\n\nif math.ceil(s) <= math.floor(t):\n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s232335187', 's569269908'] | [9164.0, 9180.0] | [22.0, 23.0] | [135, 141] |
p02693 | u212672301 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nwhile money < x:\n money += money / 100\n year += 1\nprint(year)', "k = int(input())\na, b = map(int, input().split())\n\nfor i in range(a, b+1):\n if i % k == 0:\n print ('OK')\n exit(0)\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s978538201', 's213223095'] | [9160.0, 9016.0] | [27.0, 30.0] | [105, 142] |
p02693 | u213299590 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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=A//K\nb=B//K\ndef f(x):\n return x//1\nif f(b)-f(a)>=1:\n print("OK")\nif A//K==0:\n print("OK")\nelse:\n print("NG")\n', 'K=int(input())\nA,B=map(int,input().split())\na=A//K\nb=B//K\ndef f(x):\n return x//1\nif f(b)-f(a)>=1:\n print("OK")\nelif A%K==0:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s720550087', 's250988645'] | [9048.0, 9184.0] | [22.0, 24.0] | [167, 168] |
p02693 | u215315599 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\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")'] | ['Wrong Answer', 'Accepted'] | ['s156371765', 's875186449'] | [9020.0, 9072.0] | [19.0, 21.0] | [137, 136] |
p02693 | u217221869 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['def solve(n, x, y):\n for i in range(x, y+1):\n if i % n == 0:\n return "OK"\n \n return "NG"\n\n\nn = int(input())\na, b = list(map(int, input().split()))\nsolve(n, a, b)', 'def solve(n, x, y):\n for i in range(x, y+1):\n if i % n == 0:\n return "OK"\n\n return "NG"\n\n\nn = int(input())\na, b = list(map(int, input().split()))\nprint(solve(n, a, b))'] | ['Wrong Answer', 'Accepted'] | ['s998437299', 's958927195'] | [9172.0, 9172.0] | [19.0, 20.0] | [174, 177] |
p02693 | u217729995 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\ndef ok_ng():\n for i in range(a, b+1):\n if i % k == 0:\n return "OK"\n else:\n return "NG"\nprint(ok_ng())\n'] | ['Wrong Answer', 'Accepted'] | ['s113330836', 's773226587'] | [9156.0, 9168.0] | [22.0, 21.0] | [127, 183] |
p02693 | u219937318 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nfor i in range(A,B,1):\n if (i %= K) == 0:\n print("OK")\n else:\n print("NG")\n', 'K=input()\nA=input()\nB=input()\n\nfor i in range(A,B,1):\n if (i %= K) == 0:\n print("OK")\n', 'K=input()\nA=input()\nB=input()\n\nfor i in range(A,B):\n i %= K\n if i==0:\n print("OK")\n', 'K=input()\nA=input()\nB=input()\n\nfor i in range(A,B):\n if (i %= K) ==0:\n print("OK")\n', 'K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(A,B,1):\n if (i % K) == 0:\n print("OK")\n break\nprint("NG")\n', 'K=input()\nA=input()\nB=input()\n\nfor i in range(A,B)\ni %= K\nif i==0:\n print("OK")', 'K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(A,B+1,1):\n if (i % K) == 0:\n print("OK")\n break\nprint("NG")\n', 'K=int(input())\nA,B=map(int,input().split())\n\nfor i in range(A,B,1):\n if (i %= K) == 0:\n print("OK")\n break\nprint("NG")\n', 'K=input()\nA=input()\nB=input()\n\ni %= K\nfor i in range(A,B): \n if i==0:\n print("OK")\n', 'K=int(input())\nA,B=map(int,input().split())\n\nyn=0\nfor i in range(A,B+1,1):\n if (i % K) == 0:\n print("OK")\n yn=1\n break\nif yn==0:\n print("NG")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s095571472', 's203903482', 's403462124', 's436271296', 's451768506', 's568841835', 's705571826', 's747330177', 's871764259', 's508485986'] | [8944.0, 8900.0, 9104.0, 8916.0, 9044.0, 9016.0, 9056.0, 9012.0, 8988.0, 9144.0] | [20.0, 20.0, 21.0, 26.0, 22.0, 23.0, 23.0, 21.0, 22.0, 20.0] | [126, 90, 88, 87, 135, 80, 137, 136, 87, 169] |
p02693 | u223663729 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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'] | ['s013778296', 's497125991'] | [9188.0, 9164.0] | [21.0, 24.0] | [150, 149] |
p02693 | u224989615 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\nelse:\n print("NG")\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 break\nelse:\n print("NG")\n '] | ['Runtime Error', 'Accepted'] | ['s840824217', 's398499781'] | [9044.0, 9068.0] | [21.0, 23.0] | [133, 128] |
p02693 | u225053756 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\ni = 0;\nwhile K*i<=B:\n if K*i>=A:\n print("YES")\n exit()\n i=i+1\n \nprint("NG")\n', 'K = int(input())\nA, B = [int(i) for i in input().split()]\n\ni = 0;\nwhile K*i<=B:\n if K*i>=A:\n print("OK")\n exit()\n i=i+1\n \nprint("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s265883713', 's803938481'] | [9164.0, 9108.0] | [24.0, 18.0] | [162, 161] |
p02693 | u231657083 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['1\n11 11', "K = int(input())\nA,B = map(int,input().split())\na = A// K\nb = B // K\nif a != b and a !=0 or A % K == 0 or B % K ==0:\n print('OK')\nelse:\n print('NG')\n"] | ['Runtime Error', 'Accepted'] | ['s501425823', 's619807134'] | [9068.0, 9160.0] | [24.0, 20.0] | [7, 155] |
p02693 | u234733300 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 \nD = A%K\nU = B%K\nif( U-D >= K):\n print("OK")\nelse :\n print("NG")', 'K = int(input())\nA, B = map(int,input().split())\n\nD = A/K\nU = B/K\nif(D-U >= 0):\n print("OK")\nelse :\n print("NG")\n', 'A, B, N = map(int,input().split())\nif(B-A < N) :\n cal = int((A*N)/B) - A*int(N/B)\n print(cal)\nelse \n max = 0\n i=N\n while(1):\n cal = int((A*i)/B) - A*int(i/B)\n if(cal > max):\n max =cal\n i += -1\n if(i < 0):\n print(max)\n break;', 'K = int(input())\nA, B = map(int,input().split())\nnumber = A\ncount = 0\nwhile(1):\n if(number%K == 0):\n count +=1\n number += 1 \n if(number > B):\n if(count >0):\n print("OK")\n else:\n print("NG")\n break;'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s414499506', 's463816177', 's945865039', 's770097070'] | [9168.0, 9160.0, 8896.0, 9204.0] | [22.0, 23.0, 24.0, 20.0] | [114, 113, 234, 208] |
p02693 | u236317938 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = tuple(map(int, input().split()))\n\na = A%K\n\nif a==0 and K-a+A<=B:\n print("OK")\nelse:\n print("NG")\n', 'K = int(input())\nA, B = tuple(map(int, input().split()))\n\na = A%K\n\nif a==0 or K-a+A<=B:\n print("OK")\nelse:\n print("NG")'] | ['Wrong Answer', 'Accepted'] | ['s911265824', 's235437972'] | [8984.0, 9148.0] | [22.0, 23.0] | [123, 121] |
p02693 | u236536206 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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(i)\n print("OK")\n sys.exit()\nprint("NG")\n', 'import sys\nimport os\nK=int(input())\nA,B=map(int,input().split())\nfor i in range(A,B+1):\n if i%K==0:\n print(i)\n print("OK")\n sys.exit()\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()\nprint("NG")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s734802016', 's919457669', 's099381730'] | [9164.0, 9048.0, 9200.0] | [22.0, 22.0, 22.0] | [161, 170, 143] |
p02693 | u236543648 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ['K= int(input())\nA,B=map(int,input().split())\n\ns= int(A/K)\n\n\nif s*K==A:\n print("OK")\n\nelif (s+1)*K>B:\n print("NG")\n \nelse:\n print("NG")\n\n', 'K= int(input())\nA,B=map(int,input().split())\n\ns= int(A/K)\n\n\nif s*K==A:\n print("OK")\n\nelif (s+1)*K>B:\n print("NG")\n \nelse:\n print("OK")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s427568496', 's828683624'] | [9164.0, 9172.0] | [22.0, 22.0] | [140, 140] |
p02693 | u239048001 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nlist=range(a,b+1)\nfor val in list:\n if val%k==0:\n print('OK')\n break\n else:\n print('NG')\n continue\n \n ", "k=int(input())\np=0\na,b=map(int,input().split())\nlist=list(range(a,b+1))\nfor val in list:\n if val%k==0:\n print('OK')\n p+=1\n break\n else:\n continue\n\nif p==0:\n print('NG')"] | ['Runtime Error', 'Accepted'] | ['s287834941', 's313443489'] | [9156.0, 9180.0] | [26.0, 22.0] | [162, 183] |
p02693 | u239091426 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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)\nlargest = (b//k)*k\nprint("OK" if largest >= a else "NG")', 'k = int(input())\na,b = map(int, input().split())\nlargest = (b//k)*k\nprint("OK" if largest >= a else "NG")'] | ['Runtime Error', 'Accepted'] | ['s089632416', 's577530590'] | [9160.0, 8912.0] | [25.0, 26.0] | [103, 105] |
p02693 | u239528020 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 python3\n\nk = int(input())\na, b = list(map(int, input().split()))\n\nif (b//k)*k >= a:\n print("Yes")\nelse:\n print("No")\n', '#!/usr/bin/env python3\n\nk = int(input())\na, b = list(map(int, input().split()))\n\nif (b//k)*k >= a:\n print("OK")\nelse:\n print("NG")\n'] | ['Wrong Answer', 'Accepted'] | ['s798305058', 's625239062'] | [9032.0, 9044.0] | [20.0, 23.0] | [138, 137] |
p02693 | u240292623 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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\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', 'Accepted'] | ['s406170254', 's114400889'] | [9184.0, 9188.0] | [22.0, 21.0] | [175, 193] |
p02693 | u240608977 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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 = "YES"\n break\nprint(ans) ', '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) \n'] | ['Wrong Answer', 'Accepted'] | ['s035904008', 's061916439'] | [9116.0, 9160.0] | [21.0, 23.0] | [146, 146] |
p02693 | u242455652 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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()\nline = input().split(" ")\na = False\nfor i in range(int(line[0]), int(line[1])):\n if i%K==0:\n print("OK")\n a = True\n \tbreak\nif a == False:\n print("NG") ', '\nK = input()\nline = input().split(" ")\na = False\nfor i in range(int(line[0]), int(line[1]) + 1):\n if i%int(K)==0:\n print("OK")\n a = True\n break\nif a == False:\n print("NG") \n '] | ['Runtime Error', 'Accepted'] | ['s682543761', 's922414784'] | [9028.0, 9116.0] | [24.0, 21.0] | [175, 204] |
p02693 | u242890210 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nY = 100\ncount = 0\nwhile int(Y) <= X:\n Y *= 1.01\n count += 1\nprint(count)', "K = int(input())\n[A, B] = list(map(int, input().split()))\nfor i in range(A, B + 1):\n X = i / K\n Y = i // K\n if X == Y:\n print('OK')\n break\nelse:\n print('NG')"] | ['Wrong Answer', 'Accepted'] | ['s363122143', 's530750148'] | [9128.0, 9176.0] | [20.0, 22.0] | [95, 183] |
p02693 | u243159381 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["k=int(input())\na,b=map(int,input().split())\nx=0\nfor i in range(a,b+1):\n if i%k==0:\n print('OK')\n break\nprint('NG')", "k=int(input())\na,b=map(int,input().split())\nx=0\nfor i in range(a,b+1):\n if i%k==0:\n print('OK')\n exit()\nprint('NG')"] | ['Wrong Answer', 'Accepted'] | ['s695614337', 's245072834'] | [9124.0, 9100.0] | [30.0, 28.0] | [131, 132] |
p02693 | u244434589 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can 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())\nn=0\nm=100\nwhile True:\n n+=1\n m+=m//100\n if m >=X:\n print(n)\n break\n', "K =int(input())\nA,B =map(int,input().split())\ncount ==0\nfor i in range(A,B+1):\n if i%K==0:\n print('OK')\n count =1\n break\nif count ==0: \n print('NG')", "K =int(input())\nA,B =map(int,input().split())\ncount ==0\nfor i in range(A,B+1):\n if i%K==0:\n print('OK')\n count =1\n break\n if count ==0: \n print('NG')", 'X=int(input())\nn=0\nm=100\nwhile True:\n n+=1\n m+= m//100\n if m >=X:\n print(n)\n break\n', "K =int(input())\nA,B =map(int,input().split())\ncount =0\nfor i in range(A,B+1):\n if i%K==0:\n print('OK')\n count =1\n break\nif count ==0: \n print('NG')"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s011409128', 's059679056', 's077214710', 's792218046', 's712103956'] | [9048.0, 9008.0, 8912.0, 9080.0, 9172.0] | [26.0, 23.0, 21.0, 29.0, 27.0] | [105, 177, 182, 106, 176] |
p02693 | u245960901 | 2,000 | 1,048,576 | Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. | ["s = input().split()\nk=int(s[0])\ns = input().split()\na=int(s[0])\nb=int(s[1])\nflag=0\nfor i in range(a,b+1):\n print(i)\n if i%k==0:\n flag=1\n break\nif flag==0:\n print('NG')\nelse:\n print('OK')", "s = input().split()\nk=int(s[0])\ns = input().split()\na=int(s[0])\nb=int(s[1])\nflag=0\nfor i in range(a,b+1):\n if i%k==0:\n flag=1\n break\nif flag==0:\n print('NG')\nelse:\n print('OK')\n"] | ['Wrong Answer', 'Accepted'] | ['s882381634', 's210425147'] | [9228.0, 9180.0] | [21.0, 21.0] | [212, 200] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.