buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
K = int (input ())
A,B = map (int, input ().split ())
X = 'No'
while A <= B:
if A%K == 0:
X = 'Yes'
break
A += 1
print (X) | K = int (input ())
A,B = map (int, input ().split ())
X = 'NG'
while A <= B:
if A%K == 0:
X = 'OK'
break
A += 1
print (X) | [["-", 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 | 54 |
#include <algorithm>
#include <cassert>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
typedef long l... | #include <algorithm>
#include <cassert>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
typedef long l... | [["+", 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 | 131 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define MOD 1000000007
using namespace std;
using ll = long long;
int main() {
int k, a, b;
cin >> k >> a >> b;
string ans = "Yes";
if ((a - 1) / k == b / k)
ans = "No";
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define MOD 1000000007
using namespace std;
using ll = long long;
int main() {
int k, a, b;
cin >> k >> a >> b;
string ans = "OK";
if ((a - 1) / k == b / k)
ans = "NG";
cout << ans << endl;
return 0;
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int n = (b / k) * k;
if (a <= k)
puts("OK");
else
puts("NG");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int n = (b / k) * k;
if (a <= n)
puts("OK");
else
puts("NG");
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 62 |
K = int(input())
A,B = (int(x) for x in input().split())
for i in range(B-A+1):
if (A+i) % K == 0:
print('OK')
break
elif i == B-A:
print('NO') | K = int(input())
A,B = (int(x) for x in input().split())
for i in range(B-A+1):
if (A+i) % K == 0:
print('OK')
break
elif i == B-A:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int flag = 0;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
flag++;
break;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int flag = 0;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
flag++;
break;
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 137 |
#include <bits/stdc++.h>
using namespace std;
//型名省略
typedef long long ll;
typedef vector<long long> vl;
typedef vector<vector<long long>> vvl;
typedef vector<char> vc;
typedef vector<vector<char>> vvc;
typedef vector<string> vs;
//マクロ
#define rep(i, n) for (ll i = 0; i < (ll)n; i++)
#define rep2(i, x, n) for (ll i = (... | #include <bits/stdc++.h>
using namespace std;
//型名省略
typedef long long ll;
typedef vector<long long> vl;
typedef vector<vector<long long>> vvl;
typedef vector<char> vc;
typedef vector<vector<char>> vvc;
typedef vector<string> vs;
//マクロ
#define rep(i, n) for (ll i = 0; i < (ll)n; i++)
#define rep2(i, x, n) for (ll i = (... | [["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 46]] | 1 | 191 |
K=int(input())
A,B=map(int,input().split())
a='NG'
for i in range(A,B+1):
if i%K==0:
a=='OK'
break
print(a)
| K=int(input())
A,B=map(int,input().split())
a='NG'
for i in range(A,B+1):
if i%K==0:
a='OK'
break
print(a)
| [["-", 0, 57, 64, 196, 0, 1, 0, 666, 667, 60], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32]] | 5 | 58 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define invrep(i, n) for (int i = (int)(n); i > 0; i++)
using ll = long long;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (i... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define invrep(i, n) for (int i = (int)(n); i > 0; i++)
using ll = long long;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (i... | [["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, ... | 1 | 107 |
K = int(input())
S = input().split()
A = int(S[0])
B = int(S[1])
for i in range(A, B + 1):
if i % K == 0:
print("OK")
break
exit()
print("NG")
| K = int(input())
S = input().split()
A = int(S[0])
B = int(S[1])
for i in range(A, B + 1):
if i % K == 0:
print("OK")
exit()
print("NG")
| [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 70 |
k = int(input())
a , b = map(int,input().split())
flag = 0
for i in range(a ,b + 1, 1):
if i % k == 0:
flag = flag + 1
break
if flag == 0:
print("NO")
else:
print("OK") | k = int(input())
a , b = map(int,input().split())
flag = 0
for i in range(a ,b + 1, 1):
if i % k == 0:
flag = flag + 1
break
if flag == 0:
print("NG")
else:
print("OK") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 73 |
#include <stdio.h>
// jarak ke titik adalah kelipatan k
// a antara b
// si antara itu hrs terpenuhi
// kl terpenuhi ok, klk ga ng
// k = kelipatan
// a titik awal, b ujung
// 7
// 500 600
// 600/7 = 85
// 85*7 = 595
// baru dicek
// 4
// 5 7
// 7/4 = 1
// 1 *4 = 5
// kalo lebih kecil dari bates 1 jadinya false
int mai... | #include <stdio.h>
// jarak ke titik adalah kelipatan k
// a antara b
// si antara itu hrs terpenuhi
// kl terpenuhi ok, klk ga ng
// k = kelipatan
// a titik awal, b ujung
// 7
// 500 600
// 600/7 = 85
// 85*7 = 595
// baru dicek
// 4
// 5 7
// 7/4 = 1
// 1 *4 = 5
// kalo lebih kecil dari bates 1 jadinya false
int mai... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 94 |
k = int(input())
a,b = map(int, input().split())
s = 0
z = b - a
for i in range(0, z):
if (a + i) % k == 0:
s = 1
if s == 1:
print("OK")
else:
print("NG") | k = int(input())
a,b = map(int, input().split())
s = 0
z = b - a + 1
for i in range(0, z):
if (a + i) % k == 0:
s = 1
if s == 1:
print("OK")
else:
print("NG") | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 75 |
#include <stdio.h>
int main() {
int K;
int A, B;
int i;
scanf("%d", &K);
scanf("%d %d", &A, &B);
for (i = A; i <= B; i++) {
if (A % K == 0) {
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
} | #include <stdio.h>
int main() {
int K;
int A, B;
int i;
scanf("%d", &K);
scanf("%d %d", &A, &B);
for (i = A; i <= B; i++) {
if (i % K == 0) {
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22]] | 0 | 89 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool can = false;
for (int i = k; i <= b; i++) {
if (i % k == 0)
can = true;
}
if (can)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool can = false;
for (int i = a; i <= b; i++) {
if (i % k == 0)
can = true;
}
if (can)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22]] | 1 | 89 |
#include <iostream>
int main() {
int K, A, B;
std::cin >> K;
std::cin >> A >> B;
if (A / K < B / K)
std::cout << "Yes" << std::endl;
else if (A % K == 0)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | #include <iostream>
int main() {
int K, A, B;
std::cin >> K;
std::cin >> A >> B;
if (A / K < B / K)
std::cout << "OK" << std::endl;
else if (A % K == 0)
std::cout << "OK" << std::endl;
else
std::cout << "NG" << std::endl;
return 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 | 88 |
#include <stdio.h>
int main() {
int K, A, B;
scanf("%d %d %d", &K, &A, &B);
int L = A;
int sw = 0;
while (L <= B) {
if (A % K == 0) {
sw = 1;
}
L = L + 1;
}
if (sw == 1) {
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
} | #include <stdio.h>
int main() {
int K, A, B;
scanf("%d %d %d", &K, &A, &B);
int L = A;
int sw = 0;
while (L <= B) {
if (L % K == 0) {
sw = 1;
}
L = L + 1;
}
if (sw == 1) {
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22]] | 0 | 99 |
#include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B - A >= K - 1) {
cout << "OK" << endl;
} else {
for (int i = A; i <= B; i++) {
if (i % 7 == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B - A >= K - 1) {
cout << "OK" << endl;
} else {
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K = 0;
cin >> K;
int A, B;
cin >> A >> B;
int a = A % K;
int range = B - A;
string ans = "NG";
if (a == 0)
ans = "OK";
else if (a + range >= K)
ans = "OK";
cout << a + range << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K = 0;
cin >> K;
int A, B;
cin >> A >> B;
int a = A % K;
int range = B - A;
string ans = "NG";
if (a == 0)
ans = "OK";
else if (a + range >= K)
ans = "OK";
cout << ans << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int Largest = (B / K) * B;
if (A <= Largest)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int Largest = (B / K) * K;
if (A <= Largest)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int x = b / k;
if (a <= x * b and x * b <= b)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int x = b / k;
if (a <= x * k and x * k <= b)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool fin = false;
for (int i = 0; i <= b - a; i++) {
if ((a + 1) % k == 0) {
cout << "OK" << endl;
fin = true;
break;
}
}
if (!fin) {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool fin = false;
for (int i = 0; i <= b - a; i++) {
if ((a + i) % k == 0) {
cout << "OK" << endl;
fin = true;
break;
}
}
if (!fin) {
cout << "NG" << endl;
}
} | [["-", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 22]] | 1 | 93 |
K=int(input())
A,B=list(map(int,input().split()))
count=0
for i in range(A,B):
if i%K==0:
count+=1
break
if count==0:
print("NG")
else:
print("OK") | K=int(input())
A,B=list(map(int,input().split()))
count=0
for i in range(A,B+1):
if i%K==0:
count+=1
break
if count==0:
print("NG")
else:
print("OK") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 70 |
K = int(input())
A, B = map(int, input().split())
for i in range(1000):
if A <= K*i <= B:
print("OK")
exit(0)
print("No") | K = int(input())
A, B = map(int, input().split())
for i in range(1000):
if A <= K*i <= B:
print("OK")
exit(0)
print("NG") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 57 |
// Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | [["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 22]] | 1 | 145 |
#include <iostream>
using namespace std;
int main() {
int A, B, K;
cin >> K >> A >> B;
if ((B % K == 0) || (A % K == 0) || (B % K > (A % K)))
cout << "OK" << endl;
else
cout << "NG" << endl;
} | #include <iostream>
using namespace std;
int main() {
int A, B, K;
cin >> K >> A >> B;
if ((B % K == 0) || (A % K == 0) || (B / K > (A / K)))
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 51, 16, 12, 23, 0, 16, 31, 16, 17, 109], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 17, 85], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 17, 85]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << (a - (b % k) >= a ? "OK" : "NG");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << (b - (b % k) >= a ? "OK" : "NG");
return 0;
} | [["-", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22]] | 1 | 52 |
k = int(input())
a,b = map(int,input().split())
for i in range(a,b):
if i % k == 0:
print("OK")
exit()
if a % k == 0:
print("OK")
else:
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()
if a % k == 0:
print("OK")
else:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 71 |
K = int(input())
A,B = list(map(int,input().split()))
if A <= B - (B % K):
print("OK")
else:
print("NO") | K = int(input())
A,B = list(map(int,input().split()))
if A <= B - (B % K):
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 | 52 |
K = int(input())
A,B = map(int,input().split())
flag = 0
for i in range(A,B+1):
if i%K == 0:
flag += 1
print("Yes")
break
if flag == 0:
print("NG") | K = int(input())
A,B = map(int,input().split())
flag = 0
#flagはフラグ関数(Kの倍数が存在したかどうか)
for i in range(A,B+1):
#(A,B)だとA以上B-1以下までを調べてしまうので注意!!
if i%K == 0:
flag += 1
print("OK")
break
if flag == 0:
print("NG") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int C = K;
for (int i = 0; i < 1000; i++) {
if (C <= B) {
C += K;
} else {
break;
}
}
if (A <= C) {
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 C = K;
for (int i = 0; i < 1000; i++) {
if (C <= B) {
C += K;
} else {
C -= K;
break;
}
}
if (A <= C) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 110], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35]] | 1 | 92 |
# We Love Golf
K = int(input())
A, B = map(int, input().split())
if K == 1:
print('OK')
else:
print(['NG', 'OK'][(B % K) < (B - A)]) | # We Love Golf
K = int(input())
A, B = map(int, input().split())
if K == 1:
print('OK')
else:
print(['NG', 'OK'][(B % K) <= (B - A)]) | [["-", 0, 652, 3, 4, 0, 206, 206, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 206, 206, 666, 667, 19]] | 5 | 63 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << (b / k - (a - 1) / k > 0 ? "Yes" : "No") << endl;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
cout << (b / k - (a - 1) / k > 0 ? "OK" : "NG") << endl;
}
| [["-", 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 | 55 |
#include <stdio.h>
int main(void) {
int i, a, b;
scanf("%d", &i);
scanf("%d %d", &a, &b);
if (b - a > i) {
puts("OK");
} else if (b - b % i > a) {
puts("OK");
} else {
puts("NG");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i, a, b;
scanf("%d", &i);
scanf("%d %d", &a, &b);
if (b - a >= i) {
puts("OK");
} else if (b - b % i >= a) {
puts("OK");
} else {
puts("NG");
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 89 |
K=int(input().split())
A,B=map(int,input().split())
n=A//K
print("OK" if A<=K*n<=B or K*(n+1)<=B else "NG") | K=int(input())
A,B=map(int,input().split())
n=A//K
print("OK" if A<=K*n<=B or K*(n+1)<=B else "NG") | [["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 61 |
n = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if(n%i==0):
print("OK")
exit(0)
print("NG") | n = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if(i%n==0):
print("OK")
exit(0)
print("NG")
| [["-", 0, 57, 15, 23, 0, 666, 0, 657, 31, 22], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 109], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 17, 109], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22]] | 5 | 61 |
k=int(input())
a,b=map(int,input().split())
x=0
for i in range(a,b+1):
if i%k==0:
print('OK')
break
print('NG') | k=int(input())
a,b=map(int,input().split())
x=0
for i in range(a,b+1):
if i%k==0:
print('OK')
exit()
print('NG') | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int k, a, b;
int main() {
cin >> k;
cin >> a >> b;
if (a % k == 0)
cout << "Yes" << endl;
else {
if ((a / k + 1) * k <= b)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int k, a, b;
int main() {
cin >> k;
cin >> a >> b;
if (a % k == 0)
cout << "OK" << endl;
else {
if ((a / k + 1) * k <= b)
cout << "OK" << endl;
else
cout << "NG" << endl;
}
return 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 | 82 |
package main
import (
"fmt"
)
func main() {
var k, a, b int
fmt.Scanf("%d", &k)
fmt.Scanf("%d %d", &a, &b)
ans := "NG"
if a % k == 0 {
ans = "Yes"
}
if (a/k) < (b/k) {
ans = "Yes"
}
fmt.Printf("%s\n", ans)
} | package main
import (
"fmt"
)
func main() {
var k, a, b int
fmt.Scanf("%d", &k)
fmt.Scanf("%d %d", &a, &b)
ans := "NG"
if a % k == 0 {
ans = "OK"
}
if (a/k) < (b/k) {
ans = "OK"
}
fmt.Printf("%s\n", ans)
} | [] | 7 | 106 |
k = gets.chomp.to_i
a,b = gets.chomp.split(' ').map(&:to_i)
(a..b).each do |n|
if n%k == 0
puts "OK"
exit
end
puts "NG"
end | k = gets.chomp.to_i
a,b = gets.chomp.split(' ').map(&:to_i)
(a..b).each do |n|
if n%k == 0
puts "OK"
exit
end
end
puts "NG" | [["+", 36, 36, 0, 493, 0, 652, 196, 737, 0, 444], ["-", 36, 36, 0, 493, 0, 652, 196, 737, 0, 444]] | 4 | 55 |
K = int(input())
A, B = map(int, input().split())
cnt = 0
while true:
cnt+=K
if a <= cnt <= b:
print("OK")
break
if b < cnt:
print("NG")
break | K = int(input())
A, B = map(int, input().split())
cnt = 0
while 1:
cnt+=K
if A <= cnt <= B:
print("OK")
break
if B < cnt:
print("NG")
break | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 612], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 59 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < n; i++)
#define Rep(i, n) for (long long i = 1; i < n; i++)
#define ll long long
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#defi... | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < n; i++)
#define Rep(i, n) for (long long i = 1; i < n; i++)
#define ll long long
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#defi... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 105 |
K=int(input())
ans = False
M,N = map(int,input().rstrip().split(" "))
#print(K,M,N)
for number in range(M,N+1):
if number%K==0:
ans = True
if ans:
print("YES")
else:
print("NG") | K=int(input())
ans = False
M,N = map(int,input().rstrip().split(" "))
#print(K,M,N)
for number in range(M,N+1):
if number%K==0:
ans = True
if ans:
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 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, i, j;
cin >> k >> i >> j;
bool t = true;
for (int d = i; d <= j; d++) {
if (k % d == 0) {
t = false;
cout << "OK" << endl;
break;
}
}
if (t)
cout << "NG" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, i, j;
cin >> k >> i >> j;
bool t = true;
for (int d = i; d <= j; d++) {
if (d % k == 0) {
t = false;
cout << "OK" << endl;
break;
}
}
if (t)
cout << "NG" << endl;
}
| [["-", 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 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
using ll = long long;
string char_to_string(char val) { return string(1, val); }
int char_to_int(char val) { return val - '0'; }
template <class T> inline bool chmin(T ... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
using ll = long long;
string char_to_string(char val) { return string(1, val); }
int char_to_int(char val) { return val - '0'; }
template <class T> inline bool chmin(T ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 207 |
#include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
int64_t a, b, k;
string ans = "NG";
cin >> a >> b >> k;
if (a % k == 0 || b % k == 0)
ans = "OK";
if (a / k != b / k)
ans = "OK";
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
int64_t a, b, k;
string ans = "NG";
cin >> k >> a >> b;
if (a % k == 0 || b % k == 0)
ans = "OK";
if (a / k != b / k)
ans = "OK";
cout << ans << endl;
} | [["+", 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 | 78 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, b... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, b... | [["-", 51, 16, 31, 16, 12, 16, 31, 91, 17, 111], ["-", 15, 339, 51, 16, 12, 16, 31, 91, 17, 111]] | 1 | 1,002 |
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') | k=int(input())
a,b=map(int, input().split())
for i in range(a,b+1):
if i % k ==0:
print('OK')
exit(0)
print('NG') | [["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, mini, maxi;
cin >> k >> mini >> maxi;
int l = (maxi / k) * k;
if (l >= mini) {
cout << "OK" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, mini, maxi;
cin >> k >> mini >> maxi;
int l = (maxi / k) * k;
if (l >= mini) {
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 |
#include <iostream>
using namespace std;
int main(void) {
int K;
int A, B;
cin >> K;
cin >> A >> B;
int K_bai = (B / K) * K;
if (K_bai >= A) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int K;
int A, B;
cin >> K;
cin >> A >> B;
int K_bai = (B / K) * K;
if (K_bai >= A) {
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 | 69 |
K = int(input())
A, B = map(int, input().split())
if B - (B % K) > A:
print('OK')
else:
print('NG')
| K = int(input())
A, B = map(int, input().split())
if B - (B % K) >= A:
print('OK')
else:
print('NG')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 49 |
K = int(input())
A, B = map(int, input().split())
if K == 1:
print('OK')
elif B - (B % K) > A:
print('OK')
else:
print('NG')
| K = int(input())
A, B = map(int, input().split())
if K == 1:
print('OK')
elif B - (B % 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 | 60 |
k = int(input())
a, b = map(int, input().split())
if int(a/k + 1)*k <= b:
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
if int((a-1)/k + 1)*k <= b:
print('OK')
else:
print('NG') | [["+", 3, 4, 0, 657, 31, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 3, 4, 0, 657, 31, 657, 31, 23, 0, 25]] | 5 | 52 |
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | [["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]] | 1 | 1,616 |
#include <algorithm>
#include <climits> // FOO_MAX, FOO_MIN
#include <cmath>
#include <cstdlib> // abs(int)
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
#define roundup(n, d) (((n) + ((d)-1)) / (d))
#define assign_max(into, compared) (into = max((into), (compared)))
... | #include <algorithm>
#include <climits> // FOO_MAX, FOO_MIN
#include <cmath>
#include <cstdlib> // abs(int)
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
#define roundup(n, d) (((n) + ((d)-1)) / (d))
#define assign_max(into, compared) (into = max((into), (compared)))
... | [["-", 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 | 154 |
K = int(input().rstrip())
distance_range = list(map(int,input().split()))
if (distance_range[1]//K)*K >= distance_range[0]:
print("Yes")
else:
print("No") |
K = int(input().rstrip())
distance_range = list(map(int,input().split()))
if (distance_range[1]//K)*K >= distance_range[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 | 60 |
#include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
int l = b / n;
l = b * n;
if (a <= l) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
int l = b / n;
l = l * n;
if (a <= l) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 70 |
k = int(input())
a,b = map(int,input().split())
if a % k != 0 and b % k != 0 and a//k == b//k:
print("No")
else:
print("Yes") | k = int(input())
a,b = map(int,input().split())
if a % k != 0 and b % k != 0 and a//k == b//k:
print("NG")
else:
print("OK") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 59 |
k=int(input())
a,b=list(map(int,input().split()))
while True:
x+=k
if a<=x<=b:
print('OK')
break
if x>b:
print('NG')
break | k=int(input())
a,b=list(map(int,input().split()))
x=0
while True:
x+=k
if a<=x<=b:
print('OK')
break
if x>b:
print('NG')
break
| [["+", 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, 612]] | 5 | 59 |
import static java.lang.Character.isUpperCase;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int K = in.nextInt();
int A = in.nextInt();
int B = in.nextInt();
boolean x = false;
for (int i = A; i <... |
import static java.lang.Character.isUpperCase;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int K = in.nextInt();
int A = in.nextInt();
int B = in.nextInt();
boolean x = false;
for (int i = A; i <... | [["-", 8, 196, 0, 57, 15, 15, 0, 11, 17, 32], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60]] | 3 | 147 |
k = int(input())
a, b = map(int, input().split())
count = 0
for i in range(b-a):
if (a + i) % k == 0:
count += 1
print("OK" if count > 0 else "NG") | k = int(input())
a, b = map(int, input().split())
count = 0
for i in range(b-a+1):
if (a + i) % k == 0:
count += 1
print("OK" if count > 0 else "NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, a, b, n, c = 0;
cin >> n;
cin >> a >> b;
for (i = a; i <= (a + b) / 2; i++) {
if (i % n == 0) {
c++;
}
}
if (c >= 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i, a, b, n, c = 0;
cin >> n;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (i % n == 0) {
c++;
}
}
if (c >= 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| [["-", 0, 7, 15, 16, 12, 16, 31, 23, 0, 24], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 7, 15, 16, 12, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 95 |
#include <stdio.h>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d%d", &a, &b);
int max = (b / k) * k;
if (max >= a) {
printf("Yes");
} else {
printf("No");
}
return 0;
}
| #include <stdio.h>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d%d", &a, &b);
int max = (b / k) * k;
if (max >= 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 | 77 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repi(i, a, b) for (int i = int(a); i < (b); i++)
#define repr(i, b, a) for (int i = int(b); i >= (a); i--)
#define all(x) x.begin(), x.end()
const ll mod = 1e9 + ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repi(i, a, b) for (int i = int(a); i < (b); i++)
#define repr(i, b, a) for (int i = int(b); i >= (a); i--)
#define all(x) x.begin(), x.end()
const ll mod = 1e9 + ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 287 |
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();
String str = null;
for (int i = A; i <= B; i++) {
if (A / K == 0) {
str = "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();
String str = null;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
str = "OK";
}
}
... | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 109]] | 3 | 132 |
# -*- coding: utf-8 -*-
def main():
K = int(input())
A, B = map(int, input().split())
numA = A // K
numB = B // K
if numB - numA > 0:
ans = 'OK'
else:
ans = 'NG'
print(ans)
if __name__ == "__main__":
main() | # -*- coding: utf-8 -*-
def main():
K = int(input())
A, B = map(int, input().split())
numA = (A - 1) // K
numB = B // K
if numB - numA > 0:
ans = 'OK'
else:
ans = 'NG'
print(ans)
if __name__ == "__main__":
main() | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25]] | 5 | 73 |
K=int(input())
A,B=map(int,input().split())
if (A-1)/K == B/K:
print('NG')
else:
print('OK')
| K=int(input())
A,B=map(int,input().split())
if (A-1)//K == B//K:
print('NG')
else:
print('OK')
| [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676]] | 5 | 51 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool flag = false;
for (int i = a; i <= b; i++) {
if (i % 7 == 0) {
flag = true;
break;
}
}
if (flag)
cout << "OK" << end... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool flag = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = true;
break;
}
}
if (flag)
cout << "OK" << end... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 102 |
K = int(input())
A, B = map(int, input().split())
for i in range(A, B +1):
if K%i == 0:
print("OK")
exit(0)
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(0)
print("NG")
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B / K - A / K != 0 && K != 1) {
cout << "OK" << endl;
} else if (K == 1) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B / K - (A - 1) / K != 0 && K != 1) {
cout << "OK" << endl;
} else if (K == 1) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["+", 31, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 81 |
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
//#include "All.h"
using namespace std;
typedef long long int l... | #include <algorithm>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
//#include "All.h"
using namespace std;
typedef long long int l... | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 193 |
k = int(input())
a, b = map(int, input().split())
x = 0
while True:
x += k
if a <= x <= b:
print('OK')
break
if x > b:
print('NO')
break | k = int(input())
a, b = map(int, input().split())
x = 0
while True:
x += k
if a <= x <= b:
print('OK')
break
if x > 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 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, ans = 0, as = false;
cin >> k >> a >> b;
while (a <= b) {
if (0 == a % k) {
as = true;
break;
}
a++;
}
if (as == true)
cout << "OK" << endl;
else
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b, ans = 0, as = false;
cin >> k >> a >> b;
while (a <= b) {
if (0 == a % k) {
as = true;
break;
}
a++;
}
if (as == true)
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 | 85 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
for (int i = a; i <= b; i++) {
if (i % n == 0) {
System.out.println("OK");
return;
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
for (int i = a; i <= b; i++) {
if (i % n == 0) {
System.out.println("OK");
return;
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 112 |
k = int(input())
a,b = map(int, input().split())
ct = 0
for i in range(a, (b+1)):
if i % k == 0:
ct += 1
if ct != 0:
print('OK')
else:
print('NO') | k = int(input())
a,b = map(int, input().split())
ct = 0
for i in range(a, (b+1)):
if i % k == 0:
ct += 1
if ct != 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 | 70 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll a, b, k;
cin >> a >> b >> k;
for (ll i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
// your code goes here
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll a, b, k;
cin >> k >> a >> b;
for (ll i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
// your code goes here
return 0;
} | [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool ans = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
} else
cout << "NG";
return 0;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool ans = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
}
| [["-", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A <= K || A <= (B / K) * K) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A <= (B / K) * K) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 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, 19]] | 1 | 62 |
#!/usr/bin/env ruby
N = gets.chomp.to_i
A,B = gets.split.map(&:to_i)
res = false
(A..B).each do |i|
if i % N == 0
res = true
break
end
end
puts res ? "Yes" : "No"
| #!/usr/bin/env ruby
N = gets.chomp.to_i
A,B = gets.split.map(&:to_i)
res = false
(A..B).each do |i|
if i % N == 0
res = true
break
end
end
puts res ? "OK" : "NG"
| [["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 57 |
K = int(input())
a,b=map(int, input().split())
f = 0
for i in range(b-a+1):
if ((i+1)%K ==0):
f = 1
if f:
print("OK")
else:
print("NG") | K = int(input())
a,b=map(int, input().split())
f = 0
for i in range(a, b+1):
if ((i)%K ==0):
f = 1
if f:
print("OK")
else:
print("NG") | [["-", 12, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 666, 0, 657, 31, 23, 0, 657, 17, 72], ["-", 0, 666, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 72 |
a = int(input())
low, hi = map(int, input().split())
start = a * int(low//a)
boolean = False
while not (start > hi):
print(start)
if low <= start <= hi:
boolean = True
break
start += a
if boolean: print("OK")
else: print("NG")
| a = int(input())
low, hi = map(int, input().split())
start = a * int(low//a)
boolean = False
while not (start > hi):
if low <= start <= hi:
boolean = True
break
start += a
if boolean: print("OK")
else: print("NG")
| [["-", 0, 52, 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 | 80 |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, a, b;
int x = 0;
cin >> k >> a >> b;
for (int i = 1; i <= 1000; i++) {
if (a <= k * i and k * i <=... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, a, b;
int x = 0;
cin >> k >> a >> b;
for (int i = 1; i <= 1000; i++) {
if (a <= k * i and k * i <=... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 108 |
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
k = int(readline())
a, b = map(int, readline().split())
for i in range(a, b + 1):
if i % a == 0:
print('OK')
exit()
print('NG')
| import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
k = int(readline())
a, b = map(int, readline().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, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 95 |
K = int(input())
A,B = map(int,input().split())
ans = 0
ng = 0
for i in range(A,B+1):
if i % K:
print("OK")
break
else:
print("NG")
| K = int(input())
A,B = map(int,input().split())
ans = 0
ng = 0
for i in range(A,B+1):
if i % K == 0:
print("OK")
break
else:
print("NG") | [["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 62 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (k == 1) {
cout << "OK" << endl;
return 0;
}
int aa = a / k;
int bb = b / k;
if (bb > aa) {
cout << "OK" << endl;
return 0;
}
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0) {
cout << "OK" << endl;
return 0;
}
int aa = a / k;
int bb = b / k;
if (bb > aa) {
cout << "OK" << endl;
return 0;
}
cout << "NG" << endl;
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 90 |
def main():
x = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if i % x == 0:
print('OK')
return
print('No')
main() | def main():
x = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if i % x == 0:
print('OK')
return
print('NG')
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 64 |
K = int(input())
A, B = map(int, input().split())
min_num = A//K
max_num = B//K
for i in range(min_num, max_num+1):
if A <= i*K <= B:
print("OK")
exit(0)
print("NO") | K = int(input())
A, B = map(int, input().split())
min_num = A//K
max_num = B//K
for i in range(min_num, max_num+1):
if A <= i*K <= B:
print("OK")
exit(0)
print("NG")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
import copy
def main():
K = int(input())
A, B = map(int, input().split(' '))
origin = copy.copy(K)
while K < 1001:
if K >= A and K <= B:
print('OK')
return
K = K + origin
print('No')
main() | import copy
def main():
K = int(input())
A, B = map(int, input().split(' '))
origin = copy.copy(K)
while K < 1001:
if K >= A and K <= B:
print('OK')
return
K = K + origin
print('NG')
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (a % k == 0) {
cout << "Ok" << endl;
} else {
int r = a / k;
if ((r + 1) * k <= b)
cout << "OK" << endl;
else
cout << "NG" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (a % k == 0) {
cout << "OK" << endl;
} else {
int r = a / k;
if ((r + 1) * k <= b)
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 | 89 |
k = int(input())
a,b = map(int,input().split())
if a%k != 0 and b%k != 0 and a%k == b%k:
print("NG")
else:
print("OK") | k = int(input())
a,b = map(int,input().split())
if a%k != 0 and b%k != 0 and a//k == b//k:
print("NG")
else:
print("OK") | [["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 109], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 676]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int tmp = (a / k) * k;
if (a == tmp || (a <= tmp + k && tmp + k <= b)) {
cout << "OK" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int tmp = (a / k) * k;
if (a == tmp || (a <= tmp + k && tmp + k <= b)) {
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 | 82 |
k = int(input())
ab = [int(x) for x in input().split()]
m = ab[1] / k * k
if ab[0] <= m:
print("OK")
else:
print("NG")
| k = int(input())
ab = [int(x) for x in input().split()]
m = int(ab[1] / k) * k
if ab[0] <= m:
print("OK")
else:
print("NG")
| [["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25]] | 5 | 58 |
#include "stdio.h"
int main(int argc, char const *argv[]) {
int K, A, B, yes = 0;
scanf("%d\n%d %d", &K, &A, &B);
for (; A <= B; A++) {
if (A % 7 == 0) {
yes++;
break;
}
}
printf(yes ? "OK\n" : "NG\n");
return 0;
}
| #include "stdio.h"
int main(int argc, char const *argv[]) {
int K, A, B, yes = 0;
scanf("%d\n%d %d", &K, &A, &B);
for (; A <= B; A++) {
if (A % K == 0) {
yes++;
break;
}
}
printf(yes ? "OK\n" : "NG\n");
return 0;
}
| [["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22]] | 0 | 93 |
/*
no pain, no gain
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define fr first
#define sc second
#define pb push_back
#define szof(s) (int)s.size()
#define all(s) s.begin(), s.end()
#define pii pair<int, int>
#define all(s) s.begin(), s.end()
#define prev myrza4321
... | /*
no pain, no gain
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define fr first
#define sc second
#define pb push_back
#define szof(s) (int)s.size()
#define all(s) s.begin(), s.end()
#define pii pair<int, int>
#define all(s) s.begin(), s.end()
#define prev myrza4321
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 130 |
K = int(input())
A, B = map(int, input().split())
l = K
ans = 'NG'
for l in range(K, 1001, K):
print(l)
if l >= A and l <= B:
ans = 'OK'
break
elif l > B:
break
print(ans) | K = int(input())
A, B = map(int, input().split())
l = K
ans = 'NG'
for l in range(K, 1001, K):
# print(l)
if l >= A and l <= B:
ans = 'OK'
break
elif l > B:
break
print(ans) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 73 |
def main():
k=int(input())
a,b = map(int,input().split())
for i in range(1000):
if(a<=i*k and i*k <= b):
print("Yes")
return 0
print("No")
return 0
main() | def main():
k=int(input())
a,b = map(int,input().split())
for i in range(1000):
if(a<=i*k and i*k <= b):
print("OK")
return 0
print("NG")
return 0
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
#include "bits/stdc++.h"
#include <chrono>
using namespace std;
using namespace std::chrono;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define forn(ii, nn) for (int ii = 0; ii < nn; ++ii)
#define gcd(ade, bde) __gcd(ade, bde)
#define vi vector<int>
#define vll vector<ll>
#define v... | #include "bits/stdc++.h"
#include <chrono>
using namespace std;
using namespace std::chrono;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define forn(ii, nn) for (int ii = 0; ii < nn; ++ii)
#define gcd(ade, bde) __gcd(ade, bde)
#define vi vector<int>
#define vll vector<ll>
#define v... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 1,087 |
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();
for (int i = 2; i < 1000; i++) {
if (a <= (k * i) && (k * i) <= b) {
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();
for (int i = 1; i < 1000; i++) {
if (a <= (k * i) && (k * i) <= b) {
System.out.println("OK");
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]] | 3 | 148 |
K = int(input())
A, B = map(int, input().split())
largest = (B / K) * K # B 以下の最大のKの倍数
if A <= largest:
print("OK")
else:
print("NG") | K = int(input())
A, B = map(int, input().split())
largest = (B // K) * K # B 以下の最大のKの倍数
if A <= largest:
print("OK")
else:
print("NG")
| [["-", 0, 662, 12, 657, 31, 23, 0, 657, 17, 85], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 676]] | 5 | 53 |
from sys import stdin
def main():
#入力
readline=stdin.readline
K=int(readline())
A,B=map(int,readline().split())
if A%K==0:
print("Yes")
elif A//K<B//K:
print("Yes")
else:
print("No")
if __name__=="__main__":
main() | from sys import stdin
def main():
#入力
readline=stdin.readline
K=int(readline())
A,B=map(int,readline().split())
if A%K==0:
print("OK")
elif A//K<B//K:
print("OK")
else:
print("NG")
if __name__=="__main__":
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.