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 |
|---|---|---|---|---|
import numpy as np
k = int(input())
a, b = map(int, input().split())
driver_list = range(a, b, 1)
driver_arr = np.array(driver_list)
solver = driver_arr % k
if 0 in solver:
print('OK')
else:
print('NG') | import numpy as np
k = int(input())
a, b = map(int, input().split())
driver_list = range(a, b+1, 1)
driver_arr = np.array(driver_list)
solver = driver_arr % k
if 0 in solver:
print('OK')
else:
print('NG') | [["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define loop(i, x, z) for (int i = x; i < z; i++)
int n, a, b;
int main() {
cin >> n >> a >> b;
for (int i = n; i < b + 1; i += n) {
if (i < a) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
#define loop(i, x, z) for (int i = x; i < z; i++)
int n, a, b;
int main() {
cin >> n >> a >> b;
for (int i = n; i < b + 1; i += n) {
if (i >= a) {
cout << "OK";
return 0;
}
}
cout << "NG";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 79 |
K = int(input())
A,B = input().split(" ")
for num in range(int(A),int(B)):
if num % K == 0:
print("OK")
exit()
print("NG") | K = int(input())
A,B = input().split(" ")
for num in range(int(A),int(B)+1):
if num % 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 | 60 |
#include <bits/stdc++.h>
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag,
tree_order_statistics_node_update>;*/
#define itn int
#define all(c) c.begin(), c.end()
#define make_uni... | #include <bits/stdc++.h>
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag,
tree_order_statistics_node_update>;*/
#define itn int
#define all(c) c.begin(), c.end()
#define make_uni... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 281 |
#include <iostream>
using namespace std;
int main() {
int A, B, K;
cin >> K >> A >> B;
for (int i = A; i < B; ++i) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int A, B, K;
cin >> K >> A >> B;
for (int i = A; i <= B; ++i) {
if (i % K == 0) {
cout << "OK" << 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 |
#include <iostream>
int main() {
int k, a, b;
std::cin >> k >> a >> b;
if (a / k < b / k || a == k) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << std::endl;
}
}
| #include <iostream>
int main() {
int k, a, b;
std::cin >> k >> a >> b;
if (a / k < b / k || a % k == 0) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << std::endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool can = false;
for (int i = 0; i < 1000; i++) {
if (i * K >= A && i * K <= B) {
can = true;
break;
}
}
if (can)
cout << "OK" << endl;
if (can)
cout << "NG" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool can = false;
for (int i = 1; i < 1000; i++) {
if (i * K >= A && i * K <= B) {
can = true;
break;
}
}
if (can)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["-", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["-", 0, 14, 8, 9, 0, 57, 15, 339, 51, 22], ["-", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 94 |
#include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool isAchieved = false;
for (int i = A; i <= B; i++) {
if (i % 7 == 0) {
isAchieved = true;
break;
}
}
if (isAchieved) {
cout << "OK";
} else {
cout << "NG";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool isAchieved = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
isAchieved = true;
break;
}
}
if (isAchieved) {
cout << "OK";
} else {
cout << "NG";
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 88 |
k = int(input())
a, b = map(int,input().split())
flag = 0
for i in range(a, b+1):
if i % k == 0:
print('OK')
flag = 1
if flag == 0:
print('NG') | k = int(input())
a, b = map(int,input().split())
flag = 0
for i in range(a, b+1):
if i % k == 0 and flag == 0:
print('OK')
flag = 1
if flag == 0:
print('NG')
| [["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 66 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final int k = sc.nextInt(), a = sc.nextInt(), b = sc.nextInt();
if (a % k == 0 || b % k == 0) {
System.out.println("OK");
} else {
if (b / k - a / k == 0) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final int k = sc.nextInt(), a = sc.nextInt(), b = sc.nextInt();
if (a % k == 0 || b % k == 0) {
System.out.println("OK");
} else {
if (b / k - a / k == 0) {
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 130 |
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();
if (b / k >= (a - 1) / k) {
System.out.println("OK");
} else {
System.out.println("NG");
... | 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();
if (b / k > (a - 1) / k) {
System.out.println("OK");
} else {
System.out.println("NG");
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47]] | 3 | 103 |
#include <iostream>
int main() {
int k, a, b;
std ::cin >> k >> a >> b;
if (a <= (b - (b % k))) {
std::cout << "ok" << std::endl;
}
else {
std::cout << "NG" << std::endl;
}
} | #include <iostream>
int main() {
int k, a, b;
std ::cin >> k >> a >> b;
if (a <= (b - (b % k))) {
std::cout << "OK" << std::endl;
}
else {
std::cout << "NG" << std::endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 68 |
K = int(input())
A,B = map(int,input().split())
n = 1
while True:
if A <= K*n and K*n <= B:
print('OK')
break
elif Kn > B:
print('NG')
break
n = n + 1 | K = int(input())
A,B = map(int,input().split())
n = 1
while True:
if A <= K*n and K*n <= B:
print('OK')
break
elif K*n > B:
print('NG')
break
n = n + 1 | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 31, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 48], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22]] | 5 | 67 |
K = int(input())
A, B = map(int, input().split())
for _ in range(1000):
if A%K==0:
print("OK")
break
A+=1
if A==B:
print("NG")
break | K = int(input())
A, B = map(int, input().split())
for _ in range(1000):
if A%K==0:
print("OK")
break
A+=1
if A==B+1:
print("NG")
break | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 61 |
K = int(input())
A, B = map(int, input().split())
input_list = list(range(A, B + 1))
flag = False
for i in input_list:
if i % K == 0:
flag = True
break
if flag:
print('ok')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
input_list = list(range(A, B + 1))
flag = False
for i in input_list:
if i % K == 0:
flag = True
if flag:
print('OK')
else:
print('NG') | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 73 |
K = int(input())
A, B = map(int, input().split())
input_list = list(range(A, B + 1))
flag = False
for i in input_list:
if i % K == 0:
flag = True
break
if flag:
print('ok')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
input_list = list(range(A, B + 1))
flag = False
for i in input_list:
if i % K == 0:
flag = True
break
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 | 73 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();
if (A % K == 0 || B % K == 0) {
System.out.println("OK");
}
int a = A ... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();
if (A % K == 0 || B % K == 0) {
System.out.println("OK");
return;
}
... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 3 | 138 |
k = int(input())
a,b = map(int,input().split())
i = n % k
if i == 0:
print('OK')
exit()
j = n - i
if a > j:
print('NG')
else:
print('OK') | k = int(input())
a,b = map(int,input().split())
i = b % k
if i == 0:
print('OK')
exit()
j = b - i
if a > j:
print('NG')
else:
print('OK') | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22]] | 5 | 67 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
#define all(x) x.begin(), x.end()
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N
int main() {
FIO;
int a, b, k;
cin >> k >> a >> b;
cout << ((b / k) - (a / k) > 0 ? "OK" : "N... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
#define all(x) x.begin(), x.end()
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N
int main() {
FIO;
int a, b, k;
cin >> k >> a >> b;
cout << ((b / k) - ((a - 1) / k) > 0 ? "OK... | [["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 25]] | 1 | 84 |
#include <iomanip>
#include <iostream>
using namespace std;
void Main() {
// input
int K;
int A, B;
cin >> K;
cin >> A >> B;
// translate
int num = 1;
while (num <= B) {
if (num >= A) {
cout << "OK" << endl;
return;
}
num += K;
}
cout << "NG" << endl;
// output
}
int ... |
#include <iomanip>
#include <iostream>
using namespace std;
void Main() {
// input
int K;
int A, B;
cin >> K;
cin >> A >> B;
// translate
int num = K;
while (num <= B) {
if (num >= A) {
cout << "OK" << endl;
return;
}
num += K;
}
cout << "NG" << endl;
// output
}
int ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22]] | 1 | 106 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
if (A / K == K / B) {
if (A % K == 0) {
System.out.println("OK");
} else {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
if (A / K == B / K) {
if (A % K == 0) {
System.out.println("OK");
} else {
... | [["-", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 22]] | 3 | 123 |
#include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
int k, a, b;
cin >> k >> a >> b;
for (int i... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
int k, a, b;
cin >> k >> a >> b;
for (int i... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22]] | 1 | 108 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 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 | 222 |
K=int(input())
A,B=map(int,input().split())
for i in range(1000):
if A<=i*K<=B:
print('OK')
exit()
else:
print('NG')
exit()
| K=int(input())
A,B=map(int,input().split())
for i in range(1000):
if A<=i*K and i*K<=B:
print('OK')
exit()
print('NG')
exit()
| [["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 48], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102]] | 5 | 61 |
a = int(input())
b,c = map(int,input().split())
for i in range(b,c):
if i % a == 0:
print('OK')
else:
print('NG') | a = int(input())
b,c = map(int,input().split())
for i in range(b,c+1):
if i % a == 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], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 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 | 55 |
k = int(input())
a, b = map(int, input().split())
if k == 1:
print('OK')
exit()
if k > b:
print('NO')
exit()
for i in range(a, b + 1):
if i % k == 0:
print('OK')
exit()
print('NO')
| k = int(input())
a, b = map(int, input().split())
if k == 1:
print('OK')
exit()
if k > b:
print('NG')
exit()
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 | 86 |
function main(input) {
const inputs = input.trim().split('\n')
const K = Number(inputs[0])
const [A, B] = inputs[1].split(' ').map(Number)
for (let i = A; i < B; i++) {
if (i % K === 0) {
console.log('OK')
return
}
}
console.log('NG')
}
main(require('fs').readFileSync('/dev/stdin', 'ut... | function main(input) {
const inputs = input.trim().split('\n')
const K = Number(inputs[0])
const [A, B] = inputs[1].split(' ').map(Number)
for (let i = A; i <= B; i++) {
if (i % K === 0) {
console.log('OK')
return
}
}
console.log('NG')
}
main(require('fs').readFileSync('/dev/stdin', 'u... | [["-", 8, 556, 0, 7, 15, 1, 0, 16, 17, 18], ["+", 8, 556, 0, 7, 15, 1, 0, 16, 17, 19]] | 2 | 118 |
k = int(input())
a, b = map(int,input().split())
bb = b//k
aa , i = divmod(a, k)
if (aa != bb) or ( i ==0):
print("OK")
else:
print("OK") | k = int(input())
a, b = map(int,input().split())
bb = b//k
aa , i = divmod(a, k)
if (aa != bb) or ( i ==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 | 66 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(a) (a).begin(), (a).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % k) {
cout << "OK" << endl... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(a) (a).begin(), (a).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % k == 0) {
cout << "OK" <<... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 103 |
package main
import "fmt"
func main() {
var k, a, b int
fmt.Scan(&k, &a, &b)
if a%k == 0 || b%k == 0 {
fmt.Println("OK")
return
}
if b-a >= k {
fmt.Println("OK")
return
}
fmt.Println("NG")
} | package main
import "fmt"
func main() {
var k, a, b int
fmt.Scan(&k, &a, &b)
if a%k == 0 || b%k == 0 {
fmt.Println("OK")
return
}
if b-a >= b%k {
fmt.Println("OK")
return
}
fmt.Println("NG")
} | [["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 109]] | 7 | 91 |
k = int(input())
a,b=input().split()
a = int(a)
b = int(b)
i=0
s = ""
while (a+i <= b):
if((a+i)%7==0):
s= "OK"
i += 1
if (s != "OK"):
s= "NG"
print(s) | k = int(input())
a,b=input().split()
a = int(a)
b = int(b)
i=0
s = ""
while (a+i <= b):
if((a+i)%k==0):
s= "OK"
i += 1
if (s != "OK"):
s= "NG"
print(s) | [["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22]] | 5 | 86 |
#include <bits/stdc++.h>
#define int long long int
#define gif(a, b) (a / b + (a % b ? 1 : 0))
using namespace std;
int32_t main() {
int t;
cin >> t;
int a, b;
cin >> a >> b;
if (a < t && b >= t) {
a += t;
b += t;
}
int rem = a % b;
a /= t;
a *= t;
if (rem)
a += t;
if (a <= b)
cou... | #include <bits/stdc++.h>
#define int long long int
#define gif(a, b) (a / b + (a % b ? 1 : 0))
using namespace std;
int32_t main() {
int t;
cin >> t;
int a, b;
cin >> a >> b;
if (a < t && b >= t) {
a += t;
b += t;
}
int rem = a % t;
a /= t;
a *= t;
if (rem)
a += t;
if (a <= b)
cou... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 106 |
k = gets.to_i
a, b = gets.split.map &:to_i
s = ((a + k - 1)/k*k <= b) ? :OK : :NG | k = gets.to_i
a, b = gets.split.map &:to_i
puts (((a + k - 1)/k*k <= b) ? :OK : :NG) | [["-", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 0, 738, 31, 738, 31, 738, 31, 739, 0, 24], ["+", 0, 493, 0, 652, 3, 4, 0, 739, 0, 25]] | 4 | 37 |
K = int(input())
A,B = map(int, input().split())
c = K//B
if c * K >= A:
print('OK')
else:
print('NG')
| K = int(input())
A,B = map(int, input().split())
c = B//K
if c * K >= A:
print('OK')
else:
print('NG')
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 50 |
#include <iostream>
using namespace std;
int main() {
int k;
int a, b;
cin >> k >> a >> b;
int x;
x == b / k *k;
if (x > a) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k;
int a, b;
cin >> k >> a >> b;
int x;
x = b / k * k;
if (x >= a) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int K;
int A, B;
cin >> K >> A >> B;
for (int i = A; i <= B; ++i) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int K;
int A, B;
cin >> K >> A >> B;
for (int i = A; i <= B; ++i) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 78 |
N=int(input())
A, B=map(int,input().split())
C=A//N
if C==A*N:
print("OK")
elif A<=(C+1)*N<=B:
print("OK")
else:
print("NG")
| N=int(input())
A, B=map(int,input().split())
C=A//N
if A==C*N:
print("OK")
elif A<=(C+1)*N<=B:
print("OK")
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22]] | 5 | 69 |
#include <iostream>
using namespace std;
int K, A, B;
int main() {
std::cin >> K;
std::cin >> A >> B;
if (A % K + B - A >= K || A == B || A % K == 0) {
std::cout << "OK";
} else {
std::cout << "NG";
}
} | #include <iostream>
using namespace std;
int K, A, B;
int main() {
std::cin >> K;
std::cin >> A >> B;
if (A % K + B - A >= K || A % K == 0) {
std::cout << "OK";
} else {
std::cout << "NG";
}
} | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 76 |
K=int(input())
A,B=map(int,input().split())
flag=False
for i in range(A,B+1,1):
if i%K==0:
flag=True
else:
continue
if flag==True:
print('OK')
else:
print('NO') | K=int(input())
A,B=map(int,input().split())
flag=False
for i in range(A,B+1):
if i%K==0:
flag=True
else:
continue
if flag==True:
print('OK')
else:
print('NG') | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
int largest;
largest = (B / K) * K;
if (largest > A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
int largest;
largest = (B / K) * K;
if (largest >= A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 68 |
def main(k, a, b):
for n in range(a, b + 1):
if k % n == 0:
return 'OK'
else:
return 'NG'
if __name__ == '__main__':
k = int(input())
a, b = map(int, input().split(' '))
print(main(k, a, b))
| def main(k, a, b):
for n in range(a, b + 1):
if n % k == 0:
return 'OK'
else:
return 'NG'
if __name__ == '__main__':
k = int(input())
a, b = map(int, input().split(' '))
print(main(k, a, b))
| [["-", 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 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#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... | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#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... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 174 |
k=int(input())
a, b = map(int, input().split())
import math
if b >= math.ceil(a/k):
print("OK")
else:
print("NG")
| import math
k=int(input())
a, b = map(int, input().split())
if b >= math.ceil(a/k)*k:
print("OK")
else:
print("NG")
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 52 |
K = int(input())
A, B = map(int, input().split())
ans = 'NG'
for i in range(A, B+1):
if i % K == 0:
print('OK')
break
print(ans) | K = int(input())
A, B = map(int, input().split())
ans = 'NG'
for i in range(A, B+1):
if i % K == 0:
print('OK')
break
else:
print(ans) | [["+", 36, 36, 0, 656, 0, 7, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 7, 75, 76, 0, 102]] | 5 | 59 |
#include "iostream"
using namespace std;
int main() {
int n;
cin >> n;
if (n == 1) {
cout << "YES" << endl;
exit(0);
}
int a, b;
cin >> a >> b;
for (int j = a; j <= b; j++) {
if (j % n == 0) {
cout << "OK" << endl;
exit(0);
}
}
cout << "NG" << endl;
}
| #include "iostream"
using namespace std;
int main() {
int n;
cin >> n;
if (n == 1) {
cout << "OK" << endl;
exit(0);
}
int a, b;
cin >> a >> b;
for (int j = a; j <= b; j++) {
if (j % n == 0) {
cout << "OK" << endl;
exit(0);
}
}
cout << "NG" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 100 |
n=int(input())
a,b=map(int,input().split())
flag=False
for i in range(1000):
ans=1+i
if(a<=ans and b>=ans):
if(ans%n==0):
flag=True
if(flag):
print("Ok")
else:
print("NG")
| n=int(input())
a,b=map(int,input().split())
flag=False
for i in range(1000):
ans=1+i
if(a<=ans and b>=ans):
if(ans%n==0):
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 | 82 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
const ll K_MAX = 1e5 + 5;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a... |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
const ll K_MAX = 1e5 + 5;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> a >> b >> k;
if (a % k == 0 || a % k > b % k || b - a + 1 >= 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 % k == 0 || a % k > b % k || b - a + 1 >= k) {
cout << "OK" << endl;
} else {
cout << "NG" << 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 | 72 |
#include <stdio.h>
int main() {
int k = 0, a = 0, b = 0;
int i = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
i = 1;
while (k <= a) {
if (a < k * i) {
break;
}
i++;
}
if (k * i <= b) {
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
} | #include <stdio.h>
int main() {
int k = 0, a = 0, b = 0;
int i = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
i = 1;
while (k <= a) {
if (a <= k * i) {
break;
}
i++;
}
// printf("%d",i);
if (k * i <= b) {
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 108 |
#include <iostream>
using namespace std;
int main() {
int k, a, b, check, ans = 0;
cin >> k >> a >> b;
check = b - a;
for (int i = 0; i < check; i++) {
if (a % k == 0) {
ans = 1;
break;
}
a++;
}
if (ans == 1)
cout << "OK\n";
else
cout << "NG\n";
} | #include <iostream>
using namespace std;
int main() {
int k, a, b, check, ans = 0;
cin >> k >> a >> b;
check = b - a;
for (int i = 0; i <= check; i++) {
if (a % k == 0) {
ans = 1;
break;
}
a++;
}
if (ans == 1)
cout << "OK\n";
else
cout << "NG\n";
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 95 |
K = int(input())
A, B = map(int, input().split())
flag = 1
for i in range(A, B+1):
if i % K == 0:
flag = 1
print("OK" if flag else "NG") | 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("OK" if flag else "NG") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 61 |
#-*-ccoding:utf-8-*-
k = int(input())
a, b = map(int, input().split())
is_ok = False
for i in range(a,b+1):
if i % k == 0:
is_ok = true
if is_ok:
print("OK")
else:
print("NG") | #-*-ccoding:utf-8-*-
k = int(input())
a, b = map(int, input().split())
is_ok = False
for i in range(a,b+1):
if i % k == 0:
is_ok = True
if is_ok:
print("OK")
else:
print("NG") | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 146]] | 5 | 67 |
k = int(input())
a, b = map(int, input().split())
ans = a % k
if ans == 0 or (a - ans + k) < b:
print("OK")
else:
print("NG")
| k = int(input())
a, b = map(int, input().split())
ans = a % k
if ans == 0 or (a - ans + k) <= b:
print("OK")
else:
print("NG")
| [["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 58 |
/* ----------------------- reclone_rk
* --------------------------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
#define FastRead \
ios::sync_with_stdio(0); ... | /* ----------------------- reclone_rk
* --------------------------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
#define FastRead \
ios::sync_with_stdio(0); ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 370 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
#define INF 1000000007
typedef long long ll;
using namespace std;
using Graph = vector<vector<int>>;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
#define INF 1000000007
typedef long long ll;
using namespace std;
using Graph = vector<vector<int>>;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 184 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <istream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <istream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 272 |
k = int(input())
a, b = [int(i) for i in input().split()]
flag = True
for i in range(a, b+1):
if i % k == 0:
print('OK')
flag = False
break
if flag:
print('No') | k = int(input())
a, b = [int(i) for i in input().split()]
flag = True
for i in range(a, b+1):
if i % k == 0:
print('OK')
flag = False
break
if flag:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
k=int(input())
l=list(map(int, input().split(' ')))
a=l[0]
b=l[1]
if (b-a)+1>=k:
print('OK')
else:
maybe=(a//k)*k
ans=False
while maybe<b:
if maybe>=a:
ans=True
break
else:
maybe+=k
if ans:
print('OK')
else:
print('NG')
| k=int(input())
l=list(map(int, input().split(' ')))
a=l[0]
b=l[1]
if (b-a)+1>=k:
print('OK')
else:
maybe=(a//k)*k
ans=False
while maybe<=b:
if maybe>=a:
ans=True
break
else:
maybe+=k
if ans:
print('OK')
else:
print('NG')
| [["-", 75, 76, 8, 196, 0, 52, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 52, 15, 666, 667, 19]] | 5 | 107 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool ok = false;
for (int i = k; i < 1000; i += k) {
if (i >= a && i <= b) {
ok = true;
break;
}
}
cout << (ok ? "OK" : "NO") << endl;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool ok = false;
for (int i = k; i <= 1000; i += k) {
if (i >= a && i <= b) {
ok = true;
break;
}
}
cout << (ok ? "OK" : "NG") << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
ty... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
ty... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 207 |
K = int(input())
A, B = map(int, input().split())
if A % K ==0 or B % K == 0:
print('OK')
elif ((B // K) - (A // K)) >=2:
print('OK')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
if A % K == 0 or B % K == 0:
print('OK')
elif ((B // K) - (A // K)) >=1:
print('OK')
else:
print('NG') | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 74 |
n=int(input())
flag=0
a,b=input().split()
a=int(a)
b=int(b)
for i in range(a,b):
if(i%n)==0:
flag=1
if(flag==1):
print("OK")
else:
print("NG") | n=int(input())
flag=0
a,b=input().split()
a=int(a)
b=int(b)
for i in range(a,b+1):
if(i%n)==0:
flag=1
if(flag==1):
print("OK")
else:
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 77 |
k = int(input())
a,b = map(int,input().split())
flg = False
for i in range(a,b):
if i % k != 0:
continue
print("OK")
flg = True
break
if not flg :
print("NG")
| k = int(input())
a,b = map(int,input().split())
flg = False
for i in range(a,b + 1):
if i % k != 0:
continue
print("OK")
flg = True
break
if not flg :
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 65 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <type_traits>
#include <utility>
#inclu... | #include <algorithm>
#include <array>
#include <bitset>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <type_traits>
#include <utility>
#inclu... | [["+", 0, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 0, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 183 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
long k, a, b, x = 0;
cin >> k >> a >> b;
for (long i = a; i <= b; i++) {
if (i % k != 0) {
cout << "NG" << endl;
x++;
break;
}
}
if (x == 0) {
cout << "OK" << endl;
}
}
| #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
long k, a, b, x = 0;
cin >> k >> a >> b;
for (long i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
x++;
break;
}
}
if (x == 0) {
cout << "NG" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 88 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int K, A, B;
cin >> K;
cin >> A, B;
for (int i = 1; i * K <= B; ++i) {
if (A <= K * i && K * i <= B) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
}
| #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int K, A, B;
cin >> K;
cin >> A >> B;
for (int i = 1; i * K <= B; ++i) {
if (A <= K * i && K * i <= B) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 85 |
K=int(input())
A,B=map(int,input().split())
a=0
for i in range(A,B+1):
if i%k==0:
a+=1
if a==1:
print("OK")
else:
print("NG") | K=int(input())
A,B=map(int,input().split())
a=0
for i in range(A,B+1):
if i%K==0:
a+=1
break
if a==1:
print("OK")
else:
print("NG") | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 68 |
k = int(input())
a, b = [int(i) for i in input().split()]
if b-a >= k-1:
print('OK')
elif a % k - b % k >= 0:
print('OK')
else:
print('NG')
| k = int(input())
a, b = [int(i) for i in input().split()]
if b-a >= k-1:
print('OK')
elif a % k - b % k > 0 or a % k == 0:
print('OK')
else:
print('NG')
| [["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354], ["+", 75, 665, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 75, 665, 15, 679, 12, 666, 0, 657, 17, 109], ["+", 75, 665, 15, 67... | 5 | 68 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int K, A, B;
Scanner sc = new Scanner(System.in);
K = sc.nextInt();
A = sc.nextInt();
B = sc.nextInt();
int temp = B % K;
if (temp * K > A)
System.out.println("NG");
else
System.out.prin... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int K, A, B;
Scanner sc = new Scanner(System.in);
K = sc.nextInt();
A = sc.nextInt();
B = sc.nextInt();
int temp = B / K;
if (temp * K >= A)
System.out.println("OK");
else
System.out.pri... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", ... | 3 | 104 |
k = int(input())
a, b = map(int, input().split())
ans = 'NG'
for i in range(a, b):
if ((i+1)%k == 0):
ans = 'OK'
if (k == 1):
ans = 'OK'
print(ans) | k = int(input())
a, b = map(int, input().split())
ans = 'NG'
for i in range(a, b+1):
if ((i)%k == 0):
ans = 'OK'
if (k == 1):
ans = 'OK'
print(ans) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 666, 0, 657, 31, 23, 0, 657, 17, 72], ["-", 0, 666, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 73 |
K = int(input())
A, B = map(int, input().split())
clear = []
for target in range (A,B):
if target % K == 0:
clear.append(target)
if not clear:
print("NG")
else:
print("OK") | K = int(input())
A, B = map(int, input().split())
clear = []
for target in range (A,B+1):
if target % K == 0:
clear.append(target)
if not clear:
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 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((b % k == 0) || (a % k == 0)) {
cout << "OK" << endl;
} else if (b % k - a % k >= 1) {
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;
if ((b % k == 0) || (a % k == 0)) {
cout << "OK" << endl;
} else if (b / k - a / k >= 1) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
return 0;
}
| [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 85], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 109], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 85]] | 1 | 92 |
k = gets.chomp.to_i
a, b = gets.chomp.split(" ").map(&:to_i)
n = (a / k).ceil
puts n * k >= a && n * k <= b ? "OK" : "NG"
| k = gets.chomp.to_i
a, b = gets.chomp.split(" ").map(&:to_i)
n = (a / k.to_f).ceil
puts n * k >= a && n * k <= b ? "OK" : "NG"
| [["+", 12, 652, 486, 739, 0, 738, 12, 652, 17, 131], ["+", 12, 652, 486, 739, 0, 738, 12, 652, 735, 22]] | 4 | 56 |
a=int(input())
b,c=map(int,input().split())
flag=False
for i in range(a,b+1):
if i%a==0:
flag=True
break
print("OK" if flag else "NG") | a=int(input())
b,c=map(int,input().split())
flag=False
for i in range(b,c+1):
if i%a==0:
flag=True
break
print("OK" if flag else "NG") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 62 |
K = int(input())
k = K
A,B = map(int, input().split())
for i in range(1, B+1):
k *= i
if k > A and k <= B:
print('OK')
a = True
break
else:
k = K
a = False
continue
if a != True:
print('NG') | K = int(input())
k = K
A,B = map(int, input().split())
for i in range(1, B+1):
k *= i
if k >= A and k <= B:
print('OK')
a = True
break
else:
k = K
a = False
continue
if a != True:
print('NG') | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 20]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int k, a, b;
cin >> k >> a >> b;
b = b / k * b;
if (a <= b)
cout << "OK" << endl;
else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int k, a, b;
cin >> k >> a >> b;
k = b / k * k;
if (a <= k)
cout << "OK" << endl;
else {
cout << "NG" << endl;
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int K, A, B;
bool ans = false;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (K % i == 0) {
ans = true;
break;
}
}
if (ans) {
cout << "OK" ... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int K, A, B;
bool ans = false;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
ans = true;
break;
}
}
if (ans) {
cout << "OK" ... | [["-", 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 | 99 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iostream> // cou... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iostream> // cou... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 229 |
k = int(input())
a, b = list(map(int, input().split()))
for i in range(a, b+1):
print(i)
if i % k == 0:
print('OK')
exit()
else:
print('NG') | k = int(input())
a, b = list(map(int, input().split()))
for i in range(a, b+1):
if i % k == 0:
print('OK')
exit()
else:
print('NG') | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 67 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repk(i, m, n) for (int i = m; i < n; i++)
#define IOS \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repk(i, m, n) for (int i = m; i < n; i++)
#define IOS \
ios::sync_with_stdio(false); ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 or b % k == 0)
cout << "OK" << endl;
else if (a / k == b / k)
cout << "NO" << endl;
else
cout << "OK" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 or b % k == 0)
cout << "OK" << endl;
else if (a / k == b / k)
cout << "NG" << endl;
else
cout << "OK" << endl;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 77 |
// include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#in... | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 895 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprev(i, n) for (int i = n - 1; i >= 0; i--)
using ll = long long;
using namespace std;
using P = pair<int, int>;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool ok = false;
rep(i, 1000) {
if (K * (i + 1) >= A && K * (i + 1)... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprev(i, n) for (int i = n - 1; i >= 0; i--)
using ll = long long;
using namespace std;
using P = pair<int, int>;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool ok = false;
rep(i, 1000) {
if (K * (i + 1) >= A && K * (i + 1)... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 120 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a / k - (b - 1) / k) {
cout << "OK";
} else {
cout << "NG";
}
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (b / k - (a - 1) / k) {
cout << "OK";
} else {
cout << "NG";
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22]] | 1 | 71 |
k=int(input())
n,m=map(int,input().split())
F=0
for i in range(n,m+1):
if i%7==0:
F=1
if F==1:
print('OK')
else:print('NG')
| k=int(input())
n,m=map(int,input().split())
f=0
for i in range(n,m+1):
if i%k==0:
f=1
if f==1:
print('OK')
else:print('NG')
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]... | 5 | 68 |
K=int(input())
A,B=(input().split())
A=int(A)
B=int(B)
s=range(A,B)
for n in range(1,1000):
if K*n in s:
print("OK")
break
if K==1:
print("OK")
break
else:
print("NG")
| K=int(input())
A,B=(input().split())
A=int(A)
B=int(B)
s=range(A,B+1)
for n in range(1,1000):
if K*n in s:
print("OK")
break
if K==1:
print("OK")
break
else:
print("NG")
| [["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 85 |
k = int(input())
a, b = map(int, input().split())
if a & k == 0 or b % k == 0:
print("OK")
elif a // k != b // k:
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
if a % k == 0 or b % k == 0:
print("OK")
elif a // k != b // k:
print("OK")
else:
print("NG")
| [["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 67], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 109]] | 5 | 66 |
K = int(input())
A,B = map(int,input().split())
flag=True
for i in range(A,B+1):
if K % i ==0:
print("OK")
flag=False
break
if flag:
print("NG") | K = int(input())
A,B = map(int,input().split())
flag=True
for i in range(A,B+1):
if i % K ==0:
print("OK")
flag=False
break
if flag:
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 | 65 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
const int INF = int(1e9) + int(1e5);
const ll INFL = ll(2e18) + ll(1e10);
const ui MOD = 1E9 + ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
const int INF = int(1e9) + int(1e5);
const ll INFL = ll(2e18) + ll(1e10);
const ui MOD = 1E9 + ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 378 |
k = int(input())
a,b = map(int, input().split())
aa = a % k
bb = b % k
if(b - a > k):
print('OK')
elif(aa > bb):
print('OK')
elif(aa == 0):
print('OK')
else:
print('NG')
| k = int(input())
a,b = map(int, input().split())
aa = a % k
bb = b % k
if(b - a >= k):
print('OK')
elif(aa > bb):
print('OK')
elif(aa == 0):
print('OK')
else:
print('NG')
| [["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 83 |
k = int(input())
a, b = map(int,input().split())
largest = (b / k) * k
if( a <= largest ):
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int,input().split())
largest = int(b / k) * k
if( a <= largest ):
print("OK")
else:
print("NG") | [["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22]] | 5 | 54 |
#include <iostream>
using namespace std;
int main() {
// 7
// 500 600
int i, j, k;
cin >> i;
cin >> j >> k;
if (k / i >= j) {
cout << "OK";
} else {
cout << "NG";
}
} | #include <iostream>
using namespace std;
int main() {
// 7
// 500 600
int i, j, k;
cin >> i;
cin >> j >> k;
if ((k / i) * i >= j) {
cout << "OK";
} else {
cout << "NG";
}
} | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]] | 1 | 56 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdint>
#include <iostream>
#include <iterator>
#include <vector>
// lib/util.hpp
#ifndef UTIL_HPP
#define UTIL_HPP
typedef ::std::int_fast64_t i64;
typedef ::std::uint_fast64_t u64;
typedef ::std::int_fast32_t i32;
typedef ::std::uint_fast32_t u32;
namespace ... | #include <algorithm>
#include <bits/stdc++.h>
#include <cstdint>
#include <iostream>
#include <iterator>
#include <vector>
// lib/util.hpp
#ifndef UTIL_HPP
#define UTIL_HPP
typedef ::std::int_fast64_t i64;
typedef ::std::uint_fast64_t u64;
typedef ::std::int_fast32_t i32;
typedef ::std::uint_fast32_t u32;
namespace ... | [["-", 12, 91, 28, 23, 0, 16, 12, 16, 17, 18], ["+", 12, 91, 28, 23, 0, 16, 12, 16, 17, 19]] | 1 | 341 |
#include <bits/stdc++.h>
#define pb emplace_back
#define inf (int)1e9
#define ff first
#define ss second
#define ll long long
#define sp(n) cout << setprecision(n) << fixed
#define hellcat ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define give(x) cout << #x << " " << x << endl
#define debug cout << "dddd" << '\n... | #include <bits/stdc++.h>
#define pb emplace_back
#define inf (int)1e9
#define ff first
#define ss second
#define ll long long
#define sp(n) cout << setprecision(n) << fixed
#define hellcat ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define give(x) cout << #x << " " << x << endl
#define debug cout << "dddd" << '\n... | [["-", 0, 7, 8, 9, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8, 9, 0, 57, 64, 116, 0, 117]] | 1 | 211 |
K = int(input())
A, B = map(int, input().split())
a = 0
for i in range(A, B+1):
if i%K == 0:
a+=1
else:
pass
if a != 0:
print("Yes")
else:
print("NG")
| K = int(input())
A, B = map(int, input().split())
a = 0
for i in range(A, B+1):
if i%K == 0:
a+=1
else:
pass
if a != 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 | 71 |
K=int(input())
A, B=map(int, input().split())
listAtoB=list(range(A,B))
k=list(filter(lambda x: x% K == 0,listAtoB))
if K==1 or len(k) >= 1:
print("OK")
else:
print("NG") | K=int(input())
A, B=map(int, input().split())
listAtoB=list(range(A,B+1))
k=list(filter(lambda x: x% K == 0,listAtoB))
if K==1 or len(k) >= 1:
print("OK")
else:
print("NG") | [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 79 |
K=int(input())
A, B=map(int, input().split())
k = int(B/K)-int(A/K)
if K == 1:
print("OK")
elif k >= 1:
print("OK")
else:
print("NG")
|
K=int(input())
A, B=map(int, input().split())
k = int(B/K) - int((A-1)/K)
if K == 1:
print("OK")
elif k >= 1:
print("OK")
else:
print("NG")
| [["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 25]] | 5 | 69 |
#include <stdio.h>
int main(void) {
int k;
int a, b;
scanf("%d\n%d%d", &k, &a, &b);
int i = (b / k) * k;
if (a <= k) {
printf("OK");
} else {
printf("NG");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int k;
int a, b;
scanf("%d\n%d%d", &k, &a, &b);
int i = (b / k) * k;
if (a <= i) {
printf("OK");
} else {
printf("NG");
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]] | 0 | 74 |
k = int(input())
a, b = map(int, input().split())
print('OK' if a<=b//k*k else 'NO') | k = int(input())
a, b = map(int, input().split())
print('OK' if a<=b//k*k else 'NG') | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 42 |
#include <algorithm>
#include <iostream>
#include <regex>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int k;
std::cin >> k;
int a, b;
std::cin >> a >> b;
bool ans(false);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
ans = true;
break;
}
}... | #include <algorithm>
#include <iostream>
#include <regex>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int k;
std::cin >> k;
int a, b;
std::cin >> a >> b;
bool ans(false);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
ans = true;
break;
}
}... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.