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 <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (k <= (b - a))
cout << "OK";
else
cout << "NG";
}
| #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a <= (b / k) * k)
cout << "OK";
else
cout << "NG";
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 33], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 4... | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
int q[N];
#define f(i, a, b) for (int i = a; i < b; i++)
#define read(x) scanf("%d", &x)
int main() {
int k, a, b;
scanf("%d%d%d", &k, &a, &b);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK");
return 0;
} else ... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
int q[N];
#define f(i, a, b) for (int i = a; i < b; i++)
#define read(x) scanf("%d", &x)
int main() {
int k, a, b;
scanf("%d%d%d", &k, &a, &b);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK");
return 0;
} else ... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 118 |
K = int(input())
A, B = map(int, input().split())
if A%K == 0:
print("OK")
else:
a = (A + K)//K
if B >= a:
print("OK")
else:
print("NG") | K = int(input())
A, B = map(int, input().split())
if A%K == 0:
print("OK")
else:
a = (A + K) - (A%K)
if B >= a:
print("OK")
else:
print("NG") | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 67 |
#include <bits/stdc++.h>
using namespace std;
using lnt = long long;
using Real = long double;
#define ALL(obj) (obj).begin(), (obj).end()
#define RALL(obj) (obj).rbegin(), (obj).rend()
#define REP(i, n) for (lnt i = 0; i < (n); ++i)
#define RANGE(i, a, b) for (lnt i = (a); i < (b); ++i)
#define RREP(i, n) for (lnt i... | #include <bits/stdc++.h>
using namespace std;
using lnt = long long;
using Real = long double;
#define ALL(obj) (obj).begin(), (obj).end()
#define RALL(obj) (obj).rbegin(), (obj).rend()
#define REP(i, n) for (lnt i = 0; i < (n); ++i)
#define RANGE(i, a, b) for (lnt i = (a); i < (b); ++i)
#define RREP(i, n) for (lnt i... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 506 |
K=int(input())
A,B=map(int,input().split())
a=int(B//K)
if B%K==0:
print("OK")
elif (a-1)*K>=A:
print("OK")
else:
print("NG") | K=int(input())
A,B=map(int,input().split())
a=int(B//K)
if B%K==0:
print("OK")
elif a*K>=A:
print("OK")
else:
print("NG") | [["-", 75, 665, 15, 666, 0, 657, 31, 23, 0, 24], ["-", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["-", 15, 666, 0, 657, 31, 23, 0, 657, 12, 612], ["-", 75, 665, 15, 666, 0, 657, 31, 23, 0, 25]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
string ans;
for (int i = A; i < B + 1; i++) {
if (i % K == 0) {
ans = "OK";
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
string ans = "NG";
for (int i = A; i < B + 1; i++) {
if (i % K == 0) {
ans = "OK";
}
}
cout << ans << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 62], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 70 |
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
k = ii()
a,b = iim()
flag = False
for i in range(a,b+1):
if i%k == 0:
flag = True
break
pr... | def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
k = ii()
a,b = iim()
flag = False
for i in range(a,b+1):
if i%k == 0:
flag = True
break
pr... | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 140 |
k = int(input())
a, b = [int(i) for i in input().split()]
i = k
while(i < a):
#print(i)
i += k
#print(i)
if k <= b:
print('OK')
else:
print('NG') | k = int(input())
a, b = [int(i) for i in input().split()]
i = k
while(i < a):
#print(i)
i += k
#print(i)
if i <= b:
print('OK')
else:
print('NG') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 62 |
#include <stdio.h>
int main(void) {
int k, a, b, i, c;
c = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for (i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK\n");
c == 1;
break;
}
}
if (c == 0) {
printf("NG\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int k, a, b, i, c;
c = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for (i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK\n");
c = 1;
break;
}
}
if (c == 0) {
printf("NG\n");
}
return 0;
}
| [["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32]] | 0 | 105 |
k = input()
k = int(k)
x = input().split()
a = int(x[0])
b = int(x[1])
if(k==1):
print("OK")
exit()
if(a==b):
if(a%k==0):
print("OK")
exit()
for i in range(a,b):
if(i%k == 0):
print("OK")
exit()
print("NG") | k = input()
k = int(k)
x = input().split()
a = int(x[0])
b = int(x[1])
if(k==1):
print("OK")
exit()
if(a==b):
if(a%k==0):
print("OK")
exit()
for i in range(a,b+1):
if(i%k == 0):
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 | 113 |
K = int(input())
a,b = map(int,input().split())
if a//K < b//K:
print("OK")
elif a%K == 0 or b//K == 0:
print("OK")
else:
print("NG") | K = int(input())
a,b = map(int,input().split())
if a//K < b//K:
print("OK")
elif a%K == 0 or b%K == 0:
print("OK")
else:
print("NG") | [["-", 75, 665, 15, 679, 12, 666, 0, 657, 17, 676], ["+", 75, 665, 15, 679, 12, 666, 0, 657, 17, 109]] | 5 | 66 |
K = int(input())
A,B = map(int, input().split())
p = 0
for i in range(1000):
if A <= K*i and k*i <= B:
p = 1
break
if p == 1:
print("OK")
else:
print("NG")
| K = int(input())
A,B = map(int, input().split())
p = 0
for i in range(1000):
if A <= K*i and K*i <= B:
p = 1
break
if p == 1:
print("OK")
else:
print("NG")
| [["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 71 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
using Graph = vector<vector<int>>;
typedef long long ll;
typedef pair<int, int> P;
const int MOD = 1000000007;
const int... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
using Graph = vector<vector<int>>;
typedef long long ll;
typedef pair<int, int> P;
const int MOD = 1000000007;
const int... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 146 |
k = int(input())
a, b = map(int, input().split())
txt = 'No'
tmp = (a // k) * k
if a == tmp or a <= tmp + k <= b:
txt = 'Yes'
print(txt)
| k = int(input())
a, b = map(int, input().split())
txt = 'NG'
tmp = (a // k) * k
if a == tmp or a <= tmp + k <= b:
txt = 'OK'
print(txt)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 60 |
k = int(input())
a, b = map(int, input().split())
import sys
for i in range(a//k, b//k+1):
if i % k == 0:
print('OK')
sys.exit()
print('NG')
| k = int(input())
a, b = map(int, input().split())
import sys
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, 676], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 676], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 66 |
#include <cstdio>
int k, a, b;
int read() {
int x = 0, f = 1;
char s;
while ((s = getchar()) < '0' || s > '9')
if (s == '-')
f = -1;
while (s >= '0' && s <= '9') {
x = (x << 1) + (x << 3) + (s ^ 48);
s = getchar();
}
return x * f;
}
int main() {
k = read(), a = read(), b = read();
f... | #include <cstdio>
int k, a, b;
int read() {
int x = 0, f = 1;
char s;
while ((s = getchar()) < '0' || s > '9')
if (s == '-')
f = -1;
while (s >= '0' && s <= '9') {
x = (x << 1) + (x << 3) + (s ^ 48);
s = getchar();
}
return x * f;
}
int main() {
k = read(), a = read(), b = read();
f... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 174 |
#include <iostream>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
bool mark = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
mark = true;
break;
}
}
if (mark)
cout << "OK";
else
cout << "NO";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
bool mark = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
mark = true;
break;
}
}
if (mark)
cout << "OK";
else
cout << "NG";
return 0;
}
| [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i < n + 1; i++)
#define sort(A) sort(A.begin(), A.end())
#define reverse(A) reverse(A.begin(), A.end());
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i < n + 1; i++)
#define sort(A) sort(A.begin(), A.end())
#define reverse(A) reverse(A.begin(), A.end());
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 108 |
N = int(input())
A,B = map(int, input().split())
C = B // N
for i in range(C):
if i * N >= A and i * N <= B:
print("OK")
exit( )
break
print("NG") | N = int(input())
A,B = map(int, input().split())
C = B // N
#print(A,B,C)
#print(range(C))
for i in range(C+1):
if i * N >= A and i * N <= B:
print("OK")
exit( )
break
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(' ')))
flag = 'No'
for i in range(A,B+1):
if i % K == 0:
flag = 'Yes'
if flag == 'Yes':
print('Yes')
else:
print('No') | K = int(input())
A,B = list(map(int,input().split(' ')))
flag = 'No'
for i in range(A,B+1):
if i % K == 0:
flag = 'Yes'
if flag == 'Yes':
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 | 80 |
// url:
// problem name:
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return ... | // url:
// problem name:
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 221 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int k, a, b;
int x;
cin >> k;
cin >> a >> b;
x = b / k;
if (x * k > a) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k, a, b;
int x;
cin >> k;
cin >> a >> b;
x = b / k;
if (x * k >= a) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 71 |
#include <iostream>
#include <math.h>
#include <string>
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";
return 0;
} | #include <iostream>
#include <math.h>
#include <string>
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";
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int flag = 0;
for (int i = b; i < c; i++) {
if (i % a == 0) {
flag = 1;
break;
}
}
if (flag == 0) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int flag = 0;
for (int i = b; i < c + 1; i++) {
if (i % a == 0) {
flag = 1;
break;
}
}
if (flag == 0) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
} | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 91 |
#include <iostream>
using namespace std;
int main() {
int n, a, b, count = 0;
cin >> n >> a >> b;
for (int i = a; i < b; i++) {
if ((i % n) == 0) {
count++;
}
}
if (count > 0) {
cout << "OK";
} else {
cout << "NG";
}
return 0;
}
| /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 88 |
k = int(input())
a, b = map(int, input().split())
if b - a >= k - 1: print("OK")
else:
c = b % k
d = a % k
if d >= c or d == 0: print("OK")
else: print("NG") | k = int(input())
a, b = map(int, input().split())
if b - a >= k - 1: print("OK")
else:
c = b % k
d = a % k
if d > c or d == 0: print("OK")
else: print("NG") | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 47]] | 5 | 74 |
#include <stdio.h>
int main() {
int k, a, b;
int x;
int end = 0;
scanf("%d", &k);
scanf("5d %d", &a, &b);
for (int i = 0;; i++) {
x = k * i;
if (a <= x && x <= b) {
end = 1;
break;
}
if (x > b) {
end = 0;
break;
}
}
if (end == 1) {
printf("OK");
} el... | #include <stdio.h>
int main() {
int k, a, b;
int x;
int end = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for (int i = 0;; i++) {
x = k * i;
if (a <= x && x <= b) {
end = 1;
break;
}
if (x > b) {
end = 0;
break;
}
}
if (end == 1) {
printf("OK");
}
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 0 | 128 |
import sys
a = list(map(int,input().split()))
x = list(map(int,input().split()))
K = a[0]
B = x[1]
A = x[0]
for i in range(A-1,B):
if i%K == 0:
print("OK")
sys.exit()
print("NG") | import sys
a = list(map(int,input().split()))
x = list(map(int,input().split()))
K = a[0]
B = x[1]
A = x[0]
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, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 90 |
#a
M = int(input())
N,K=map(int,input().split())
p=0
for i in range(N,K):
if i%M==0:
p=1
break
if p==1:
print('OK')
else:
print('NG') | #a
M = int(input())
N,K=map(int,input().split())
p=0
for i in range(N,K+1):
if i%M==0:
p=1
break
if p==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 | 68 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep1(i, n) for (ll i = 1; i <= n; i++)
#define mp make_pair
#define F first
#define S second
#define pf pop_front
#define IOS \
ios... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep1(i, n) for (ll i = 1; i <= n; i++)
#define mp make_pair
#define F first
#define S second
#define pf pop_front
#define IOS \
ios... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]] | 1 | 154 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#d... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#d... | [["+", 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 | 388 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int a, b;
int k;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (k % i == 0) {
cout << "OK"
<< "\n";
return 0;
}
}
cout << "NG"
<< "... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int a, b;
int k;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK"
<< "\n";
return 0;
}
}
cout << "NG"
<< "... | [["-", 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, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int A;
int B;
cin >> K >> A >> B;
int count = 0;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
count = count + 1;
}
}
if (count > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int A;
int B;
cin >> K >> A >> B;
int count = 0;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
count = count + 1;
}
}
if (count > 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 93 |
k=int(input())
a,b=map(int,input().split())
if b//k-a//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")
| [["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 24], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 25]] | 5 | 49 |
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define lli long long int
#define rep(i, n) for (in i = 0; i < (int)n; i++)
int main() {
int K, A, B;
scanf("%d", &K);
scanf("%d %d", &A, &B);
for (int i = A; i <= B; i++) {
if (i % K == 0) {
pr... | #include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define lli long long int
#define rep(i, n) for (in i = 0; i < (int)n; i++)
int main() {
int K, A, B;
scanf("%d", &K);
scanf("%d %d", &A, &B);
for (int i = A; i <= B; i++) {
if (i % K == 0) {
pr... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool result = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
result = true;
}
}
if (result)
cout << "OK" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool result = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
result = true;
}
}
if (result)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
typedef unsigned long long u_ll;
typedef pair<int, int> pair_;
const int INF = 1001001001;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
int k;
int gcd(int a, int b) {
if (b =... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
typedef unsigned long long u_ll;
typedef pair<int, int> pair_;
const int INF = 1001001001;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
int k;
int gcd(int a, int b) {
if (b =... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 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 | 186 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int flag = 0;
for (int i = a; i <= b; i++) {
if (a % k == 0) {
flag = 1;
break;
}
}
if (flag == 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int flag = 0;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = 1;
break;
}
}
if (flag == 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 94 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, m, t, t1, t2, t3, t4;
cin >> t;
cin >> n >> m;
t1 = n / t;
t3 = n % t;
if (t3 == 0)... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, m, t, t1, t2, t3, t4;
cin >> t;
cin >> n >> m;
t1 = n / t;
t3 = n % t;
if (t3 == 0)... | [["-", 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, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <bits/stdc++.h>
#include <numeric>
#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define pr pair<int, int>
using namespace std;
const ll mod = 1000000007;
const ll INF = (ll)1000000007 * 1000000007;
#define DEBUG
#ifdef DEBUG
#define PRINT(A) std::cout << (#A) << ":" << (A) << ... | #include <bits/stdc++.h>
#include <numeric>
#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define pr pair<int, int>
using namespace std;
const ll mod = 1000000007;
const ll INF = (ll)1000000007 * 1000000007;
#define DEBUG
#ifdef DEBUG
#define PRINT(A) std::cout << (#A) << ":" << (A) << ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 214 |
#include <stdio.h>
int main() {
int k;
int a, b;
scanf("%d", &k);
scanf("%d %d", &a, &b);
if (a % k == 0) {
printf("OK");
} else if (((a / k) + 1) * k < b) {
printf("OK");
} else {
printf("NG");
}
return 0;
} | #include <stdio.h>
int main() {
int k;
int a, b;
scanf("%d", &k);
scanf("%d %d", &a, &b);
if (a % k == 0) {
printf("OK");
} else if (((a / k) + 1) * k <= b) {
printf("OK");
} else {
printf("NG");
}
return 0;
} | [["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 95 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18, MOD = 1e9 + 7;
const int INT_INF = 1e9, INT_MOD = 1e9 + 7;
#define rep(i, N) for (int i = 0; i < N; i++)
typedef pair<int, int> Pi;
typedef pair<double, double> P;
signed main() {
int k, a, b;
cin >> k >> a >> b;
for (int i =... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18, MOD = 1e9 + 7;
const int INT_INF = 1e9, INT_MOD = 1e9 + 7;
#define rep(i, N) for (int i = 0; i < N; i++)
typedef pair<int, int> Pi;
typedef pair<double, double> P;
signed main() {
int k, a, b;
cin >> k >> a >> b;
for (int i =... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 132], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]] | 1 | 130 |
K = int(input())
A, B = map(int,input().split())
flag = 0
while(K <= B):
if(K >= A):
print("OK")
flag = 1
break
else:
K += K
if(flag == 0):
print("NG")
| K = int(input())
A, B = map(int,input().split())
flag = 0
num = K
while(K <= B):
if(K >= A):
print("OK")
flag = 1
break
else:
K += num
if(flag == 0):
print("NG")
| [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22]] | 5 | 69 |
k = int(input())
a, b = map(int, input().split())
if a <= k * (b // k) <= b:
print("Yes")
else:
print("No") | k = int(input())
a, b = map(int, input().split())
if a <= k * (b // 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 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int t;
cin >> t;
int a, b;
int flag = 0;
cin >> a >> b;
for (int i = a; i < b; i++) {
if (i % t == 0) {
cout << "OK";
flag = 1;
break;
}
}
if (flag != 1) {
cout << "NG";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int t;
cin >> t;
int a, b;
int flag = 0;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % t == 0) {
cout << "OK";
flag = 1;
break;
}
}
if (flag != 1) {
cout << "NG";
}
}
| [["-", 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 rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll INF = 1e18;
const int MX = 2005;
int main() {
int k, a, b, A, B;
cin >> k >> a >> b;
A = a / k;
B = b / k;
if (A < B || A % k == 0 || B % k == 0) {
cout ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll INF = 1e18;
const int MX = 2005;
int main() {
int k, a, b, A, B;
cin >> k >> a >> b;
A = a / k;
B = b / k;
if (A < B || a % k == 0 || b % k == 0) {
cout ... | [["-", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 121 |
# -*- coding: utf-8 -*-
def main():
# 整数の入力
k = int(input())
# スペース区切りの整数の入力
n = [int(x) for x in input().split(' ')]
a = n[0]
b = n[1]
flag = False
if a == b:
if a % k == 0:
flag = True
for i in range(a, b):
if i % k == 0:
flag = True
if fl... | # -*- coding: utf-8 -*-
def main():
# 整数の入力
k = int(input())
# スペース区切りの整数の入力
n = [int(x) for x in input().split(' ')]
a = n[0]
b = n[1]
flag = False
if a == b:
if a % k == 0:
flag = True
for i in range(a, b + 1):
if i % k == 0:
flag = True
i... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 114 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
for (int i = b; i < c; i++) {
if (i % a == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a;
cin >> b >> c;
for (int i = b; i <= c; i++) {
if (i % a == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
} | [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 71 |
#include <algorithm>
#include <iostream>
typedef long long ll;
using namespace std;
bool solve() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k == 0)
return true;
return false;
}
int main() {
ios::sync_with_stdio(false);
if (solve())
cout << "YES";
else
cout <<... | #include <algorithm>
#include <iostream>
typedef long long ll;
using namespace std;
bool solve() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k == 0)
return true;
return false;
}
int main() {
ios::sync_with_stdio(false);
if (solve())
cout << "OK";
else
cout << ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 97 |
import java.util.*;
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();
boolean flag = true;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
System.out.println("OK");... | import java.util.*;
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();
boolean flag = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
System.out.println("OK")... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 146], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 147], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 147], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 146]] | 3 | 134 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int x = (b / k) * k;
if (x >= a && x <= b)
cout << "OK" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int x = (b / k) * k;
if (x >= a && x <= b)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 65 |
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")
exit()
print("NO")
| 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")
exit()
print("NG")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 62 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 || b % k == 0)
cout << "OK\n";
else {
a /= k;
b /= k;
if (a == b)
cout << "OK\n";
else
cout << "NG\n";
}
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 || b % k == 0)
cout << "OK\n";
else {
a /= k;
b /= k;
if (a == b)
cout << "NG\n";
else
cout << "OK\n";
}
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 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 | 80 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
using namespace std;
int main() {
int K, A, B;
int d;
bool f = false;
cin >> K;
cin >> A >> B;
for (int i = 1; i < 1000; i++) {
d = i * K;
if (A < d && d < B) {
f = true;
break;
}
}
if ... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
using namespace std;
int main() {
int K, A, B;
int d;
bool f = false;
cin >> K;
cin >> A >> B;
for (int i = 1; i < 1000; i++) {
d = i * K;
// cout << i << " " << d << endl;
if (A <= d && d <= B) {
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 146]] | 1 | 115 |
#include <cstdio>
using namespace std;
int a, b, k;
int main() {
scanf("%d%d%d", &k, &a, &b);
for (int i = a; i <= b; i++)
if (!i % k) {
printf("OK");
return 0;
}
printf("NG");
return 0;
} | #include <cstdio>
using namespace std;
int a, b, k;
int main() {
scanf("%d%d%d", &k, &a, &b);
for (int i = a; i <= b; i++)
if (i % k == 0) {
printf("OK");
return 0;
}
printf("NG");
return 0;
} | [["-", 8, 57, 15, 339, 51, 16, 31, 91, 17, 111], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 12, 13]] | 1 | 78 |
#include <algorithm>
#include <bits/stdc++.h> //復習必須
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using ll = long long;
using namespace std;
#define P pair<int, int>
int main() {
ll a, b, k;
cin >> k >> a >> b;
bool flag = fa... | #include <algorithm>
#include <bits/stdc++.h> //復習必須
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using ll = long long;
using namespace std;
#define P pair<int, int>
int main() {
ll a, b, k;
cin >> k >> a >> b;
bool flag = fa... | [["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 130 |
#include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<vvll> vvvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef vector<pair<ll, ll>> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); +... | #include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<vvll> vvvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef vector<pair<ll, ll>> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); +... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 181 |
K = int(input())
A, B = map(int, input().split())
flag = False
for i in range(1000):
if A <= i*K and i*K <= B:
flag = True
if flag:
print("Yes")
else:
print("No") | K = int(input())
A, B = map(int, input().split())
flag = False
for i in range(1000):
if A <= i*K and i*K <= B:
flag = True
if flag:
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 <iostream>
using namespace std;
int main() {
int n, a, b, i;
cin >> n >> a >> b;
for (i = a; i <= b; i++) {
if (i % n == 0) {
cout << "YES\n";
break;
}
}
if (i == b + 1)
cout << "NG\n";
} | #include <iostream>
using namespace std;
int main() {
int n, a, b, i;
cin >> n >> a >> b;
for (i = a; i <= b; i++) {
if (i % n == 0) {
cout << "OK\n";
break;
}
}
if (i == b + 1)
cout << "NG\n";
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 78 |
#include <algorithm>
#include <array>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <unordered_map>
#include <utility>
... | #include <algorithm>
#include <array>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <unordered_map>
#include <utility>
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 144 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a / k * k + k <= b || a % k == 0 || b % k == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
re... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a / k * k + k <= b || a % k == 0 || b % k == 0) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
ret... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k, flag = 0;
cin >> k;
cin >> a >> b;
int i;
for (i = a; i <= b; i++) {
if (i % k == 0)
flag = 1;
else
flag = 0;
}
if (flag == 1)
cout << "OK";
else
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k, flag = 0;
cin >> k;
cin >> a >> b;
int i;
for (i = a; i <= b; i++) {
if (i % k == 0) {
flag = 1;
break;
} else
flag = 0;
}
if (flag == 1)
cout << "OK";
else
cout << "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 | 87 |
K = int(input())
A, B = map(int, input().split())
frag = 'NG'
C = B - A
for i in range(C):
if (i + A) % K == 0:
frag = "OK"
print(frag) | K = int(input())
A, B = map(int, input().split())
frag = 'NG'
C = B - A
for i in range(C + 1):
if (i + A) % K == 0:
frag = "OK"
print(frag) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 62 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = s; i < (int)(n); i++)
#define co(x) cout << x << endl
#define SQvec(i, j) vector<vector<int>> data(i, vector<int>(j))
#define mod 1000000000 + 7
typedef long long int lint;
int main() {
int K, A, B;
cin >> K >> A >> B;
string ans = "... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = s; i < (int)(n); i++)
#define co(x) cout << x << endl
#define SQvec(i, j) vector<vector<int>> data(i, vector<int>(j))
#define mod 1000000000 + 7
typedef long long int lint;
int main() {
int K, A, B;
cin >> K >> A >> B;
string ans = "... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 100 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
bool ans = false;
for (int i = b; i <= c; i++) {
if (i % a == 0)
ans = true;
}
if (ans)
cout << "OK" << endl;
else
cout << "NO" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
bool ans = false;
for (int i = b; i <= c; i++) {
if (i % a == 0)
ans = true;
}
if (ans)
cout << "OK" << endl;
else
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 | 85 |
#include <bits/stdc++.h>
using namespace std;
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 << "NO" << endl;
} else {
cout << "OK" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
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;
}
return 0;
}
| [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 86 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <math.h>
#include <numeric>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
long long combi(long long n, long long k) {
if (n == k || k == 0)
... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <math.h>
#include <numeric>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
long long combi(long long n, long long k) {
if (n == k || k == 0)
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 188 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int i = 0;
while (k * i < b) {
if (k * i >= a && k * i <= b) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int i = 0;
while (k * i <= b) {
if (k * i >= a && k * i <= b) {
... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 19]] | 3 | 121 |
/*
* author :Sadik Hassan
*
*/
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define nl "\n"
#define pb push_back
#define fi first
#define se second
#define PI (acos(-1.0))
#define _SAD() ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define repp(i, a, n) for (int i = a; i < n; i++)
#define ... | /*
* author :Sadik Hassan
*
*/
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define nl "\n"
#define pb push_back
#define fi first
#define se second
#define PI (acos(-1.0))
#define _SAD() ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define repp(i, a, n) for (int i = a; i < n; i++)
#define ... | [["+", 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 | 222 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 189 |
k = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if k%7 == 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')
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll a, b, c, i, j, k, l, m, n, ans, tmp, hoge, fuga, piyo;
ll x[200100], y[200100], z[200100];
string s, str;
int main() {
cin >> k >> a >> b;
if (b / k - a / k == 1 || b % k == 0 || a % k == 0)
cout << "OK";
else
cout << "NO";
return 0;... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll a, b, c, i, j, k, l, m, n, ans, tmp, hoge, fuga, piyo;
ll x[200100], y[200100], z[200100];
string s, str;
int main() {
cin >> k >> a >> b;
if (b / k - a / k >= 1 || b % k == 0 || a % k == 0)
cout << "OK";
else
cout << "NG";
return 0;... | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 20], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 116 |
k = int(input())
a, b = map(int, input().split())
n = a//k
if (a == n*k) or (b > (n+1)*k):
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
n = a//k
if (a == n*k) or (b >= (n+1)*k):
print('OK')
else:
print('NG')
| [["-", 0, 57, 15, 679, 12, 23, 0, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 23, 0, 666, 667, 20]] | 5 | 64 |
k = int(input())
a, b = map(int,input().split())
for i in range(a, b):
if i % k == 0:
print('OK')
exit()
if a == b:
if a % k == 0:
print('OK')
exit()
print('NG') | import math
k = int(input())
a, b = map(int,input().split())
for i in range(a, b + 1):
if i % k == 0:
print('OK')
exit()
if a == b:
if a % k == 0:
print('OK')
exit()
print('NG') | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 77 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define len length()
#define sz size()
#define rng(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) rng(i, 0, n)
#define srt(v) sort(v.begin(), v.end())
#define rev(s) reverse(s.begin... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define len length()
#define sz size()
#define rng(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) rng(i, 0, n)
#define srt(v) sort(v.begin(), v.end())
#define rev(s) reverse(s.begin... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 202 |
k=int(input())
a,b=map(int,input().split())
count=0
for i in range(a,b+1):
if i%7==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')
else:
print('NG')
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 68 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int a, b;
cin >> a >> b;
if (a % n != 0 && b < (a % n) * n + n)
cout << "NG" << endl;
else
cout << "OK" << endl;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int a, b;
cin >> a >> b;
if (a % n != 0 && b < (a / n) * n + n)
cout << "NG" << endl;
else
cout << "OK" << endl;
} | [["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 85]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = (ll)(n)-1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define FORD(i, a, b) for (ll i = (a); i >= (b); i--)
#define ALL(x)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = (ll)(n)-1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define FORD(i, a, b) for (ll i = (a); i >= (b); i--)
#define ALL(x)... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 191 |
# coding: utf-8
K = input()
A, B = input().split()
n = 0
for i in range(int(B)):
n += int(K)
if int(A)<=n and n<=int(B):
print("OK")
break
elif int(B)<n:
print("NG") | # coding: utf-8
K = input()
A, B = input().split()
n = 0
for i in range(int(B)):
n += int(K)
if int(A)<=n and n<=int(B):
print("OK")
break
elif int(B)<n:
print("NG")
break | [["+", 0, 57, 75, 665, 64, 196, 0, 93, 0, 94]] | 5 | 73 |
K = int(input())
A, B = map(int, input().split())
count = 0
for num in range(A, B + 1):
if num % K == 0:
count += 1
if count >= 0:
print('OK')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
count = 0
for num in range(A, B + 1):
if num % K == 0:
count += 1
if count > 0:
print('OK')
else:
print('NG') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 68 |
// #Sazaの1日1AC
#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
const long long INF = 9e15;
const double PI = 3.14159265358979323846;
//マクロ
//型エイリアス
using ll = long long;
using P = pair<long long, long long>;
using vl = vector<long long>;
using vvl = vector<vector<long long>>;
using vP = vector<p... | // #Sazaの1日1AC
#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
const long long INF = 9e15;
const double PI = 3.14159265358979323846;
//マクロ
//型エイリアス
using ll = long long;
using P = pair<long long, long long>;
using vl = vector<long long>;
using vvl = vector<vector<long long>>;
using vP = vector<p... | [["-", 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, 16, 12, 5, 0, 6]] | 1 | 1,014 |
k = int(input())
a,b = map(int, input().split())
i=a
while i<=b:
if i%k==0:
print('Yes')
exit(0)
i+=1
print('No') | k = int(input())
a,b = map(int, input().split())
i=a
while i<=b:
if i%k==0:
print('OK')
exit(0)
i+=1
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 58 |
#include <algorithm>
#include <bitset>
#include <complex>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
//#define int long long
#define reps(i, s, n) for (int(i) = (s... | #include <algorithm>
#include <bitset>
#include <complex>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
//#define int long long
#define reps(i, s, n) for (int(i) = (s... | [["+", 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 | 656 |
k = int(input())
a,b = list(map(int,input().split()))
rem = a%k
if (k - rem) > (b - a):
print("NG")
else:
print("OK") | k = int(input())
a,b = list(map(int,input().split()))
rem = a%k
if rem > 0 and (k - rem) > (b - a):
print("NG")
else:
print("OK") | [["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
bool flag = false;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = true;
break;
}
}
if (flag)
cout << "OK" << endl;
else
cout << "NO" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
bool flag = false;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = true;
break;
}
}
if (flag)
cout << "OK" << endl;
else
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 | 88 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using namespace std;
using l... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using namespace std;
using l... | [["-", 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, 16, 12, 5, 0, 6]] | 1 | 132 |
#include <bits/stdc++.h>
using namespace std;
#define pause system("pause")
int main() {
int n, a, b;
cin >> n >> a >> b;
bool flag = false;
int i = 1;
while (i * n < b) {
if (n * i <= b && n * i >= a) {
flag = true;
break;
}
i++;
}
if (flag)
cout << "OK" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
#define pause system("pause")
int main() {
int n, a, b;
cin >> n >> a >> b;
bool flag = false;
int i = 1;
while (i * n <= b) {
if (n * i <= b && n * i >= a) {
flag = true;
break;
}
i++;
}
if (flag)
cout << "OK" << endl;
else
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 97 |
#include <stdio.h>
int main(void) {
unsigned long int a, b, c;
int i;
scanf("%ld%ld%ld", &a, &b, &c);
if ((0 == b % a) || (0 == c % a) || (c / a != b / a)) {
printf("OK");
}
else {
printf("NO");
}
return 0;
} | #include <stdio.h>
int main(void) {
unsigned long int a, b, c;
int i;
scanf("%ld%ld%ld", &a, &b, &c);
if ((0 == b % a) || (0 == c % a) || (c / a != b / a)) {
printf("OK");
}
else {
printf("NG");
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 87 |
k = int(input())
a, b = map(int, input().split())
if (a // k != b // k) | (a % k == 0) | (b % k == 0):
print('OK')
else:
print('NO') | k = int(input())
a, b = map(int, input().split())
if (a // k != b // k) | (a % k == 0) | (b % k == 0):
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 | 65 |
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
#define REP(i, l, n) for (int i = (l), i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define pb push_back
ll gcd(ll a, ll b) { return b ? gcd(b, a... | #include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
#define REP(i, l, n) for (int i = (l), i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define pb push_back
ll gcd(ll a, ll b) { return b ? gcd(b, a... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 318 |
from math import floor
k = int(input())
a,b = map(int,input().split())
ok = True
for i in range(a,b+1):
if (i%k != 0):
ok = False
if (ok):
print("OK")
else:
print("NG")
| from math import floor
k = int(input())
a,b = map(int,input().split())
ok = False
for i in range(a,b+1):
if (i%k == 0):
ok = True
if (ok):
print("OK")
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 146], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 147], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 79], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 60], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 147], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 146]] | 5 | 74 |
k = int(input())
a, b = map(int, input().split())
if a == b:
if a % k == 0:
print("OK")
exit()
else:
print("NG")
exit()
for i in range(a, b):
if i % k == 0:
print("OK")
exit()
print("NG") | k = int(input())
a, b = map(int, input().split())
if a == b:
if a % k == 0:
print("OK")
exit()
else:
print("NG")
exit()
for i in range(a, b+1):
if i % k == 0:
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 | 88 |
#include <bits/stdc++.h>
using namespace std;
int k, a, b;
int main() {
cin >> k >> a >> b;
for (int i = a; i < b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int k, a, b;
int main() {
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 75 |
k = gets.chomp.to_i
a,b = gets.chomp.split.map(&:to_i)
a.upto(b) do |i|
if i % k == 0
puts 'YES'
exit
end
end
puts 'NG'
| k = gets.chomp.to_i
a,b = gets.chomp.split.map(&:to_i)
a.upto(b) do |i|
if i % k == 0
puts 'OK'
exit
end
end
puts 'NG'
| [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 49 |
# -*- coding: utf-8 -*-
def main():
k = int(input())
a, b = map(int, input().split())
ans = k
while(True):
# print(ans)
if ans >= a and ans <= b:
print('Yes')
break
elif ans > b:
print('No')
break
e... | # -*- coding: utf-8 -*-
def main():
k = int(input())
a, b = map(int, input().split())
ans = k
while(True):
# print(ans)
if ans >= a and ans <= b:
print('OK')
break
elif ans > b:
print('NG')
break
el... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 84 |
n = int(input())
a,b = input().split()
a = int(a)
b = int(b)
for i in range(a, b+1):
print(i)
if i%n == 0:
print("OK")
exit()
print("NG") | n = int(input())
a,b = input().split()
a = int(a)
b = int(b)
for i in range(a, b+1):
if i%n == 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 | 69 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1000000007;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
int A, B;
A = a % k;
B = b % k;
a /= k;
b /= k;
if (A == 0 || B == 0 || b - a > 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1000000007;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
int A, B;
A = a % k;
B = b % k;
a /= k;
b /= k;
if (A == 0 || B == 0 || b - a >= 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 100 |
#include <algorithm>
#include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long int
#define M 1000000007
int mai... | #include <algorithm>
#include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long int
#define M 1000000007
int mai... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int val = a % k;
a = a - val + k;
if (a <= b) {
cout << "OK";
} else {
cout << "NG";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int val = a % k;
a = a - val + k;
if (a <= b || val == 0) {
cout << "OK";
} else {
cout << "NG";
}
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 65 |
<?php
//error_reporting(0);
$N = (int)trim(fgets(STDIN));
//$S = trim(fgets(STDIN));
list($A,$B) = array_map('intval',explode(" ",trim(fgets(STDIN))));
//$s = trim(fgets(STDIN));
//$A = array_map('intval',explode(" ",trim(fgets(STDIN))));
$x = intdiv($A,$N);
if (($x * $N)==$A) {
printf("Yes\n");
exit;
}
$x = ($x+1... | <?php
//error_reporting(0);
$N = (int)trim(fgets(STDIN));
//$S = trim(fgets(STDIN));
list($A,$B) = array_map('intval',explode(" ",trim(fgets(STDIN))));
//$s = trim(fgets(STDIN));
//$A = array_map('intval',explode(" ",trim(fgets(STDIN))));
$x = intdiv($A,$N);
if (($x * $N)==$A) {
printf("OK\n");
exit;
}
$x = ($x+1)... | [["-", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610], ["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610]] | 6 | 129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.