buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
K = int(input())
A,B=map(int,input().split())
if (int(B/K)- int(A/K) ) >=1 :
print('OK')
else :
print('NG') | K = int(input())
A,B=map(int,input().split())
if (int(B/K) - int((A-1)/K) ) >=1 :
print('OK')
else :
print('NG') | [["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 25]] | 5 | 57 |
import math
K=int(input())
A,B=[int(i)for i in input().split()]
a=math.ceil(A/K)
print("Yes" if B>=a*K else "No")
| import math
K=int(input())
A,B=[int(i)for i in input().split()]
a=math.ceil(A/K)
print("OK" if B>=a*K else "NG")
| [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> a >> b >> k;
for (int i = a; i <= b; i++)
if (i % k == 0) {
cout << "OK";
return 0;
}
cout << "NG";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k == 0) {
cout << "OK";
return 0;
}
cout << "NG";
return 0;
}
| [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 69 |
#include <stdio.h>
#include <stdlib.h>
int main() {
int k, a, b, y;
scanf("%d %d %d", &k, &a, &b);
if (a % k == 0)
printf("%OK");
else {
y = a + k - a % k;
if (y <= b)
printf("OK");
else
printf("NG");
}
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
int main() {
int k, a, b, y;
scanf("%d %d %d", &k, &a, &b);
if (a % k == 0)
printf("OK");
else {
y = a + k - a % k;
if (y <= b)
printf("OK");
else
printf("NG");
}
return 0;
}
| [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 87 |
#include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d", &K);
scanf("%d%d", &A, &B);
puts(A % K <= (B - A) ? "OK" : "NG");
return 0;
}
| #include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d", &K);
scanf("%d%d", &A, &B);
puts(B % K <= (B - A) ? "OK" : "NG");
return 0;
} | [["-", 3, 4, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 41, 15, 16, 31, 16, 31, 22]] | 0 | 63 |
import sys
K = int(input())
A, B = map(int, input().split(" "))
for i in range(A, B+1):
print(i)
if i % K == 0:
print("OK")
sys.exit()
print("NG")
| import sys
K = int(input())
A, B = map(int, input().split(" "))
for i in range(A, B+1):
if i % K == 0:
print("OK")
sys.exit()
print("NG")
| [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 69 |
K = int(input())
A, B = map(int, input().split())
flg = False
for i in range(A, B):
print(i)
if i % K == 0:
flg = True
break
if flg or A % K == 0 or B % K == 0:
print('OK')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
flg = False
for i in range(A, B):
if i % K == 0:
flg = True
break
if flg or A % K == 0 or B % K == 0:
print('OK')
else:
print('NG') | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 81 |
k= int(input())
a,b = map(int,input().split())
count = 0
for i in range(a,b+1):
if i%k==0:
count +=1
if count >1:
print("OK")
else:
print("NG") | k= int(input())
a,b = map(int,input().split())
count = 0
for i in range(a,b+1):
if i%k==0:
count +=1
if count >=1:
print("OK")
if count==0:
print("NG") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, ... | 5 | 68 |
K = int(input())
A,B = map(int, input().split())
count = 0
for i in range(A,B):
if((i % K) == 0):
count+=1
if(count > 0):
print("OK")
else:
print("NG") | K = int(input())
A,B = map(int, input().split())
count = 0
for i in range(A,B+1):
if((i % K) == 0):
count+=1
if(count > 0):
print("OK")
else:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 72 |
K = int(input())
A = list(map(int, input().split()))
d=A[1]-A[0]
ok=0
for i in range(d):
if A[0]%K==0:
print("OK")
ok+=1
break
else:
a=A[0]
A[0]=a+1
if ok==0:
print("NG")
| K = int(input())
A = list(map(int, input().split()))
d=A[1]-A[0]+1
ok=0
for i in range(d):
if A[0]%K==0:
print("OK")
ok+=1
break
else:
a=A[0]
A[0]=a+1
if ok==0:
print("NG")
| [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, S;
S = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
S++;
cout << i % K << endl;
break;
}
}
if (S == 0)
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, S;
S = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
S++;
cout << "OK" << endl;
break;
}
}
if (S == 0)
cout << "NG" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a, b; //範囲
cin >> a >> b;
int m = 1, num = 0;
while (num <= b) {
if (num >= a && num <= b) {
cout << "OK" << endl;
break;
}
m++;
num = n * m;
}
if (num > b) {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a, b; //範囲
cin >> a >> b;
int m = 1, num = 0;
while (num <= b) {
if (num >= a && num <= b) {
cout << "OK" << endl;
break;
}
m++;
num += n;
}
if (num > b) {
cout << "NG" << endl;
}
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 95 |
#include <bits/stdc++.h>
#define LL long long
#define rep(i, a, b) for (int i = a; i <= b; ++i)
using namespace std;
const int mn = 1e5 + 7;
int main() {
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
int f = 0;
rep(i, a, b) if (i % n == 0) f = 1;
puts(f ? "Yes" : "No");
} | #include <bits/stdc++.h>
#define LL long long
#define rep(i, a, b) for (int i = a; i <= b; ++i)
using namespace std;
const int mn = 1e5 + 7;
int main() {
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
int f = 0;
rep(i, a, b) if (i % n == 0) f = 1;
puts(f ? "OK" : "NG");
} | [["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]] | 1 | 95 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
typedef long long int_;
inline int readint() {
int a = 0;
char c = getchar(), f = 1;
for (; c < '0' or c > '9'; c = getchar())
if (c == '-')
f = -f;
for (; '0' <= c and c <= '9'; c = getchar())
a = (a... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
typedef long long int_;
inline int readint() {
int a = 0;
char c = getchar(), f = 1;
for (; c < '0' or c > '9'; c = getchar())
if (c == '-')
f = -f;
for (; '0' <= c and c <= '9'; c = getchar())
a = (a... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 284 |
k = int(input())
a, b = map(int, input().split())
q, r = divmod(a, k)
Q, R = divmod(b, k)
if q > Q:
print('OK')
else:
if r == 0:
print('OK')
else:
print('NG')
| k = int(input())
a, b = map(int, input().split())
q, r = divmod(a, k)
Q, R = divmod(b, k)
if q < Q:
print('OK')
else:
if r == 0:
print('OK')
else:
print('NG')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]] | 5 | 76 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int X, A, B;
cin >> X >> A >> B;
bool flag = 0;
for (int i = A; i <= B; i++) {
if (i % X == 0) {
flag = 1;
break;
}
}
if (flag)
cout << "YES\n";
else {
cout << "NG\n";
}
return 0;
}
| #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int X, A, B;
cin >> X >> A >> B;
bool flag = 0;
for (int i = A; i <= B; i++) {
if (i % X == 0) {
flag = 1;
break;
}
}
if (flag)
cout << "OK\n";
else {
cout << "NG\n";
}
return 0;
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 97 |
#include <bits/stdc++.h>
#define f(i, n) for (int i = 0; i < n; i++)
#define P pair<int, int>
#define F first
#define S second
#define int long long
#define mod 1000000007
#define mmod 998244353
#define all(v) v.begin(), v.end()
#define INF LLONG_MAX / 3
using namespace std;
int mypow(int fa, int fb, int fc) {
if (fb... | #include <bits/stdc++.h>
#define f(i, n) for (int i = 0; i < n; i++)
#define P pair<int, int>
#define F first
#define S second
#define int long long
#define mod 1000000007
#define mmod 998244353
#define all(v) v.begin(), v.end()
#define INF LLONG_MAX / 3
using namespace std;
int mypow(int fa, int fb, int fc) {
if (fb... | [["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 24], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 25]] | 1 | 212 |
k = int(input())
a,b = map(int,input().split())
c = list(range(a,b+1))
d = []
for i in range(len(c)):
if c[i] % k == 0:
d.append('A')
if len(d) >= 1:
print('OK')
else:
print('No') | k = int(input())
a,b = map(int,input().split())
c = list(range(a,b+1))
d = []
for i in range(len(c)):
if c[i] % k == 0:
d.append('A')
if len(d) >= 1:
print('OK')
else:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 92 |
k = int(input())
a, b = map(int, input().split())
if a == b and a % k == 0:
print('OK')
elif b // k - a // k >= 1:
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
if a % k == 0:
print('OK')
elif b // k - a // k >= 1:
print('OK')
else:
print('NG') | [["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 66 |
K = int(input())
a, b = map(int, input().split())
for num in range(a, b+1):
print(num)
if num % K == 0:
print('OK')
break
else:
print('NG')
| K = int(input())
a, b = map(int, input().split())
for num in range(a, b+1):
if num % K == 0:
print('OK')
break
else:
print('NG') | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 62 |
k = gets.to_i
a,b = gets.chomp.split.map(&:to_i)
sum = 0
(a..b).each do |i|
if i % k == 0
sum += 1
end
end
if sum > 0
puts "OK"
else
puts "NO"
end | k = gets.to_i
a,b = gets.chomp.split.map(&:to_i)
sum = 0
(a..b).each do |i|
if i % k == 0
sum += 1
end
end
if sum > 0
puts "OK"
else
puts "NG"
end | [["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 59 |
#include <stdio.h>
int main(void) {
int k, a, b, i;
scanf("%d %d %d", &k, &a, &b);
if (k == 1)
printf("OK");
else if (k > b)
printf("NG");
else if (k <= b - a)
printf("OK");
else {
for (i = a; i < b; i++) {
if (i % k == 0) {
printf("OK");
break;
} else if (i == b... | #include <stdio.h>
int main(void) {
int k, a, b, i;
scanf("%d %d %d", &k, &a, &b);
if (k == 1)
printf("OK");
else if (k > b)
printf("NG");
else if (k <= b - a)
printf("OK");
else {
for (i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK");
break;
}
if (i ==... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 17, 18], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]] | 0 | 131 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int min, max, multi;
int cnt = 0;
cin >> multi >> min >> max;
for (int i = min; i < max; i++) {
if (i % multi == 0) {
cnt++;
}
}
if (cnt != 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int min, max, multi;
int cnt = 0;
cin >> multi >> min >> max;
for (int i = min; i <= max; i++) {
if (i % multi == 0) {
cnt++;
}
}
if (cnt != 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 88 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int a, b, k;
int main() {
cin >> a >> b >> k;
for (int i = 1; i <= 1000; i++) {
int pos = k * i;
if (a <= pos && pos <= b) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int a, b, k;
int main() {
cin >> k >> a >> b;
for (int i = 1; i <= 1000; i++) {
int pos = k * i;
if (a <= pos && pos <= b) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;... | [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 92 |
#include <cstdio>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d %d", &a, &b);
int x = b % k;
if (b - x > a) {
printf("OK");
} else
printf("NG");
return 0;
}
| #include <cstdio>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d %d", &a, &b);
int x = b % k;
if (b - x >= a) {
printf("OK");
} else
printf("NG");
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 73 |
#include <stdio.h>
int main() {
int a, b, k, m, i, c, j;
scanf("%d", &k);
scanf("%d", &a);
scanf("%d", &b);
for (i = a + 1; i < b; i++) {
m = i / k;
j = m * k;
if (i == j)
c++;
}
if (c != 0)
printf("OK");
else
printf("NG");
}
| #include <stdio.h>
int main() {
int a, b, k, m, i, c = 0, j;
scanf("%d", &k);
scanf("%d", &a);
scanf("%d", &b);
for (i = a; i <= b; i++) {
m = i / k;
j = m * k;
if (i == j)
c++;
}
if (c != 0)
printf("OK");
else
printf("NG");
}
| [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 112 |
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
... | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 146], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 147], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 17, 32]] | 3 | 239 |
K = int(input())
A , B = (map(int , input().split()))
kk = K
while True:
if kk >= A and kk <= B:
ans = 'OK'
break
elif kk > 600:
ans = 'NG'
break
else:
kk = kk+K
print(ans)
| K = int(input())
A , B = (map(int , input().split()))
kk = K
while True:
if kk >= A and kk <= B:
ans = 'OK'
break
elif kk > B:
ans = 'NG'
break
else:
kk = kk+K
print(ans) | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 69 |
#include <math.h>
#include <stdio.h>
int main() {
int n;
int i;
int a, b;
scanf("%d", &n);
scanf("%d %d", &a, &b);
for (i = a + 1; i < b; i++)
if (i % n == 0) {
printf("OK");
return 0;
}
printf("NG");
return 0;
} | #include <math.h>
#include <stdio.h>
int main() {
int n;
int i;
int a, b;
scanf("%d", &n);
scanf("%d %d", &a, &b);
for (i = a; i <= b; i++)
if (i % n == 0) {
printf("OK");
return 0;
}
printf("NG");
return 0;
} | [["-", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 89 |
#入力
K=int(input())
A,B=map(lambda x:int(x),input().split())
flag=False
i=0
num=0
while num<=B and num>=A:
num=K*i
if num>=A and num<=B:
flag=True
break
else:
i=i+1
if flag:
print("OK")
else:
print("NG")
| #入力
K=int(input())
A,B=map(lambda x:int(x),input().split())
flag=False
i=0
num=0
while num<=B:
num=K*i
if num>=A and num<=B:
flag=True
break
else:
i=i+1
if flag:
print("OK")
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 0, 22], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 20]] | 5 | 91 |
def solve(n, x, y):
for i in range(x, y+1):
if i % n == 0:
return "OK"
return "NG"
n = int(input())
a, b = list(map(int, input().split()))
solve(n, a, b) | def solve(n, x, y):
for i in range(x, y+1):
if i % n == 0:
return "OK"
return "NG"
n = int(input())
a, b = list(map(int, input().split()))
print(solve(n, a, b)) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 72 |
/* A - We Love Golf */
#include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d", &K);
scanf("%d %d", &A, &B);
if (A == B && A % K == 0) {
printf("OK\n");
} else if (B - A >= K - 1 || B / K - A / K > 0) {
printf("OK\n");
} else {
printf("NG\n");
}
}
| /* A - We Love Golf */
#include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d", &K);
scanf("%d %d", &A, &B);
if (A % K == 0 || B % K == 0) {
printf("OK\n");
} else if (B - A >= K - 1 || B / K - A / K > 0) {
printf("OK\n");
} else {
printf("NG\n");
}
}
| [["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["-", 15, 23, 0, 16, 12, 16, 31, 16, 31, 22]] | 0 | 104 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((b - (b % k)) <= a)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((b - (b % k)) >= a)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int i, j, tmp = k;
while (tmp < b) {
if (tmp > a) {
cout << "OK";
break;
}
if (k == 1) {
cout << "OK";
break;
}
tmp += k;
}
// cout << "tmp" <<tmp;
if (tmp > b)
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int i, j, tmp = k;
while (tmp <= b) {
if (tmp >= a) {
cout << "OK";
break;
}
if (k == 1) {
cout << "OK";
break;
}
tmp += k;
}
// cout << "tmp" <<tmp;
if (tmp > b)
c... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 93 |
K = int(input())
A,B = map(int,input().split())
ans = "NG"
if K == 1:
ans = "OK"
else:
for i in range(A,B+1):
print(i)
if i % K == 0:
ans = "OK"
break
print(ans) | K = int(input())
A,B = map(int,input().split())
ans = "NG"
if K == 1:
ans = "OK"
else:
for i in range(A,B+1):
if i % K == 0:
ans = "OK"
break
print(ans) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 74 |
k = int(input())
[a, b] = [int(i) for i in input().split()]
sum = k
while sum <= b:
sum += k
if sum >= a and sum <= b:
print("OK")
break
else:
print("NG")
| k = int(input())
[a, b] = [int(i) for i in input().split()]
sum = 0
while sum < b:
sum += k
if sum >= a and sum <= b:
print("OK")
break
else:
print("NG") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 65 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pysnooper # @pysnooper.snoop()
from pprint import pprint as pp
from pprint import pformat as pf
def solve():
k = int(input())
a, b = map(int, input().split())
v = k
while not (v > b):
if a <= v <= b:
print("OK")
retur... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pprint import pprint as pp
from pprint import pformat as pf
def solve():
k = int(input())
a, b = map(int, input().split())
v = k
while not (v > b):
if a <= v <= b:
print("OK")
return 0
v += k
print("NG")
... | [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 93 |
k=int(input())
flag=0
ab=list(map(int, input().split()))
i=0
while ab[1]-ab[0]+1-i>0:
if (ab[0]+i)%k==0:
flag=1
print("OK")
i=i+1
if flag==0:
print("NG") | k=int(input())
flag=0
ab=list(map(int, input().split()))
i=0
while ab[1]-ab[0]+1-i>0:
if (ab[0]+i)%k==0:
flag=1
print("OK")
break
i=i+1
if flag==0:
print("NG") | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 87 |
package main
import "fmt"
func main() {
var K, A, B int
fmt.Scanf("%d\n", &K)
fmt.Scanf("%d %d\n", &A, &B)
if A%K == 0 {
fmt.Println("OK")
return
}
if A-(A%K)+K<= B {
fmt.Println("OK")
}else{
fmt.Println("NO")
}
} | package main
import "fmt"
func main() {
var K, A, B int
fmt.Scanf("%d\n", &K)
fmt.Scanf("%d %d\n", &A, &B)
if A%K == 0 {
fmt.Println("OK")
return
}
if A-(A%K)+K<= B {
fmt.Println("OK")
}else{
fmt.Println("NG")
}
} | [] | 7 | 107 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ULL;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A % K == 0 || B % K == 0)
cout << "OK" << endl;
if (B / K > A / K)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ULL;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A % K == 0 || B % K == 0)
cout << "OK" << endl;
else if (B / K > A / K)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 82 |
K=int(input())
A,B=map(int,input().split())
x=A
while x<=B:
if x%K==0:
print('OK')
break
else:
x+=1
if x==B+1:
print('No') | K=int(input())
A,B=map(int,input().split())
x=A
while x<=B:
if x%K==0:
print('OK')
break
else:
x+=1
if x==B+1:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int C = A;
for (int i = 0; i < B - A + 1; i++) {
if (C % K == 0) {
cout << "OK" << endl;
break;
}
if ((C % K != 0) && (i == B - A - 1)) {
cout << "NG" << endl;
} else {
C++;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int C = A;
for (int i = 0; i < B - A + 1; i++) {
if (C % K == 0) {
cout << "OK" << endl;
break;
}
if ((C % K != 0) && (i == B - A)) {
cout << "NG" << endl;
} else {
C++;
}
}... | [["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 33], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 12, 13]] | 1 | 108 |
check = False
n = int(input())
num = list(map(int, input().split()))
while num[0] < num[1] and check != True :
if(num[0]%n==0):
check=True;
num[0] += 1
if(check):
print("OK")
else:
print("NG") | check = False
n = int(input())
num = list(map(int, input().split()))
while num[0] <= num[1] and check != True :
if(num[0]%n==0):
check=True;
num[0] += 1
if(check):
print("OK")
else:
print("NG") | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 19]] | 5 | 84 |
K = int(input())
A, B = (int(x) for x in input().split())
if A == B:
if A%K == 0:
print("OK")
else:
print("NG")
else:
for i in range(A, B):
if i%K == 0:
print("OK")
quit()
print("NG") | K = int(input())
A, B = (int(x) for x in input().split())
if A == B:
if A%K == 0:
print("OK")
else:
print("NG")
else:
for i in range(A, B+1):
if i%K == 0:
print("OK")
quit()
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 88 |
K=int(input())
A,B = map(int,input().split())
sa = B - A
flag = 0
for i in range(sa):
if (A+i)%K==0:
flag = 1
break
if flag==1:
print('OK')
else:
print('NG') | K=int(input())
A,B = map(int,input().split())
sa = B - A
flag = 0
for i in range(sa+1):
if (A+i)%K==0:
flag = 1
break
if flag==1:
print('OK')
else:
print('NG') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 74 |
k = int(input())
a, b = map(int, input().split())
judge = 0
for i in range(b-a+1):
if a+i % k == 0:
judge = 1
if judge == 1:
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
judge = 0
for i in range(b-a+1):
if (a+i) % k == 0:
judge = 1
if judge == 1:
print("OK")
else:
print("NG") | [["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 24], ["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 25]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REPR(i, n) for (ll i = n; i >= 0; --i)
#define FOR(i, m, n) for (ll i = m, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
template <class T> inline bool c... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REPR(i, n) for (ll i = n; i >= 0; --i)
#define FOR(i, m, n) for (ll i = m, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
template <class T> inline bool c... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 303 |
// #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
#include <bits/stdc++.h>
#include <complex>
// #include <iostream> // cout, endl, cin
// #include <string> // string, to_string, stoi
// #include <vector> // vector
// #inclu... | // #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
#include <bits/stdc++.h>
#include <complex>
// #include <iostream> // cout, endl, cin
// #include <string> // string, to_string, stoi
// #include <vector> // vector
// #inclu... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,307 |
K = int(input())
A, B = map(int, input().split())
if (B - A + 1) >= K:
print("OK")
else:
result = "NO"
for i in range(A, B + 1):
if i % K == 0:
result = "OK"
break
print(result)
| K = int(input())
A, B = map(int, input().split())
if (B - A + 1) >= K:
print("OK")
else:
result = "NG"
for i in range(A, B + 1):
if i % K == 0:
result = "OK"
break
print(result)
| [["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 77 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long int lli;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int temp = (A / K);
if ((temp * K == A) || (((temp + 1) * K) < B)) {
cout << "OK" << endl;
} else {
cout ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long int lli;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int temp = (A / K);
if (((temp * K) == A) || (((temp + 1) * K) <= B)) {
cout << "OK" << endl;
} else {
co... | [["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19]] | 1 | 100 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
boolean v = true;
for (int i = a; i <= b; i++) {
if (a % k == 0) {
System.out.println("OK");
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
boolean v = true;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
System.out.println("OK");
... | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22]] | 3 | 129 |
K = int(input())
A, B = map(int,input().split())
for i in range(A,B+1):
print(i)
if i%K ==0:
print('OK')
exit()
print('NG')
| K = int(input())
A, B = map(int,input().split())
for i in range(A,B+1):
if i%K ==0:
print('OK')
exit()
print('NG')
| [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 62 |
N = int(input())
A, B = map(int, input().split())
for i in range(A, B+1):
if i % N == 0:
print('OK')
else:
if i == B:
print('NG')
else:
continue | N = int(input())
A, B = map(int, input().split())
for i in range(A, B+1):
if i % N == 0:
print('OK')
break
else:
if i == B:
print('NG')
break
else:
continue | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 65 |
k = int(input())
a, b = list(map(int, input().split()))
count = 0
for i in range(1, 1001):
if k * i >= a and k * i <= b:
print('OK')
count = 1
break
if count == 0:
print('NO')
| k = int(input())
a, b = list(map(int, input().split()))
count = 0
for i in range(1, 1001):
if k * i >= a and k * i <= b:
print('OK')
count = 1
break
if count == 0:
print('NG')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k;
cin >> a >> b;
bool OK = false;
for (int i = 1; i * k < b; ++i) {
if (a <= k * i && k * i <= b) {
OK = true;
break;
}
}
if (OK)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k;
cin >> a >> b;
bool OK = false;
for (int i = 1; i * k <= b; ++i) {
if (a <= k * i && k * i <= b) {
OK = true;
break;
}
}
if (OK)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 95 |
K = input()
A,B = input().split()
if A == B:
ans = int(A)
if ans % int(K) == 0:
print('OK')
exit()
print('NG')
exit()
for i in range(int(A), int(B)):
if i % int(K) == 0:
print('OK')
exit()
print('NG') | K = input()
A,B = input().split()
if A == B:
ans = int(A)
if ans % int(K) == 0:
print('OK')
exit()
print('NG')
exit()
for i in range(int(A), int(B) + 1):
if i % int(K) == 0:
print('OK')
exit()
print('NG')
exit() | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 96 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a / k != b / k || (a % k == 0 && b % k == 0))
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a / k != b / k || a % k == 0 || b % k == 0)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 71 |
$k = gets.chop.to_i
$a, $b = gets.chop.split.map(&:to_i)
flag = false
ans = $k
$b.times {
ans += $k
if ans >= $a && ans <= $b
flag = true
end
}
puts flag ? 'OK' : 'NG'
| $k = gets.chop.to_i
$a, $b = gets.chop.split.map(&:to_i)
flag = false
ans = 0
1000.times {
ans += $k
if ans >= $a && ans <= $b
flag = true
end
}
puts flag ? 'OK' : 'NG'
| [["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 744], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 486, 744], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 612], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 486, 612]] | 4 | 58 |
k = int(input())
a, b = map(int, input().split())
count = 1
m = 0
while a >= m:
m = k * count
count += 1
if a <= m <= b:
print("OK")
else:
print("NG")
| k = int(input())
a, b = map(int, input().split())
count = 1
m = 0
while a > m:
m = k * count
count += 1
if a <= m <= b:
print("OK")
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 64 |
k = int(input())
a,b = map(int,input().split())
if k <= b-a+1:
print('OK')
else:
print('NG') | k = int(input())
a,b = map(int,input().split())
if b % k <= b-a:
print('OK')
else:
print('NG') | [["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 47 |
K = int(input())
A , B = (int(x) for x in input().split())
for i in range(1000):
if A >= i*K >= B:
print("OK")
break
elif i*K > B:
print("NG")
break
| K = int(input())
A , B = (int(x) for x in input().split())
for i in range(1000):
if B >= i * K >= A:
print("OK")
break
elif i*K > B:
print("NG")
break
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 66 |
import sys
K = int(input())
A, B = [int(x) for x in input().split()]
for i in range(A, B+1):
if i%k == 0:
print("OK")
sys.exit()
print("NG") | import sys
K = int(input())
A, B = [int(x) for x in input().split()]
for i in range(A, B+1):
if i%K == 0:
print("OK")
sys.exit()
print("NG") | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B % K < B - A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B % K <= B - A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 58 |
X = int(input())
A,B = map(int, input().split())
F = 0
for i in range(A, B, 1):
if i % X == 0:
print("OK")
F =+ 1
break
if F == 0:
print("NG") | X = int(input())
A,B = map(int, input().split())
F = 0
for i in range(A, B+1, 1):
if i % X == 0:
print("OK")
F =+ 1
break
if F == 0:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n) for (int i = 1; i <= n; i++)
int main() {
int k, min, max;
cin >> k >> min >> max;
for (int i = min; i <= max; i++) {
if (i % k == 0) {
cout << "Yes" << endl;
return 0;
}
}
cout <... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n) for (int i = 1; i <= n; i++)
int main() {
int k, min, max;
cin >> k >> min >> max;
for (int i = min; i <= max; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout <<... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 88 |
k = int(input())
a, b = map(int, input().split())
count = 0
for i in range(a, b+1):
if i % 7 == 0:
count += 1
else:
continue
if count != 0:
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
count = 0
for i in range(a, b+1):
if i % k == 0:
count += 1
else:
continue
if count != 0:
print("OK")
else:
print("NG")
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 71 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long A;
long B;
long K;
int ans1;
int ans2;
cin >> K;
cin >> A >> B;
ans1 = A / K;
ans2 = B / K;
if ((ans2 - ans1) != 0) {
cout << "OK" << endl;
} else if (ans1 =... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long A;
long B;
long K;
int ans1;
int ans2;
cin >> K;
cin >> A >> B;
ans1 = A / K;
ans2 = B / K;
if ((ans2 - ans1) != 0) {
cout << "OK" << endl;
} else if (A % K ... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 108 |
K =input()
A,B = map(int,input().split())
cnt = 0
for i in range(A, B+1):
if(i % K == 0):
print("OK")
cnt += 1
break
if(cnt == 0):
print("NG") | K = int(input())
A,B = map(int,input().split())
cnt = 0
for i in range(A, B+1):
if(i % K == 0):
print("OK")
cnt += 1
break
if(cnt == 0):
print("NG") | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
int main() {
ll K, A, B;
cin >> K >> A >> B;
ll c = 0;
if (B - A >= K)
cout << "OK" << endl;
else if (K == 1)
cout << "OK" << endl;
else {
FOR(i, A,... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
int main() {
ll K, A, B;
cin >> K >> A >> B;
ll c = 0;
if (B - A >= K)
cout << "OK" << endl;
else if (K == 1)
cout << "OK" << endl;
else {
FOR(i, A,... | [["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 143 |
K = int(input())
A, B = map(int, input().split())
i = A // K
nK = K
OK = False
if A-B > K:
print('OK')
else:
while nK < B:
if (nK >= A) and (nK <= B):
OK = True
print('OK')
break
nK = i * K
i = i + 1
if OK == False:
print('NG') | K = int(input())
A, B = map(int, input().split())
i = A // K
nK = K
OK = False
if A-B > K:
print('OK')
else:
while nK <= B:
if (nK >= A) and (nK <= B):
OK = True
print('OK')
break
nK = i * K
i = i + 1
if OK == False:
print('NG') | [["-", 75, 76, 8, 196, 0, 52, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 52, 15, 666, 667, 19]] | 5 | 99 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int count = 0;
for (int i = a + 1; i <= b; i++) {
if (i % K == 0) {
count++;
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int count = 0;
for (int i = a; i <= b; i++) {
if (i % K == 0) {
count++;
}
... | [["-", 0, 7, 502, 503, 49, 200, 51, 16, 17, 72], ["-", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499]] | 3 | 131 |
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader =
new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Mai... | import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader =
new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Mai... | [["-", 3, 4, 0, 23, 0, 510, 75, 5, 0, 491], ["+", 3, 4, 0, 23, 0, 510, 75, 5, 0, 491]] | 3 | 236 |
import math
k = input()
s, t = [int(i)/k for i in input().split()]
if math.ceil(s) <= math.floor(t):
print('OK')
else:
print('NG') | import math
k = int(input())
s, t = [int(i)/k for i in input().split()]
if math.ceil(s) <= math.floor(t):
print('OK')
else:
print('NG')
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 58 |
K=int(input())
A,B=list(map(int,input().split()))
a=A/K
b=B/K
if A%K==0 or B%K==0 or (a+1)*K<=B:
print('OK')
else:
print('NG') | K=int(input())
A,B=list(map(int,input().split()))
a=int(A/K)
b=B/K
if A%K==0 or B%K==0 or (a+1)*K<=B:
print('OK')
else:
print('NG') | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 74 |
#!/usr/bin/env python3
import sys
def solve(K: int, A: int, B: int):
if K == 1:
print("OK")
exit()
a = A // K
if (a + 1) * K <= B:
print("OK")
else:
print("NG")
return
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the ... | #!/usr/bin/env python3
import sys
def solve(K: int, A: int, B: int):
if A % K == 0:
print("OK")
return
a = A // K
if (a + 1) * K <= B:
print("OK")
else:
print("NG")
return
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the ... | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["-", 0, 14, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 0, 612], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], [... | 5 | 146 |
#include <stdio.h>
int main() {
int k, a, b, i;
int dif;
scanf("%d", &k);
scanf("%d %d", &a, &b);
i = 0;
while (i < (b - a)) {
if ((a + i) % k == 0) {
printf("OK");
return (0);
}
i++;
}
printf("NG");
return (0);
} | #include <stdio.h>
int main() {
int k, a, b, i;
int dif;
scanf("%d", &k);
scanf("%d %d", &a, &b);
i = 0;
while (i <= (b - a)) {
if ((a + i) % k == 0) {
printf("OK");
return (0);
}
i++;
}
printf("NG");
return (0);
} | [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 19]] | 0 | 100 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
if (b - a + 1 < k)
if (a % k <= b % k) {
System.out.println("NG");
return;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
if (b - a + 1 < k)
if (a % k > 0 && a % k <= b % k) {
System.out.println("NG");
... | [["+", 64, 57, 15, 15, 0, 16, 31, 16, 17, 47], ["+", 64, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 0, 57, 64, 57, 15, 15, 0, 16, 17, 98], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 12, 22]] | 3 | 108 |
#include <algorithm>
#include <bits/stdc++.h>
#include <stdio.h>
int main() {
int K;
int A, B;
std::cin >> K;
std::cin >> A >> B;
for (int i = A; i < B; i++) {
if (i % K == 0) {
std::cout << "OK" << std::endl;
break;
} else if (i == B - 1) {
std::cout << "NG" << std::endl;
}
... | #include <algorithm>
#include <bits/stdc++.h>
#include <stdio.h>
int main() {
int K;
int A, B;
std::cin >> K;
std::cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
std::cout << "OK" << std::endl;
break;
} else if (i == B) {
std::cout << "NG" << std::endl;
}
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 97 |
k = int(input())
a,b = map(int, input().split())
if len(set(range(0,1000,k)) & set(range(a-1,b))) >= 1:
print('OK')
else:
print('NG') | k = int(input())
a,b = map(int, input().split())
if len(set(range(0,1001,k)) & set(range(a,b+1))) >= 1:
print('OK')
else:
print('NG') | [["-", 31, 652, 3, 4, 0, 652, 3, 4, 0, 612], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 612], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 68 |
K=int(input())
A,B=map(int,input().split())
for i in range(A,B,1):
if i%K==0:
print("OK")
break
else:
print("NG")
| K=int(input())
A,B=map(int,input().split())
for i in range(A,B+1,1):
if i%K==0:
print("OK")
break
else:
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 58 |
#include <bits/stdc++.h>
#define PI 3.141592653589
#define ll long long
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NO";
}
| #include <bits/stdc++.h>
#define PI 3.141592653589
#define ll long long
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
}
| [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 77 |
N=int(input())
A,B=input().split(' ')
A=int(A)
B=int(B)
for i in range(1000):
if A<i*N and i*N<B:
print('OK')
exit(0)
print('NG') | N=int(input())
A,B=input().split(' ')
A=int(A)
B=int(B)
for i in range(1000):
if A<=i*N and i*N<=B:
print('OK')
exit(0)
print('NG') | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 71 |
K = int(input())
i = list(map(int, input().split()))
count =i[0]
for num in range(i[0],i[1]):
if num % K == 0:
print('OK')
break;
else:
count += 1
if count == i[1]:
print("NG")
| K = int(input())
i = list(map(int, input().split()))
count =i[0]
for num in range(i[0],i[1]+1):
if num % K == 0:
print('OK')
break;
else:
count += 1
if count > i[1]:
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
vector<int> vec(B - A + 2);
for (int i = 1; i < B - A + 2; i++) {
vec.at(i) = A + i - 1;
}
for (int i = 1; i < B - A + 2; i++) {
if (vec.at(i) % K == 0) {
cout << "OK" << endl;
break;
} else {... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
vector<int> vec(B - A + 2);
for (int i = 1; i < B - A + 2; i++) {
vec.at(i) = A + i - 1;
}
for (int i = 1; i < B - A + 2; i++) {
if (vec.at(i) % K == 0) {
cout << "OK" << endl;
break;
}
if... | [["-", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 0, 57, 75, 76, 0, 9, 0, 116, 0, 117], ["-", 0, 57, 75, 76, 0, 9, 0, 116, 0, 35], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 143 |
K = int(input())
A, B = map(int, input().split( ))
Res = int(A)
M = 0
while Res <= B:
if Res % K == 0:
print("OK")
M = 1
break
Res += 1
if M == 0:
print("NO")
| K = int(input())
A, B = map(int, input().split( ))
Res = int(A)
M = 0
while Res <= B:
if Res % K == 0:
print("OK")
M = 1
break
Res += 1
if M == 0:
print("NG")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
#include <iostream>
int main() {
int K;
int A, B;
bool dochi = false;
std::cin >> K;
std::cin >> A >> B;
for (int i = A - 1; i < B + 1; i++) {
if (i % K == 0) {
dochi = true;
break;
}
}
if (dochi == true) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << std:... | #include <iostream>
int main() {
int K;
int A, B;
bool dochi = false;
std::cin >> K;
std::cin >> A >> B;
for (int i = A; i < B + 1; i++) {
if (i % K == 0) {
dochi = true;
break;
}
}
if (dochi == true) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << std::end... | [["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13]] | 1 | 106 |
k = int(input())
a, b = map(int, input().split())
i = 0
while i*k < b:
if a <= i*k <= b:
print("OK")
break
i += 1
else:
print("NG")
| k = int(input())
a, b = map(int, input().split())
i = 0
while i*k <= b:
if a <= i*k <= b:
print("OK")
break
i += 1
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19]] | 5 | 61 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
using namespace std;
int main() {
int K;
cin >> K;
int N, M;
cin >> N >> M;
for (int i = N; i <= M; i++) {
if (i % K == 0) {
cout << "Yes" << endl;... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
using namespace std;
int main() {
int K;
cin >> K;
int N, M;
cin >> N >> M;
for (int i = N; i <= M; i++) {
if (i % K == 0) {
cout << "OK" << endl;
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
K=()
A=()
B=()
K=int(input(""))
A, B = map(int, input().split())
V=False
C=K
D=B+2
for i in range(0,D):
K=C*i
print(K)
if K>=A and K<=B:
V=True
break
else:
V=False
if V==True:
print("OK")
else:
print("NG") | K=()
A=()
B=()
K=int(input(""))
A, B = map(int, input().split())
V=False
C=K
D=B+1
for i in range(0,D):
K=C*i
if K>=A and K<=B:
V=True
break
else:
V=False
if V==True:
print("OK")
else:
print("NG") | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 105 |
def main():
K=int(input())
(A,B)=[int(x) for x in input().split()]
if A % K == 0:
print('OK')
elif math.ceil(A/K)*K <= B:
print('OK')
else:
print('NG')
if __name__ == '__main__':
main() | import math
def main():
K=int(input())
(A,B)=[int(x) for x in input().strip().split()]
if A % K == 0:
print('OK')
elif math.ceil(A/K)*K <= B:
print('OK')
else:
print('NG')
if __name__ == '__main__':
main()
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 500, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 500, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["+", 12, 652, 63, 319, 500, 652, 63, 319, 0, 131], ["+", 12, 652, 63, 319, 500, 652, 63, 319, 319, 22]] | 5 | 86 |
import math
a=int(input())
li = list(map(int,input().split()))
if li[1]<=math.ceil(li[0]/a)*a:
print("NG")
else:
print("OK") | import math
a=int(input())
li = list(map(int,input().split()))
#print(math.ceil(li[0]/a)*a)
if li[1]<math.ceil(li[0]/a)*a:
print("NG")
else:
print("OK") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]] | 5 | 61 |
K=int(input())
A,B=(int(x) for x in input().split())
if K-(A%K)<=B-A or K==A:print('OK')
else:print('NG')
| K=int(input())
A,B=(int(x) for x in input().split())
if K-(A%K)<=B-A or A%K==0:print('OK')
else:print('NG')
| [["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 109], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 59 |
k = int(input())
a, b = map(int, input().split())
if (k <= (b-a)):
print("OK")
else:
count = 0
for i in range(a, b+1):
if i % k == 0:
print("OK")
break;
count = 1
if count == 1:
print("NG") | k = int(input())
a, b = map(int, input().split())
if (k <= (b-a)):
print("OK")
else:
count = 0
for i in range(a, b+1):
if i % k == 0:
print("OK")
count = 1
break;
if count == 0:
print("NG") | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 35], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 87 |
n = int(input())
a,b = map(int,input().split())
for i in range(a,b):
if i % n == 0:
print("OK")
break
else:
print("NG") | n = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
if i % n == 0:
print("OK")
break
else:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 56 |
k = int(input())
a, b = map(int,input().split())
c = b//k
ans=0
for i in range(c):
i += 1
ans = i*k
if a<= ans <=b:
print("OK")
break
else:
ans = -1
if ans == -1:
print("NG")
| k = int(input())
a, b = map(int,input().split())
c = b//k
ans=0
for i in range(c+1):
i += 1
ans = i*k
if a<= ans <=b:
print("OK")
break
else:
ans = -1
if ans == -1:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 80 |
#include <stdio.h>
int main() {
int a, c, d, e, k, j, b, l, m = 0;
scanf("%d%d%d", &a, &b, &c);
m = b + 1;
while (1) {
if (m % a == 0) {
printf("OK\n");
break;
}
if (m >= c) {
printf("NG\n");
break;
}
m++;
}
return 0;
} | #include <stdio.h>
int main() {
int a, c, d, e, k, j, b, l, m = 0;
scanf("%d%d%d", &a, &b, &c);
m = b;
while (1) {
if (m % a == 0) {
printf("OK\n");
break;
}
if (m >= c) {
printf("NG\n");
break;
}
m++;
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 0 | 101 |
k = int(input())
a,b = map(int, input().split())
for i in range(a,b+1):
if i % k == 0:
print("OK")
elif i == b:
print("NG")
break | k = int(input())
a,b = map(int, input().split())
for i in range(a,b+1):
if i % k == 0:
print("OK")
break
elif i == b:
print("NG")
break | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 61 |
import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next... | import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next(... | [["-", 15, 15, 0, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 15, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 15, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 15, 0, 16, 12, 16, 31, 23, 0, 25]] | 3 | 380 |
a = int(input())
b = input().split(" ")
if int(b[0]) % a == 0:
print("OK")
elif int(b[1]) % a == 0:
print("OK")
elif int(b[0]) // a + a > int(b[1]):
print("NG")
else:
print("OK") | a = int(input())
b = input().split(" ")
if int(b[0]) % a == 0:
print("OK")
elif int(b[1]) % a == 0:
print("OK")
elif int(b[0]) // a * a + a > int(b[1]):
print("NG")
else:
print("OK") | [["+", 75, 665, 15, 666, 0, 657, 31, 657, 17, 48], ["+", 75, 665, 15, 666, 0, 657, 31, 657, 12, 22]] | 5 | 93 |
k = int(input())
a, b = map(int, input().split())
c = a // k * k
if a <= c <= b or a <= (c+k) <= b:
print('ok')
else:
print('NG')
| k = int(input())
a, b = map(int, input().split())
c = a // k * k
if a <= c <= b or a <= (c+k) <= b:
print('OK')
else:
print('NG')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 62 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.