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 |
|---|---|---|---|---|
#include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define INF 10000... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define INF 10000... | [["-", 0, 14, 8, 9, 0, 7, 10, 34, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 7, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 7, 0, 35]] | 1 | 144 |
#include <iostream>
int main(int argc, const char *argv[]) {
int K, A, B;
bool isOK = false;
std::cin >> K;
std::cin >> A >> B;
for (int i = A; A <= B; i++) {
if (i % K == 0) {
isOK = true;
break;
}
}
// insert code here...
if (isOK) {
std::cout << "OK";
} else {
std::co... | #include <iostream>
int main(int argc, const char *argv[]) {
int K, A, B;
bool isOK = false;
std::cin >> K;
std::cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
isOK = true;
break;
}
}
// insert code here...
if (isOK) {
std::cout << "OK";
} else {
std::co... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22]] | 1 | 104 |
K = int(input())
A, B = map(int, input().split())
a = A%K
if(a == 0):
print("OK")
elif (B-A)>(K-a):
print("OK")
else:
print("NG") | K = int(input())
A, B = map(int, input().split())
a = A%K
if(a == 0):
print("OK")
elif (B-A)>=(K-a):
print("OK")
else:
print("NG") | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 69 |
#!usr/bin/env python3
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS(): return [list(x) ... | #!usr/bin/env python3
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS(): return [list(x) ... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 300 |
#include <bits/stdc++.h>
#include <cstdlib>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int k, a, b, flg;
cin >> k >> a >> b;
flg = 0;
for (int i = 1; i <= (b - a) + 1; i++) {
if ((i + a - 1) % k == 0) {
flg = 1;
}
}
if (flg = 1) {
cout << "OK";
} else {
... | #include <bits/stdc++.h>
#include <cstdlib>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int k, a, b, flg;
cin >> k >> a >> b;
flg = 0;
for (int i = 1; i <= (b - a) + 1; i++) {
if ((i + a - 1) % k == 0) {
flg = 1;
}
}
if (flg == 1) {
cout << "OK";
} else {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 104 |
#include <bits/stdc++.h>
#define all(v) (v).begin(), (v).end()
#define pb push_back
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <class... | #include <bits/stdc++.h>
#define all(v) (v).begin(), (v).end()
#define pb push_back
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <class... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 242 |
K = int(input())
arr = list(map(int, input()))
a = arr[1] % K
b = arr[1] - arr[0]
if a > b:
print("OK")
else:
print("NG")
| K = int(input())
arr = list(map(int, input().split()))
a = arr[1] % K
b = arr[1] - arr[0]
if a <= b:
print("OK")
else:
print("NG")
| [["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) loop(i, 0, n)
#define all(c) c.begin(), c.end()
#define rall(c) c.rbegin(), c.rend()
#define vi vector<int>
#define vl vector<ll>
#define pll pair<ll, ll>
#define vpll vector<pll>
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) loop(i, 0, n)
#define all(c) c.begin(), c.end()
#define rall(c) c.rbegin(), c.rend()
#define vi vector<int>
#define vl vector<ll>
#define pll pair<ll, ll>
#define vpll vector<pll>
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 137 |
k = int(input())
a,b = map(int,input().split())
ans = "NG"
for i in range(a,b+1):
if i%7 == 0:
ans = "OK"
print(ans) | k = int(input())
a,b = map(int,input().split())
ans = "NG"
for i in range(a,b+1):
if i%k == 0:
ans = "OK"
print(ans) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 57 |
#include "bits/stdc++.h"
using namespace std;
int K, A, B;
int main() {
cin >> K;
cin >> A, B;
if (K * (B / K) >= A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include "bits/stdc++.h"
using namespace std;
int K, A, B;
int main() {
cin >> K;
cin >> A >> B;
if (K * (B / K) >= A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 64 |
#include <stdio.h>
char main() {
int a, b, k, i;
scanf("%d\n", &k);
scanf("%d %d", &a, &b);
for (i = a / k; i <= b / k; i++) {
if (i * k >= a && i * k <= b) {
printf("OK");
return 0;
}
}
return 0;
} | #include <stdio.h>
char main() {
int a, b, k, i;
scanf("%d\n", &k);
scanf("%d %d", &a, &b);
for (i = a / k; i <= b / k; i++) {
if (i * k >= a && i * k <= b) {
printf("OK");
return 0;
}
}
printf("NG");
return 0;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 89 |
k = int(input())
a, b = map(int, input().split())
for i in range(b):
if a <= k * i <= b:
print('OK')
exit()
print('NG') | k = int(input())
a, b = map(int, input().split())
for i in range(b+1):
if a <= k * i <= b:
print('OK')
exit()
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())
if A==B and A%K==0:
print("OK")
exit()
if int(A/K)<int(B/K):
print("OK")
else:
print("NG") | K = int(input())
A,B = map(int, input().split())
if A%K==0 or B%K==0:
print("OK")
exit()
if int(A/K)<int(B/K):
print("OK")
else:
print("NG") | [["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 109], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 73 |
# import math
# from collections import Counter
# N = int(input()) # 1行, 単数
# arg = list(map(int, input().split())) # 1行, 配列
# D = Counter(arg) # 出現数カウント
# print('Yes')
# print('No')
# print()
N = int(input()) # 1行, 単数
arg = list(map(int, input().split())) # 1行, 配列
A = arg[0]
B = arg[1]
flag = "NG"
if A == B:
if ... | # import math
# from collections import Counter
# N = int(input()) # 1行, 単数
# arg = list(map(int, input().split())) # 1行, 配列
# D = Counter(arg) # 出現数カウント
# print('Yes')
# print('No')
# print()
N = int(input()) # 1行, 単数
arg = list(map(int, input().split())) # 1行, 配列
A = arg[0]
B = arg[1]
flag = "NG"
if A == B:
if ... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 98 |
K = int(input())
A, B = map(int, input().split())
result = 'OK'
if (A%K != 0)&(B%K != 0):
A = A//K + 1
B = B//K
if B-A<=0:
result = 'NG'
print(result) | K = int(input())
A, B = map(int, input().split())
result = 'OK'
if (A%K != 0)&(B%K != 0):
A = A//K + 1
B = B//K
if B-A<0:
result = 'NG'
print(result) | [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 18]] | 5 | 74 |
K=int(input())
A,B=map(int,input().split())
if A%K==0 or B%K==0:
print("OK")
exit()
else:
a=A//K
if A*(a+1)<=B:
print("OK")
else:
print("NG")
| K=int(input())
A,B=map(int,input().split())
if A%K==0 or B%K==0:
print("OK")
exit()
else:
a=A//K
if K*(a+1)<=B:
print("OK")
else:
print("NG")
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22]] | 5 | 78 |
k =int(input())
a,b = map(int,input().split())
for i in range(a,b):
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):
#print(i)
if i%k==0:
print("OK")
#print(i)
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 | 57 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
string Answer = "NG";
for (int i = A; i <= B; i++) {
if (i % K == 0) {
string Answer = "OK";
break;
}
}
cout << Answer << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
string Answer = "NG";
for (int i = A; i <= B; i++) {
if (i % K == 0) {
Answer = "OK";
break;
}
}
cout << Answer << endl;
} | [["-", 8, 9, 0, 57, 64, 9, 0, 43, 39, 78]] | 1 | 79 |
import sys
k=int(input())
a,b=map(int, input().split())
if a==b:
area=[a,b]
else:
area=[int(i) for i in range(a,b)]
for i in area:
if i % k ==0:
print('OK')
sys.exit()
print('NG') | import sys
k=int(input())
a,b=map(int, input().split())
if a==b:
area=[a,b]
else:
area=[int(i) for i in range(a,b+1)]
for i in area:
if i % k ==0:
print('OK')
sys.exit()
print('NG') | [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 86 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, m, k;
signed main() {
scanf("%lld%lld%lld", &k, &n, &m);
if (m / k > n / k)
printf("OK");
else
printf("NG");
return 0;
} | #include <bits/stdc++.h>
#define int long long
using namespace std;
int n, m, k;
signed main() {
scanf("%lld%lld%lld", &k, &n, &m);
if (m / k > (n - 1) / k)
printf("OK");
else
printf("NG");
return 0;
} | [["+", 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 | 66 |
k = int(input())
a, b = map(int, input().split())
i = 1
while k*i <= a:
i += 1
if k*i <= b:
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
i = 1
while k*i < a:
i += 1
if k*i <= b:
print("OK")
else:
print("NG") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int ans = 0;
for (int i = 0; A + i <= B; i++) {
if (A + i % K == 0) {
ans++;
}
}
if (ans > 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int ans = 0;
for (int i = 0; A + i <= B; i++) {
if ((A + i) % K == 0) {
ans++;
}
}
if (ans > 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 92 |
k = int(input())
a,b = map(int,input().split())
if b%k==0:
print("OK")
elif (b//k)*k >=a:
print("OK")
else:
print("NO") | k = int(input())
a,b = map(int,input().split())
if b%k==0:
print("OK")
elif (b//k)*k >=a:
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 |
#pragma GCC optimize("Ofast", "unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
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" << endl;
return 0;
}
}
cout <... | #pragma GCC optimize("Ofast", "unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
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" << 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 | 86 |
K = int(input())
A, B = map(int, input().split())
if A//K - (B-1)//K > 0:
print("OK")
else:
print("NG")
| K = int(input())
A, B = map(int, input().split())
if B//K - (A-1)//K > 0:
print("OK")
else:
print("NG")
| [["-", 0, 57, 15, 666, 0, 657, 31, 657, 31, 22], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 31, 22], ["-", 0, 657, 12, 657, 31, 23, 0, 657, 31, 22], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 31, 22]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i;
cin >> a >> b >> c;
for (i = 1; i <= 1000; i++) {
d = i * a;
if (d > b && d < c) {
cout << "OK";
return 0;
}
if (d > c) {
cout << "NG";
return 0;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i;
cin >> a >> b >> c;
for (i = 1; i <= 1000; i++) {
d = i * a;
if (d >= b && d <= c) {
cout << "OK";
return 0;
}
if (d > c) {
cout << "NG";
return 0;
}
}
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int k = 0, a = 0, b = 0, c = 0;
cin >> k >> a >> b;
for (int i = a; i < b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k = 0, a = 0, b = 0, c = 0;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 84 |
#include <stdio.h>
int main() {
int A, B, K;
int w;
scanf("%d", &K);
scanf("%d %d", &A, &B);
w = A / K;
w = A * K;
if (w == A)
printf("OK");
else {
w += K;
if (w <= B)
printf("OK");
else
printf("NG");
}
return 0;
} | #include <stdio.h>
int main() {
int A, B, K;
int w;
scanf("%d", &K);
scanf("%d %d", &A, &B);
w = A / K;
w = w * K;
if (w == A)
printf("OK");
else {
w += K;
if (w <= B)
printf("OK");
else
printf("NG");
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 97 |
import sys
k=int(input())
a,b=map(int,input().split())
for i in range(a+1,b+1):
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, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 66 |
K = int(input())
A,B = list(map(int, input().split()))
ans = "NG"
for i in range(A,B+1):
if i%7==0:
ans="OK"
break
print(ans) | K = int(input())
A,B = list(map(int, input().split()))
ans = "NG"
for i in range(A,B+1):
if i%K==0:
ans="OK"
break
print(ans) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 61 |
#include <bits/stdc++.h>
#define vi vector<int>
#define vl vector<long int>
#define vll vector<long long int>
#define pi pair<int, int>
#define ump unordered_map
#define us unordered_set
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
// b=a+(n-1)*k;
int flag = 1;
for (int i =... | #include <bits/stdc++.h>
#define vi vector<int>
#define vl vector<long int>
#define vll vector<long long int>
#define pi pair<int, int>
#define ump unordered_map
#define us unordered_set
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
// b=a+(n-1)*k;
int flag = 0;
for (int i =... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 105 |
K=gets.to_i
A,B = gets.split.map(&:to_i)
(A...B).each do |n|
if n % K == 0
puts :OK
exit
else
end
end
puts :NG
| K=gets.to_i
A,B = gets.split.map(&:to_i)
A.upto(B) do |n|
if n % K == 0
puts :OK
exit
else
end
end
puts :NG
| [["-", 36, 36, 0, 493, 0, 652, 486, 739, 0, 24], ["-", 0, 493, 0, 652, 486, 739, 0, 475, 17, 389], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 17, 131], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 24], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 17, 131], ["-", 36, 36, 36, 36, 0, 493, 0, ... | 4 | 43 |
#include <iostream>
using namespace std;
void A() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A / K; i < B / K; ++i) {
if (A <= K * i && K * i <= B) {
cout << "OK" << endl;
return;
}
}
cout << "NG" << endl;
}
int main() {
A();
return 0;
}
| #include <iostream>
using namespace std;
void A() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A / K; i < B / K + 1; ++i) {
if (A <= K * i && K * i <= B) {
cout << "OK" << endl;
return;
}
}
cout << "NG" << endl;
}
int main() {
A();
return 0;
}
| [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using ll = int_fast64_t;
using pll = pair<ll, ll>;
constexpr ll INF = 1LL << 60;
constexpr ll MOD = 1e9 + 7;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using ll = int_fast64_t;
using pll = pair<ll, ll>;
constexpr ll INF = 1LL << 60;
constexpr ll MOD = 1e9 + 7;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template ... | [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 519 |
<?php
# 整数の入力
fscanf(STDIN, "%d", $a);
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d", $b, $c);
$e = $c % $a;
$f = $c - $e;
if($f > $b)echo "OK";else echo "NG";
| <?php
# 整数の入力
fscanf(STDIN, "%d", $a);
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d", $b, $c);
$e = $c % $a;
$f = $c - $e;
if($f >= $b)echo "OK";else echo "NG";
| [["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 20]] | 6 | 67 |
k = int(input())
a,b = map(int,input().split())
flag = False
for i in range(b+1):
if k * i >= a and k * i <= b:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| k = int(input())
a,b = map(int,input().split())
flag = False
for i in range(b+1):
if k * i >= a and k * i <= b:
flag = True
if flag == True:
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 | 72 |
k = int(input())
l = list(map(int, input().split()))
for i in range(l[0], l[1]+2):
if i == l[1]+1:
print('NG')
if i % k == 0:
print('OK')
break | k = int(input())
l = list(map(int, input().split()))
for i in range(l[0], l[1]+2):
if i == l[1]+1:
print('NG')
break
if i % k == 0:
print('OK')
break | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i < b + 1; i++) {
if (i % k == 0) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i < b + 1; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 74 |
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
int K;
int A;
int B;
int a;
int b;
cin >> K >> A >> B;
b = B / K;
a = A / K;
if (b != a) {
cout << "ok";
} else {
if (B == b * K || A == a * K) {
cout << "OK";
} else {
cout << "NG";
... | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
int K;
int A;
int B;
int a;
int b;
cin >> K >> A >> B;
b = B / K;
a = A / K;
if (b != a) {
cout << "OK";
} else {
if (B == b * K || A == a * K) {
cout << "OK";
} else {
cout << "NG";
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int n = 0;
cin >> n;
int s, l;
cin >> s >> l;
bool is_found = false;
for (int i = s; i <= l; i++) {
if (i % 7 == 0) {
is_found = true;
break;
}
}
cout << (is_found ? "OK" : "NG");
return 0;
} |
#include <iostream>
using namespace std;
int main() {
int n = 0;
cin >> n;
int s, l;
cin >> s >> l;
bool is_found = false;
for (int i = s; i <= l; i++) {
if (i % n == 0) {
is_found = true;
break;
}
}
cout << (is_found ? "OK" : "NG");
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 86 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define mii map<int, int>
#define mll map<ll, ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vd vector<double>
#define vll vector<ll>
#define fi first
#define se seco... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define mii map<int, int>
#define mll map<ll, ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vd vector<double>
#define vll vector<ll>
#define fi first
#define se seco... | [["+", 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 | 239 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
int k, a, b;
cin >> k >> a >> b;
if (b / k > a / k || a % k == 0 || b % k == 0)
cout << "Yes" << endl;
else
cout << "No\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
int k, a, b;
cin >> k >> a >> b;
if (b / k > a / k || a % k == 0 || b % k == 0)
cout << "OK" << endl;
else
cout << "NG\n";
return 0;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 74 |
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
flag=0
for i in range(a,b+1):
print(i)
if i%k==0:
flag=1
break
if flag==0:
print('NG')
else:
print('OK') | s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
flag=0
for i in range(a,b+1):
if i%k==0:
flag=1
break
if flag==0:
print('NG')
else:
print('OK')
| [["-", 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 | 94 |
k = int(input())
a,b = map(int,input().split())
total = k
while True:
if a<=total<=b:
print('OK')
break
elif total<a:
total += k
elif total>b:
print('NO')
break | k = int(input())
a,b = map(int,input().split())
total = k
while True:
if a<=total<=b:
print('OK')
break
elif total<a:
total += k
elif total>b:
print('NG')
break | [["-", 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;
cin >> A >> B;
int x = A;
bool ans = false;
for (int i = 0; i < A - B + 1; i++) {
if (x % K == 0) {
ans = true;
}
x++;
}
if (ans) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
/... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int x = A;
bool ans = false;
for (int i = 0; i < B - A + 1; i++) {
if (x % K == 0) {
ans = true;
}
x++;
}
if (ans) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
/... | [["-", 0, 7, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 12, 22]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 655 |
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int tmp = (a / k) * k;
while (tmp <= b) {
if (a <= tmp && tmp <= b) {
cout << "Yes" << endl;
return 0;
}
tmp += k;
}
cout << "No" << endl;
return 0;
}
| #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int tmp = (a / k) * k;
while (tmp <= b) {
if (a <= tmp && tmp <= b) {
cout << "OK" << endl;
return 0;
}
tmp += k;
}
cout << "NG" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 97 |
#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]] | 1 | 272 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % 7 == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, n, m;
cin >> a >> n >> m;
for (int i = n; i <= m + 1; i++) {
if (i % a == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, n, m;
cin >> a >> n >> m;
for (int i = n; i <= m; i++) {
if (i % a == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 74 |
def main():
k = int(input())
a, b = map(int,input().split())
c = False
for i in range(a, b+1):
print(i)
if i % k == 0:
print("OK")
c = True
break
if c == False:
print("NG")
main() | def main():
k = int(input())
a, b = map(int,input().split())
c = False
for i in range(a, b+1):
if i % k == 0:
print("OK")
c = True
break
if c == False:
print("NG")
main() | [["-", 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 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i < b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 96 |
K = int(input())
A,B = map(int,input().split())
c = 0
if (B-A) >= K:
print("OK")
else:
for i in range(K):
if ( A + i ) < B:
if ( A + i ) % K == 0:
print("OK")
c = 1
break
if c == 0:
print("NG")
| K = int(input())
A,B = map(int,input().split())
c = 0
if (B-A) >= K:
print("OK")
c = 1
else:
for i in range(K):
if ( A + i ) <= B:
if ( A + i ) % K == 0:
print("OK")
c = 1
break
if c == 0:
print("NG") | [["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 93 |
k=int(input())
n,m=map(int,input().split())
li=list(range(n,m+1))
for i in li:
if i%k==0:
print("OK")
break
else:
print("No") | k=int(input())
n,m=map(int,input().split())
li=list(range(n,m+1))
for i in li:
if i%k==0:
print("OK")
break
else:
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(void) {
int A, B, K;
bool check = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
break;
check = 1;
}
}
if (check == 1)
cout << "OK";
if (check == 0)
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int A, B, K;
bool check = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
check = 1;
break;
}
}
if (check == 1)
cout << "OK";
if (check == 0)
cout << "NG";
} | [["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 89 |
// Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll k, a, b;
cin >> k >> a >> b;
for (ll i = a; i <= b; i++)
if (i % k == 0)
return cout << "OK", 0;
cout << "NO";
} | // Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll k, a, b;
cin >> k >> a >> b;
for (ll i = a; i <= b; i++)
if (i % k == 0)
return cout << "OK", 0;
cout << "NG";
} | [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <bits/stdc++.h>
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
#define sort_1(v) sort(v.begin(), v.end())
#define sort_2(v) sort(v.begin(), v.end(), greater<ll>())
typedef long long ll;
typedef long double la;
using namespace std;
int main() {
int k, a... | #include <bits/stdc++.h>
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
#define sort_1(v) sort(v.begin(), v.end())
#define sort_2(v) sort(v.begin(), v.end(), greater<ll>())
typedef long long ll;
typedef long double la;
using namespace std;
int main() {
int k, a... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 111 |
k = int(input())
a, b = list(map(int, input().split()))
flg = "NG"
for i in range(a, b + 1):
if i >= k and i % a == 0:
flg = "OK"
break
print(flg) | k = int(input())
a, b = list(map(int, input().split()))
flg = "NG"
for i in range(a, b + 1):
if i >= k and i % k == 0:
flg = "OK"
break
print(flg) | [["-", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]] | 5 | 65 |
K = int(input())
A, B = map(int, input().split())
list_ = [(i+1) for i in range(B-A+1)]
count = 0
for i in range(len(list_)):
if list_[i] % K == 0:
count += 1
break
if count > 0:
print('OK')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
list_ = [(i+A) for i in range(B-A+1)]
count = 0
for i in range(len(list_)):
if list_[i] % K == 0:
count += 1
break
if count > 0:
print('OK')
else:
print('NG') | [["-", 0, 662, 12, 658, 8, 23, 0, 657, 12, 612], ["+", 0, 662, 12, 658, 8, 23, 0, 657, 12, 22]] | 5 | 91 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (k == 1) {
cout << "OK"
<< "\n";
return 0;
}
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK"
<< "\n";
return 0;
}
}
cout << "NO"
<< "\n";
return... | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (k == 1) {
cout << "OK"
<< "\n";
return 0;
}
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK"
<< "\n";
return 0;
}
}
cout << "NG"
<< "\n";
return... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define imx INT_MAX
#define imn INT_MIN
#define llmx LLONG_MAX
#define llmn LLONG_MIN
#define fi first
#define se second
#define pb push_back
#define f_s(a) sort(a.begin(), a.end())
#define b_s(a) sort(a.rbegin(), a.rend())
#... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define imx INT_MAX
#define imn INT_MIN
#define llmx LLONG_MAX
#define llmn LLONG_MIN
#define fi first
#define se second
#define pb push_back
#define f_s(a) sort(a.begin(), a.end())
#define b_s(a) sort(a.rbegin(), a.rend())
#... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 289 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, q = 0;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "YES";
i = b + 1;
q = 1;
}
}
if (q == 0)
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, q = 0;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
i = b + 1;
q = 1;
}
}
if (q == 0)
cout << "NG";
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 87 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, i, ans = 0;
cin >> k >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
ans = 1;
break;
}
}
if (ans == 0)
cout << "GK" << endl;
else
cout << "OK" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, i, ans = 0;
cin >> k;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
ans = 1;
break;
}
}
if (ans == 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31,... | 1 | 90 |
#include <bits/stdc++.h>
#define ll long long int
#define pll pair<ll, ll>
#define pii pair<int, int>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int k, a, b;
cin >> k >> a >> b;
int x = (a / k) * k;
bool bo = 0;
if (x >= a && x <= b) {
bo = 1... | #include <bits/stdc++.h>
#define ll long long int
#define pll pair<ll, ll>
#define pii pair<int, int>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int k, a, b;
cin >> k >> a >> b;
int x = (a / k) * k;
bool bo = 0;
if (x >= a && x <= b) {
bo = 1... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 135 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <time.h>
#include <tuple>
#include <... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <time.h>
#include <tuple>
#include <... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 384 |
//
// main.cpp
// ABC165
//
// Created by 安藤光希 on 2020/05/02.
// Copyright © 2020 安藤光希. All rights reserved.
//
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int K, A, B;
... | //
// main.cpp
// ABC165
//
// Created by 安藤光希 on 2020/05/02.
// Copyright © 2020 安藤光希. All rights reserved.
//
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int K, A, B;
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 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]] | 1 | 107 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << ((a - 1) / k < b / k) ? "OK\n" : "NG\n";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << (((a - 1) / k < b / k) ? "OK\n" : "NG\n");
return 0;
}
| [["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]] | 1 | 56 |
k = int(input())
import math
a,b = map(int,input().split())
k = math.ceil(a//k)*k
print("OK" if a<=k and k<=b else "NG")
| k = int(input())
import math
a,b = map(int,input().split())
k = math.ceil(a/k)*k
print("OK" if a<=k and k<=b else "NG")
| [["-", 12, 657, 31, 652, 3, 4, 0, 657, 17, 676], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 17, 85]] | 5 | 56 |
def mapint_inp():
return map(int, input().split())
def intinp():
return int(input())
K = intinp()
A, B = mapint_inp()
ans = False
for i in (A, B):
if i%K == 0:
ans = True
if ans:
print("OK")
else:
print("NG") | def mapint_inp():
return map(int, input().split())
def intinp():
return int(input())
K = intinp()
A, B = mapint_inp()
ans = False
for i in range(A, B+1):
if i%K == 0:
ans = True
if ans:
print("OK")
else:
print("NG") | [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 81 |
K=int(input())
A, B=map(int, input().split())
if all(N%K!=0 for N in range(A, B)):
print("NG")
else:
print("OK") | K=int(input())
A, B=map(int, input().split())
if all(N%K!=0 for N in range(A, B+1)):
print("NG")
else:
print("OK") | [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 57 |
#include <bits/stdc++.h>
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namesp... | #include <bits/stdc++.h>
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namesp... | [["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 77 |
k = int(input())
a, b = map(int, input().split())
ans = 'NO'
if a % k == 0 or b % k == 0:
ans = 'OK'
elif a // k != b // k:
ans = 'OK'
print(ans) | k = int(input())
a, b = map(int, input().split())
ans = 'NG'
if a % k == 0 or b % k == 0:
ans = 'OK'
elif a // k != b // k:
ans = 'OK'
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 65 |
k = int(input())
a,b = map(int,input().split())
ans = "NG"
for i in range(a,b+1):
if(i%k==0):
ans = "YES"
break
print(ans) | k = int(input())
a,b = map(int,input().split())
ans = "NG"
for i in range(a,b+1):
if(i%k==0):
ans = "OK"
break
print(ans)
| [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 60 |
#include <iostream>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
const int INF = 1001001001;
const int MOD = 1000000007;
int main() {
int k, a, b;
cin >> k >> a >> b;
int c = b / k;
if (c * k > a) {
cout << "OK" << endl;
} else {
co... | #include <iostream>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
const int INF = 1001001001;
const int MOD = 1000000007;
int main() {
int k, a, b;
cin >> k >> a >> b;
int c = b / k;
if (c * k >= a) {
cout << "OK" << endl;
} else {
c... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 92 |
k = int(input())
a,b = map(int,input().split())
if a%k == 0:
print("OK")
exit()
ans = a-a%k + k
if ans <= b :
print("OK")
else:
print("NO")
| k = int(input())
a,b = map(int,input().split())
if a%k == 0:
print("OK")
exit()
ans = a-a%k + k
if ans <= 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 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k;
int a, b;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
int a, b;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = 1; i <= 10000; i++) {
if (a <= k * i && k * i <= b) {
cout << "OK" << endl;
} else if (i == 10000) {
cout << "NG" << endl;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = 1; i <= 10000; i++) {
if (a <= k * i && k * i <= b) {
cout << "OK" << endl;
break;
} else if (i == 10000) {
cout << "NG" << endl;
}
}
}
| [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 84 |
K = int(input())
A, B = map(int, input().split())
sa = B - A
if sa == 0:
if B % K == 0:
print("OK")
exit()
for i in range (A, B):
if (i + 1) % K == 0:
print("OK")
exit()
print("NG") | K = int(input())
A, B = map(int, input().split())
sa = B - A
if sa == 0:
if B % K == 0:
print("OK")
exit()
for i in range (A - 1, B):
if (i + 1) % K == 0:
print("OK")
exit()
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 86 |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt(), a = sc.nextInt(), b = sc.nextInt();
boolean flg = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flg = true;
break;
}
}
if (... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt(), a = sc.nextInt(), b = sc.nextInt();
boolean flg = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flg = true;
break;
}
}
if (... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 157 |
#include <bits/stdc++.h>
#define rep(i, z, n) for (int i = z; i <= n; i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
rep(i, A, B) {
if (i % K == 0) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No"... | #include <bits/stdc++.h>
#define rep(i, z, n) for (int i = z; i <= n; i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
rep(i, A, B) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
k = int(input())
a, b = [int(x) for x in input().split()]
c = a // k
c += 0 if c*k == a else 1
d = c * k
print(d)
if a <= d <= b:
print('OK')
else:
print('NG') | k = int(input())
a, b = [int(x) for x in input().split()]
c = a // k
c += 0 if c*k == a else 1
d = c * k
if a <= d <= b:
print('OK')
else:
print('NG')
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 74 |
#include <bits/stdc++.h>
#include <cmath>
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define fo(i, n) for (ll i = 0; i < n; i++)
#define all(x) (x).begin(), (x).end()
#define unq(vec) \
sort(all(vec)); ... | #include <bits/stdc++.h>
#include <cmath>
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define fo(i, n) for (ll i = 0; i < n; i++)
#define all(x) (x).begin(), (x).end()
#define unq(vec) \
sort(all(vec)); ... | [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 127 |
#include <algorithm>
#include <functional>
#include <iostream>
#include <unordered_map>
using namespace std;
int mod_num_counter[2030];
int main() {
// fill(mod_num_counter,mod_num_counter+2030,0);
int k, a, b;
cin >> k, a, b;
bool ok = false;
for (int i = 1; i <= 1000; i++) {
int t = k * i;
if ... | #include <algorithm>
#include <functional>
#include <iostream>
#include <unordered_map>
using namespace std;
int mod_num_counter[2030];
int main() {
// fill(mod_num_counter,mod_num_counter+2030,0);
int k, a, b;
cin >> k >> a >> b;
bool ok = false;
for (int i = 1; i <= 1000; i++) {
int t = k * i;
... | [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 114 |
k=int(input())
a,b=map(int,input().split())
if b//k-a//k>=1:
print('OK')
elif a==b and a%k==0:
print('OK')
else:
print('NG') | k=int(input())
a,b=map(int,input().split())
if b//k-a//k>=1:
print('OK')
elif a%k==0 or b%k==0:
print('OK')
else:
print('NG') | [["+", 75, 665, 15, 679, 31, 666, 0, 657, 17, 109], ["+", 75, 665, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354], ["-", 0, 656, 0, 57, 75, 665, 15, 679, 17, 355], ["-", 75, 665, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
int count = 0;
for (int x = A; x < B; x++) {
if (x % K == 0) {
count++;
}
}
if (count != 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
int count = 0;
for (int x = A; x <= B; x++) {
if (x % K == 0) {
count++;
}
}
if (count != 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 | 89 |
#include <bits/stdc++.h>
#define ls rt << 1
#define rs rt << 1 | 1
#define lson rt << 1, l, M
#define rson rt << 1 | 1, M + 1, r
#define PI acos(-1)
#define MM int M = (l + r) >> 1;
#define fu(i, r, t) for (int i = r; i <= t; i++)
#define fd(i, r, t) for (int i = r; i >= t; i--)
#define fh(i, be, e) for (int i = head[b... | #include <bits/stdc++.h>
#define ls rt << 1
#define rs rt << 1 | 1
#define lson rt << 1, l, M
#define rson rt << 1 | 1, M + 1, r
#define PI acos(-1)
#define MM int M = (l + r) >> 1;
#define fu(i, r, t) for (int i = r; i <= t; i++)
#define fd(i, r, t) for (int i = r; i >= t; i--)
#define fh(i, be, e) for (int i = head[b... | [["-", 0, 41, 15, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, 13]] | 1 | 402 |
#include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
cin.tie(0);
ios::sync_with_stdio(false);
int k, a, b;
cin >> k >> a >> b;
bool flag = false;
fo... | #include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
cin.tie(0);
ios::sync_with_stdio(false);
int k, a, b;
cin >> k >> a >> b;
bool flag = false;
fo... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 127 |
#include <iostream>
using namespace std;
int main() {
int a, b, k, f = 0;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
f = 1;
break;
}
}
if (f == 0) {
cout << "OK\n";
} else {
cout << "OK\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, k, f = 0;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
f = 1;
break;
}
}
if (f == 0) {
cout << "NG\n";
} else {
cout << "OK\n";
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 93 |
//#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
//#pragma GCC target("avx,avx2")
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//# include <x86intrin.h>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using... | //#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
//#pragma GCC target("avx,avx2")
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//# include <x86intrin.h>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using... | [["+", 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 | 375 |
def solve(a,b,k):
for x in range(a,b+1):
if a%k==0:
return "OK"
return "NG"
k=int(input())
a,b = map(int,input().split())
print(solve(a,b,k)) | def solve(a,b,k):
for x in range(a,b+1):
if x%k==0:
return "OK"
return "NG"
k=int(input())
a,b = map(int,input().split())
print(solve(a,b,k))
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22]] | 5 | 72 |
k = int(input())
a, b = list(map(int, input().split()))
for i in range(1000):
if k*i > a and k*i<b:
print("OK")
exit()
if k*i > b:
break
print("NG") | k = int(input())
a, b = list(map(int, input().split()))
for i in range(1001):
if k*i >= a and k*i<=b:
print("OK")
exit()
if k*i > b:
break
print("NG") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 20], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sz(x) ((int)(x).size())
#define in(x) \
int x; \
cin >> x
#define inn(x, y) ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sz(x) ((int)(x).size())
#define in(x) \
int x; \
cin >> x
#define inn(x, y) ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 198 |
def main():
K = int(input())
A,B = [int(x) for x in input().split()]
for a in range(A,B+1):
print(a)
if a % K == 0:
print('OK')
return
print('NG')
if __name__ == '__main__':
main()
| def main():
K = int(input())
A,B = [int(x) for x in input().split()]
for a in range(A,B+1):
if a % K == 0:
print('OK')
return
print('NG')
if __name__ == '__main__':
main()
| [["-", 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 | 79 |
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
PrintWriter printWriter = new PrintWriter(System.out);
int k = scanner.nextInt();
int a = scanner.nextInt();
int b = scanner.nextInt();
... | import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
PrintWriter printWriter = new PrintWriter(System.out);
int k = scanner.nextInt();
int a = scanner.nextInt();
int b = scanner.nextInt();
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 27, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 27, 0, 22]] | 3 | 140 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (k == 1) {
printf("OK");
return 0;
}
for (int i = a; i < b; ++i) {
if (i % k == 0) {
printf("OK");
return 0;
}
}
printf("NG");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (k == 1) {
printf("OK");
return 0;
}
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
printf("OK");
return 0;
}
}
printf("NG");
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 93 |
N = int(input())
hani = input().split(" ")
a = "NG"
for i in range(int(hani[0]), int(hani[1])):
if i % N == 0:
a = "OK"
break
print(a) | N = int(input())
hani = input().split(" ")
a = "NG"
for i in range(int(hani[0]), int(hani[1]) + 1):
if i % N == 0:
a = "OK"
break
print(a) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 64 |
k = int(input())
a, b = map(int, input().split())
for i in range(1, 1001):
if a <= i <= b:
print("OK")
break
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
for i in range(1, 1001):
if a <= (i * k) <= b:
print("OK")
break
else:
print("NG") | [["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["+", 0, 57, 15, 666, 0, 23, 0, 657, 17, 48], ["+", 0, 57, 15, 666, 0, 23, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 25]] | 5 | 56 |
import math
def I():
return input()
def II():
return int(input())
def MII():
return map(int, input().split())
def LMII():
return list(map(int, input().split()))
n = II()
a, b = MII()
for i in (a, b+1):
if i % n == 0:
print("OK")
exit()
print("NG") | import math
def I():
return input()
def II():
return int(input())
def MII():
return map(int, input().split())
def LMII():
return list(map(int, input().split()))
n = II()
a, b = MII()
for i in range(a, b+1):
if i % n == 0:
print("OK")
exit()
print("NG")
| [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22]] | 5 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, t;
cin >> k >> a >> b;
for (t = a; t <= b; t++) {
if (t % k == 0)
printf("OK");
}
if (t > b)
printf("NG");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, t;
cin >> k >> a >> b;
for (t = a; t <= b; t++) {
if (t % k == 0) {
printf("OK");
break;
}
}
if (t > b)
printf("NG");
} | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 72 |
k = int(input())
a,b = list(map(int,input.split()))
res = 0
for i in range(a,b+1):
if(i%k==0):
res=1
break
if(res==1):
print("OK")
else:
print("NG") | k = int(input())
a,b = list(map(int,input().split()))
res = 0
for i in range(a,b+1):
if(i%k==0):
res=1
break
if(res==1):
print("OK")
else:
print("NG") | [["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 74 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.