buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int x = (b / k) * k;
if (x > a)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int x = (b / k) * k;
if (x >= 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 | 65 |
from collections import defaultdict
import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')
def main():
k=ii()
a,b=mis()
x=b//k-a//k
print('OK' if x>0 else 'NG')
if __name__ == "__main__":
main() | from collections import defaultdict
import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')
def main():
k=ii()
a,b=mis()
x=b//k-(a-1)//k
print('OK' if x>0 else 'NG')
if __name__ == "__main__":
main() | [["+", 0, 662, 12, 657, 12, 657, 31, 23, 0, 24], ["+", 12, 657, 12, 657, 31, 23, 0, 657, 17, 33], ["+", 12, 657, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 662, 12, 657, 12, 657, 31, 23, 0, 25]] | 5 | 108 |
k = int(input())
a, b = map(int, input().split())
chk = False
for i in range(a+1, b+1):
if i%k == 0:
chk = True
break
else:
pass
if chk == True:
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
chk = False
for i in range(a, b+1):
if i%k == 0:
chk = True
break
else:
pass
if chk == True:
print('OK')
else:
print('NG') | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> a >> b >> k;
int A = a / k;
int B = b / k;
int aa = a % k;
if (A == B && aa != 0)
cout << "NG" << endl;
else
cout << "OK" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
int A = a / k;
int B = b / k;
int aa = a % k;
if (A == B && aa != 0)
cout << "NG" << endl;
else
cout << "OK" << 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 | 75 |
K = int(input())
A,B = map(int, input().split())
res = [i for i in range(A,B+1) if i%K==0]
if res == []:
print('NG')
else:
print('YES') | K = int(input())
A,B = map(int, input().split())
res = [i for i in range(A,B+1) if i%K==0]
if res == []:
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 | 66 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
... | [["-", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491]] | 3 | 147 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int K = Integer.parseInt(in.readLine());
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int K = Integer.parseInt(in.readLine());
... | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 106], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 98], ["-", 15, 15, 0, 16, 12, 16, 31, 16, 12, 499], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 12, 22]] | 3 | 182 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (((B - A) >= (K - 1)) || (A % K > B % K) || (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 - A) >= (K - 1)) || (A % K > B % K) || (A % K == 0)) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["+", 51, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 17, 109], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define in freopen("in.txt","r",stdin)
//#define out freopen("out.txt","w",stdout)
ll n, m, j, k, t, l, r;
ll a, b, c, d;
char A, B, C, X, Y, Z;
ll ans, MAX, MIN = 40, sum;
ll ax[1000000];
char str[100000];
ll dx[12];
ll bx[2000500];
int main() {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define in freopen("in.txt","r",stdin)
//#define out freopen("out.txt","w",stdout)
ll n, m, j, k, t, l, r;
ll a, b, c, d;
char A, B, C, X, Y, Z;
ll ans, MAX, MIN = 40, sum;
ll ax[1000000];
char str[100000];
ll dx[12];
ll bx[2000500];
int main() {
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 176 |
k = int(input())
a, b = map(int, input().split())
if a % k == 0 or b % k == 0:
print("OK")
else:
if b // k - a // k > 0:
print("OK")
else:
print("NO") | k = int(input())
a, b = map(int, input().split())
if a % k == 0 or b % k == 0:
print("OK")
else:
if b // k - a // k > 0:
print("OK")
else:
print("NG") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int k, a, b;
signed main() {
cin >> k >> a >> b;
cout << ((b / k - (a - 1) / k) >= 1 ? "YES" : "NG");
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
int k, a, b;
signed main() {
cin >> k >> a >> b;
cout << ((b / k - (a - 1) / k) >= 1 ? "OK" : "NG");
} | [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6]] | 1 | 58 |
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void Yes() { cout << "Yes\n"; }
void solve() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if ((i % k) == 0)
return Yes();
}
cout << "NG\n";
return;
};
};
int main() {
ios_base::sy... | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void Yes() { cout << "OK\n"; }
void solve() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if ((i % k) == 0)
return Yes();
}
cout << "NG\n";
return;
};
};
int main() {
ios_base::syn... | [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, K;
cin >> A >> B >> K;
if ((A % K == 0) || (B % K == 0)) {
cout << "OK" << endl;
return 0;
}
if (A / K < B / K) {
cout << "OK" << endl;
return 0;
}
cout << "NG" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, K;
cin >> K >> A >> B;
if ((A % K == 0) || (B % K == 0)) {
cout << "OK" << endl;
return 0;
}
if (A / K < B / K) {
cout << "OK" << endl;
return 0;
}
cout << "NG" << endl;
return 0;
}
| [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 92 |
#include <stdio.h>
int main(void) {
int k, a, b;
scanf("%d %d %d", &k, &a, &b);
for (int i = a; i < b; i++) {
if (i % k == 0) {
printf("OK");
return 0;
}
}
printf("NG");
return 0;
}
| #include <stdio.h>
int main(void) {
int k, a, b;
scanf("%d %d %d", &k, &a, &b);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
printf("OK");
return 0;
}
}
printf("NG");
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 78 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
int ak, bk;
ak = a / n;
bk = b / n;
if (ak != bk || b % n == 0)
cout << "OK" << endl;
else
cout << "NG" << en... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
int ak, bk;
ak = a / n;
bk = b / n;
if (ak != bk || a % n == 0)
cout << "OK" << endl;
else
cout << "NG" << en... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 88 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
ll k, a, b, ans = 0;
cin >> k >> a >> b;
if (b - a > k - 2 || b % k == 0 || b / k != a / k) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
ll k, a, b, ans = 0;
cin >> k >> a >> b;
if (b - a > k - 2 || a % k == 0 || b / k != a / k) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
} | [["-", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22]] | 1 | 89 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
int n, a, b, i = 0;
cin >> n >> a >> b;
while (a < i) {
i += n;
}
if (i > b)
cout << "NG" << endl;
else
cout << "OK" << endl;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
typedef long long ll;
using namespace std;
int main() {
int n, a, b, i = 0;
cin >> n >> a >> b;
while (a > i) {
i += n;
}
if (i > b)
cout << "NG" << endl;
else
cout << "OK" << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 81 |
#include <iostream>
using namespace std;
int main() {
int k;
int a, b;
cin >> k;
cin >> a >> b;
int i = 0;
while (i < a) {
i += k;
}
if (i > b) {
cout << "NG\n";
}
cout << "OK\n";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k;
int a, b;
cin >> k;
cin >> a >> b;
int i = 0;
while (i < a) {
i += k;
}
if (i > b) {
cout << "NG\n";
} else {
cout << "OK\n";
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, x;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
} else {
x += 1;
}
}
if (x == B - A + 1) {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, x;
x = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
break;
} else {
x += 1;
}
}
if (x == B - A + 1) {
cout << "NG" << endl;
}
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A % K == 0) {
cout << "OK" << endl;
} else if (K * (A / K + 1) <= B) {
cout << "OK" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (A % K == 0) {
cout << "OK" << endl;
} else if (K * (A / K + 1) <= B) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 81 |
#include "bits/stdc++.h"
#define EPS 1e-9
using namespace std;
const int N = 1e5, OO = 0x3f3f3f3f;
typedef long long ll;
int main() {
int a, b, k;
cin >> a >> b >> k;
for (int i = a; i <= b; i++)
if (i % k == 0)
return cout << "OK", 0;
cout << "NG";
} | #include "bits/stdc++.h"
#define EPS 1e-9
using namespace std;
const int N = 1e5, OO = 0x3f3f3f3f;
typedef long long ll;
int main() {
int a, b, k;
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k == 0)
return cout << "OK", 0;
cout << "NG";
} | [["+", 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 | 84 |
k =int(input())
a, b =map(int, input().split())
if a <= b/k*k:
print('OK')
else:
print('NG') | k =int(input())
a, b =map(int, input().split())
if a <= b//k*k:
print('OK')
else:
print('NG') | [["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 85], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 17, 676]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define VI vector<int>
#define MOD 1000000007
typedef long long int ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define VI vector<int>
#define MOD 1000000007
typedef long long int ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
... | [["-", 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 | 169 |
k = int(input())
a,b = map(int, input().split())
for i in range(a,b):
if i % k == 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')
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 57 |
import java.util.Scanner;
class Main {
static public void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean flag = false;
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
for (int i = A; i <= B; i++) {
if (i % K == 0) {
flag = true;
bre... | import java.util.Scanner;
class Main {
static public void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean flag = false;
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
for (int i = A; i <= B; i++) {
if (i % K == 0) {
flag = true;
bre... | [["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 132 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0)
cout << "OK";
return 0;
}
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
const int N = 2e5 + 5;
const ll mod = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
int k, a, b;
cin >> k >> a >> b;
for (int i = 1; i <= b; i++) {
if (i % k == 0 && i >= k) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
const int N = 2e5 + 5;
const ll mod = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0 && i >= k) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22]] | 1 | 122 |
def main():
K = int(input())
A, B = map(int, input().split())
wari = int(B/K)
if wari * K >= A:
print("OK")
else:
print("NO")
main() | def main():
K = int(input())
A, B = map(int, input().split())
#import math
#wari = math.floor(B/K)
wari = int(B / K)
if wari * K >= A:
print("OK")
else:
print("NG")
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 61 |
def main():
K = int(input())
A, B = map(int, input().split())
import math
wari = math.floor(B/K)
if wari * K >= A:
print("OK")
else:
print("NO")
main() | def main():
K = int(input())
A, B = map(int, input().split())
import math
wari = math.floor(B/K)
if wari * K >= A:
print("OK")
else:
print("NG")
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 65 |
k = int(input())
a, b = [int(i) for i in input().split()]
for i in range(a, b+1):
if i % k == 0:
print("OK")
else:
print("NG") | k = int(input())
a, b = [int(i) for i in input().split()]
for i in range(a, b+1):
if i % k == 0:
print("OK")
break
else:
print("NG") | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double dl;
typedef unsigned long long ull;
#define pb push_back
#define PB pop_back
#define nn "\n"
#define O_O \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double dl;
typedef unsigned long long ull;
#define pb push_back
#define PB pop_back
#define nn "\n"
#define O_O \
ios_base::sync_with_stdio(false); ... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 247 |
k = int(input())
a,b = map(int,input().split())
wk = (b//k)
if wk*k >=a:
print('Ok')
else:
print('NG') | k = int(input())
a,b = map(int,input().split())
wk = (b//k)
if wk*k >=a:
print('OK')
else:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 52 |
K = int(input())
A,B = map(int,input().split())
for i in range(A,B+1):
if i % 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')
quit()
else :
print('NG')
| [["+", 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 | 57 |
K = int(input())
A, B = [int(s) for s in input().split()]
largest = B // K * K
print("OK" if largest >= a else "NG") | K = int(input())
A, B = [int(s) for s in input().split()]
largest = B // K * K
print("OK" if largest >= A else "NG") | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 49 |
k = int(input())
a, b = map(int, input().split())
if k == 1:
print('OK')
else:
if a <= a//k * k <= b or a <= (a//k + 1) * k <= b:
print('NG')
else:
print('OK')
| k = int(input())
a, b = map(int, input().split())
if k == 1:
print('OK')
else:
if a <= a//k * k <= b or a <= (a//k + 1) * k <= b:
print('OK')
else:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, k;
cin >> a >> b >> k;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, k;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0;
}
}
cout << "NG\n";
}
| [["+", 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 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i < B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
} else {
continue;
}
}
cout << "NG" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
} else {
continue;
}
}
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 | 80 |
#include <bits/stdc++.h>
using namespace std;
#define N 200005
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T = 1;
cin >> T;
while (T--) {
int k;
int a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0;... | #include <bits/stdc++.h>
using namespace std;
#define N 200005
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T = 1;
// cin>>T;
while (T--) {
int k;
int a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK\n";
return 0... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
bool check = false;
for (int i = a; i <= b; i++) {
if (i % n == 0)
check = true;
}
check ? cout << "Yes" << endl : cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
bool check = false;
for (int i = a; i <= b; i++) {
if (i % n == 0)
check = true;
}
check ? cout << "OK" << endl : cout << "NG" << endl;
} | [["-", 0, 41, 64, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 41, 64, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 41, 75, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 41, 75, 16, 31, 16, 12, 5, 0, 6]] | 1 | 78 |
n = int(input())
m = list(map(int,input().split()))
sa = m[1] - m[0]
flag = 0
hantei = m[0]
if sa == 0:
if sa % n == 0:
print("OK")
exit()
else:
print("NG")
exit()
if hantei % n == 0:
flag += 1
for x in range(sa):
hantei = (x + 1) + m[0]
if hantei % n == 0:
... | n = int(input())
m = list(map(int,input().split()))
sa = m[1] - m[0]
flag = 0
hantei = m[0]
if sa == 0:
if m[0] % n == 0:
print("OK")
exit()
else:
print("NG")
exit()
if hantei % n == 0:
flag += 1
for x in range(sa):
hantei = (x + 1) + m[0]
if hantei % n == 0:
... | [["-", 64, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 666, 0, 657, 31, 206, 51, 22], ["+", 0, 57, 15, 666, 0, 657, 31, 206, 0, 70], ["+", 0, 57, 15, 666, 0, 657, 31, 206, 206, 612], ["+", 0, 57, 15, 666, 0, 657, 31, 206, 0, 73]] | 5 | 136 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int counter = A;
while (counter <= B) {
if (counter % K == 0) {
cout << "... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
int counter = A;
while (counter <= B) {
if (counter % K == 0) {
cout << "... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 88 |
k = int(input())
a, b = map(int, input().split())
necounter = 0
for i in range(a, b+1):
if i % k == 0:
break
else:
ngcounter += 1
if ngcounter == b - a + 1:
print("NG")
else :
print("OK")
| k = int(input())
a, b = map(int, input().split())
ngcounter = 0
for i in range(a, b+1):
if i % k == 0:
break
else:
ngcounter += 1
if ngcounter == b - a + 1:
print("NG")
else :
print("OK") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define ld long double
#define F first
#define S second
#define P pair<int, int>
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repA(i, a, n) for (int i = a; i <= (n); ++i)
#define repD(i, a, n) for (int i = a; i >= (n... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
#define ld long double
#define F first
#define S second
#define P pair<int, int>
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repA(i, a, n) for (int i = a; i <= (n); ++i)
#define repD(i, a, n) for (int i = a; i >= (n... | [["-", 0, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 186 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int AB = B / K * K;
if (AB > A) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int AB = B / K * K;
if (AB >= 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 | 63 |
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
)
func out(x ...interface{}) {
fmt.Println(x...)
}
var sc = bufio.NewScanner(os.Stdin)
func getInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text())
if e != nil {
log.Fatal(e)
}
return i
}
func getString() string {
sc.Scan()
return sc.Text()
}... | package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
)
func out(x ...interface{}) {
fmt.Println(x...)
}
var sc = bufio.NewScanner(os.Stdin)
func getInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text())
if e != nil {
log.Fatal(e)
}
return i
}
func getString() string {
sc.Scan()
return sc.Text()
}... | [["-", 0, 435, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 20]] | 7 | 223 |
//
// Created by watemus on 02.05.2020.
//
#ifdef LOCAL
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define ff first
#define ss second
using ll = long long;
using ld = long double;
#define int ll
constexpr ll INF... | //
// Created by watemus on 02.05.2020.
//
#ifdef LOCAL
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define ff first
#define ss second
using ll = long long;
using ld = long double;
#define int ll
constexpr ll INF... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 201 |
a=int(input())
b,c=map(int,input().split())
juge=0
for i in range(b,c+1):
if i%a==0:
juge=+1
break
else:
continue
print("Yes" if juge==1 else "NG") | a=int(input())
b,c=map(int,input().split())
juge=0
for i in range(b,c+1):
if i%a==0:
juge=+1
break
print("OK" if juge==1 else "NG")
| [["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["-", 0, 57, 75, 76, 8, 196, 0, 116, 0, 117], ["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 68 |
#include <bits/stdc++.h>
#define ll long long
#define db double
#define mod 1000000007
#define pb push_back
#define pp pair<ll, ll>
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repe(i, a, b) for (ll i = a; i <= b; i++)
#define repr(i, a, b) for (ll i = b; i >= a; i--)
#define maxn 200005
#define ss second
#d... | #include <bits/stdc++.h>
#define ll long long
#define db double
#define mod 1000000007
#define pb push_back
#define pp pair<ll, ll>
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repe(i, a, b) for (ll i = a; i <= b; i++)
#define repr(i, a, b) for (ll i = b; i >= a; i--)
#define maxn 200005
#define ss second
#d... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 176 |
target = int(input())
range_d = [int(i) for i in input().split()]
min_d = range_d[0]
max_d = range_d[1]
flag = False
if max_d < target:
print('NG')
else:
for i in range(min_d,max_d+1):
if i%target == 0:
flag = True
break
print('OK') if flag else print('NG') | target = int(input())
range_d = [int(i) for i in input().split()]
min_d = range_d[0]
max_d = range_d[1]
flag = False
if max_d < target:
print("NG")
else:
for i in range(min_d,max_d+1):
if i%target == 0:
flag = True
break
print('OK') if flag else print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 92 |
N = int(input())
sh, lg = map(int, input().split())
ans = 'NG'
for i in range(sh, lg+1):
if 7 % N == 0:
ans = 'OK'
break
print(ans) | N = int(input())
sh, lg = map(int, input().split())
ans = 'NG'
for i in range(sh, lg+1):
if i % N == 0:
ans = 'OK'
break
print(ans) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22]] | 5 | 58 |
k = int(input())
a, b = list(map(int, input().split()))
x = 0
f = False
while x < b:
if a <= x <= b:
f = True
break
else:
x += k
print('OK') if f else print('NG') | k = int(input())
a, b = list(map(int, input().split()))
x = 0
f = False
while x <= b:
if a <= x <= b:
f = True
break
else:
x += k
print('OK') if f else print('NG') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool judge = true;
for (int i = 0; i < 1000; i++) {
if (A <= i * K && i * K <= B) {
cout << "OK" << endl;
judge = false;
}
}
if (judge) {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool judge = true;
for (int i = 0; i < 1000; i++) {
if (A <= i * K && i * K <= B) {
cout << "OK" << endl;
judge = false;
break;
}
}
if (judge) {
cout << "NG" << endl;
}
}
| [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 90 |
k = int(input())
n = 0
a,b = map(int,input().split())
while True:
n += k
if n >= a and n >= b:
print("OK")
break
if n > b:
print("NG")
break | k = int(input())
n = 0
a,b = map(int,input().split())
while True:
n += k
if n >= a and n <= b:
print("OK")
break
if n > b:
print("NG")
break | [["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 61 |
S = int(input())
a = 0
count = 0
n,m = map(int,input().split())
while count == 0:
a += S
if n <= a and m >= a:
count = 1
if a >= 1000:
break
if count == 0:
print("No")
else:
print("Yes") | S = int(input())
a = 0
count = 0
n,m = map(int,input().split())
while count == 0:
a += S
if n <= a and m >= a:
count = 1
if a >= 1000:
break
if count == 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 | 75 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int count = 0;
int i = 0;
while (i * k <= b) {
if (i * k < a)
i++;
else {
count = 1;
break;
}
}
if (count == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int count = 0;
int i = 0;
while (i * k <= b) {
if (i * k < a)
i++;
else {
count = 1;
break;
}
}
if (count == 1)
cout << "OK" << endl;
else
cout << "NG" << endl;
} | [["-", 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 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((a - 1) / k != b / k)
cout << "OK";
else
cout << "NO";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((a - 1) / k != b / k)
cout << "OK";
else
cout << "NG";
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 54 |
// dhruv
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ffor(i, n) for (int i = 0; i < (n); ++i)
#define fro(i, j, n) for (int i = (j); i < (n); ++i)
#define all(v) v.begin(), v.end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vpii... | // dhruv
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ffor(i, n) for (int i = 0; i < (n); ++i)
#define fro(i, j, n) for (int i = (j); i < (n); ++i)
#define all(v) v.begin(), v.end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vpii... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 252 |
k=int(input())
a=list(map(int,input().split()))
b=k*(a[0]//k)
if b<=a[1]:
print('OK')
elif b+k<=a[1]:
print('OK')
else:
print('NG') | k=int(input())
a=list(map(int,input().split()))
b=k*(a[0]//k)
if b==a[0]:
print('OK')
elif b+k<=a[1]:
print('OK')
else:
print('NG') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define FORS(i, a, b, c) for (int i = a; i < b; i += c)
#define FORN(i, a, b) for (int i = a; i <= b; i++)
#define FORD(i, a, b) for (int i = a - 1; i >= b; i--)
#define FORE(i, b) for (auto &i : b)
#define REP(i, b) FOR(i, ... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define FORS(i, a, b, c) for (int i = a; i < b; i += c)
#define FORN(i, a, b) for (int i = a; i <= b; i++)
#define FORD(i, a, b) for (int i = a - 1; i >= b; i--)
#define FORE(i, b) for (auto &i : b)
#define REP(i, b) FOR(i, ... | [["-", 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 | 404 |
#include <algorithm>
#include <bitset>
#include <fstream>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
typedef pair<ll, P> T;
#... | #include <algorithm>
#include <bitset>
#include <fstream>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
typedef pair<ll, P> T;
#... | [["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]] | 1 | 638 |
#pragma region Macros
#include <bits/stdc++.h>
#define SORT(x) sort((x).begin(), (x).end())
#define RSORT(x) sort((x).rbegin(), (x).rend())
#define ALL(x) (x).begin(), (x).end()
#define REV(x) reverse(ALL(x))
#define rep(i, n) for (ll i = 0; i < n; i++)
#define reps(i, m, n) for (ll i = m; i < n; i++)
#define repr(i, m... | #pragma region Macros
#include <bits/stdc++.h>
#define SORT(x) sort((x).begin(), (x).end())
#define RSORT(x) sort((x).rbegin(), (x).rend())
#define ALL(x) (x).begin(), (x).end()
#define REV(x) reverse(ALL(x))
#define rep(i, n) for (ll i = 0; i < n; i++)
#define reps(i, m, n) for (ll i = m; i < n; i++)
#define repr(i, m... | [["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 674 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (a % k == 0 || a + k <= b) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (a % k == 0 || (a / k + 1) * k <= b) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["+", 51, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 48]] | 1 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
cout << (A / K != B / K ? "OK" : "NG") << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
cout << (A <= B / K * K ? "OK" : "NG") << endl;
} | [["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 85], ["-", 12, 23, 0, 41, 15, 16, 31, 16, 12, 22], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 79], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["+", 0, 41, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 48]] | 1 | 49 |
K=int(input())
A,B=map(int,input().split())
for i in range(1001):
s=i*K
if A<=s and s<=B:
print("OK")
break
if 1000<s:
print("No")
break | K=int(input())
A,B=map(int,input().split())
for i in range(1001):
s=i*K
if A<=s and s<=B:
print("OK")
break
if 1000<s:
print("NG")
break | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
bool answer = false;
for (int i = A; i < B; i++) {
if (i % K == 0) {
answer = true;
}
}
if (answer) {
cout << "OK" << endl;
return 0;
} else {
cout << "NG" << endl;
return 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
bool answer = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
answer = true;
}
}
if (answer) {
cout << "OK" << endl;
return 0;
} else {
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 | 95 |
K = int(input())
A, B = list(map(int, input().split()))
ans = 'No'
for i in range(A, B+1):
if not i % K:
ans = 'Yes'
break
print(ans) | K = int(input())
A, B = list(map(int, input().split()))
ans = 'NG'
for i in range(A, B+1):
if not i % K:
ans = 'OK'
break
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 60 |
k = int(input())
a, b = map(int, input().split())
ans = 'NO'
for i in range(a, b+1):
if i % k == 0:
ans = '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:
ans = 'OK'
break
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int j = A; j <= B; j++) {
if (j % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K, A, B;
cin >> K >> A >> B;
for (int j = A; j <= B; j++) {
if (j % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 81 |
#include <bits/stdc++.h>
#include <stdlib.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k != 0) {
cout << "OK" << endl;
exit(0);
}
}
cout << "NG" << endl;
} | #include <bits/stdc++.h>
#include <stdlib.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
exit(0);
}
}
cout << "NG" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 76 |
k = int(input())
a,b = map(int,input().split())
lis = list(range(a,b))
if all(j % k != 0 for j in lis):
print('NG')
else:
print('OK')
| k = int(input())
a,b = map(int,input().split())
lis = (range(a,b+1))
if all(j % k != 0 for j in lis):
print('NG')
else:
print('OK') | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 12, 23, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 12, 23, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 63 |
//-----------------------------B-I-G------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define fast \
ios_base::sync_with_stdio(false); ... | //-----------------------------B-I-G------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define fast \
ios_base::sync_with_stdio(false); ... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 127 |
K = int(input())
A , B = [int(x) for x in input().split()]
if A >= K:
tmp = A // K
if A % K == 0 or B <= ( tmp + 1 ) * K:
print('OK')
else:
print('NG')
else:
if B // K > 0:
print('OK')
else:
print('NG')
| K = int(input())
A , B = [int(x) for x in input().split()]
if A >= K:
tmp = A // K
if A % K == 0 or B >= ( tmp + 1 ) * K:
print('OK')
else:
print('NG')
else:
if B // K > 0:
print('OK')
else:
print('NG')
| [["-", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 20]] | 5 | 92 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
boolean ok = false;
if (a % k == 0) {
ok = true;
}
for (int i = a; i < b; i++) {
if (i %... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
boolean ok = false;
if (a % k == 0) {
ok = true;
}
for (int i = a; i <= b; i++) {
if (i ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 144 |
K=int(input())
A,B=map(int,input().split())
x=K
i=1
flg=False
while x<=B:
if A<=x:flg=True;break
i+=1
x=K*i
if flg:print("Yes")
else: print("No") | K=int(input())
A,B=map(int,input().split())
x=K
i=1
flg=False
while x<=B:
if A<=x:flg=True;break
i+=1
x=K*i
if flg: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 |
K = int(input())
A, B = [int(i) for i in input().split()]
if B // K - A // K >= 1:
print("OK")
else:
print("NG")
| K = int(input())
A, B = [int(i) for i in input().split()]
if B // K * K >= A:
print("OK")
else:
print("NG")
| [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 33], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 31, 22], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 17, 676], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 53 |
k=int(input())
l=list(map(int,input().split()))
x=l[0]//k
if(x*k==l[0] or x*(k+1)<=l[1]):
print("OK")
else:
print("NG") | k=int(input())
l=list(map(int,input().split()))
x=l[0]//k
if(x*k==l[0] or k*(x+1)<=l[1]):
print("OK")
else:
print("NG") | [["-", 15, 23, 0, 679, 12, 666, 0, 657, 31, 22], ["+", 15, 23, 0, 679, 12, 666, 0, 657, 31, 22], ["-", 12, 666, 0, 657, 12, 23, 0, 657, 31, 22], ["+", 12, 666, 0, 657, 12, 23, 0, 657, 31, 22]] | 5 | 72 |
k= int(input(). strip())
a, b = map(int,input().split())
if k == 1:
print('OK')
exit( )
else:
pass
num = a
for num in range(a,b):
if num % k != 0:
num += 1
else:
print('OK')
break
else:
print('NG') | k= int(input(). strip())
a, b = map(int,input().split())
if k == 1:
print('OK')
exit( )
else:
pass
num = a
for num in range(a,b+1):
if num % k != 0:
num += 1
else:
print('OK')
break
else:
print('NG')
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 85 |
k = int(input())
a, b = map(int, input().split())
if a <= (b / k) * k: print('OK')
else: print('NG')
| k = int(input())
a, b = map(int, input().split())
if a <= int(b / k) * k: print('OK')
else: print('NG')
| [["+", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22]] | 5 | 49 |
K = int(input())
a,b=map(int,input().split())
if b//K-a//K>0:
ans ='OK'
elif K==1:
ans = 'OK'
elif a==b and a%K==0:
ans = 'OK'
else:
ans = 'NG'
print(ans)
| K = int(input())
a,b=map(int,input().split())
if b//K-a//K>0:
ans ='OK'
elif K==1:
ans = 'OK'
elif a%K==0:
ans = 'OK'
else:
ans = 'NG'
print(ans)
| [["-", 0, 57, 75, 665, 15, 679, 31, 666, 667, 60], ["-", 0, 57, 75, 665, 15, 679, 31, 666, 0, 22], ["-", 0, 656, 0, 57, 75, 665, 15, 679, 17, 355], ["-", 75, 665, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
int f = 0;
for (int i = k; i <= b; i++) {
if (i % k == 0) {
f = 1;
break;
}
}
if (f == 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;
int f = 0;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
f = 1;
break;
}
}
if (f == 1) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
#define NewNode (ListNode *)malloc(sizeof(ListNode))
#define Mem(a, b) memset(a, b, sizeof(a))
const int N = 4e5 + 5;
const int INF = 0x3f3f3f3f;
const double EPS = 1e-10;
const unsigned long long mod = 998244353;
const double II = 3.1415926535;
typedef long long ll;
typede... | #include <bits/stdc++.h>
using namespace std;
#define NewNode (ListNode *)malloc(sizeof(ListNode))
#define Mem(a, b) memset(a, b, sizeof(a))
const int N = 4e5 + 5;
const int INF = 0x3f3f3f3f;
const double EPS = 1e-10;
const unsigned long long mod = 998244353;
const double II = 3.1415926535;
typedef long long ll;
typede... | [["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 188 |
#include <iostream>
using namespace std;
signed main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i < B + 1; i++) {
if (B < K) {
cout << "NO" << endl;
return 0;
}
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| #include <iostream>
using namespace std;
signed main() {
int K, A, B;
cin >> K >> A >> B;
for (int i = A; i < B + 1; i++) {
if (B < K) {
cout << "NG" << endl;
return 0;
}
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K;
cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
#define ll long long
#define umap unordered_map
using graph = vector<vector<int>>;
using graph2 = vector<vector<pair<int, int>>>;
ll mod(ll x, ll y) {
if (x >= 0 |... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
#define ll long long
#define umap unordered_map
using graph = vector<vector<int>>;
using graph2 = vector<vector<pair<int, int>>>;
ll mod(ll x, ll y) {
if (x >= 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 | 312 |
import sys
input = sys.stdin.readline
def main():
k = int(input())
a, b = map(int, input().split())
largest = (b / k) * k
if a <= largest:
print('OK')
else:
print('NG')
if __name__ == '__main__':
main()
| import sys
input = sys.stdin.readline
def main():
k = int(input())
a, b = map(int, input().split())
largest = (b // k) * k
if a <= largest:
print('OK')
else:
print('NG')
if __name__ == '__main__':
main()
| [["-", 0, 662, 12, 657, 31, 23, 0, 657, 17, 85], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 676]] | 5 | 76 |
K = int(input())
A, B = map(int, input().split())
i = B - A
for i in range(A, B + 1):
if i % K == 0:
c = 1
if c == 1:
print('OK')
else:
print('NG') | K = int(input())
A, B = map(int, input().split())
i = B - A
c = 0
for i in range(A, B + 1):
if i % K == 0:
c = 1
if c == 1:
print('OK')
else:
print('NG') | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 70 |
k = gets.to_i
a, b = gets.strip.split.map(&:to_i)
puts (a..b).all?{|v|v%k==0} ? 'OK' : 'NG'
| k = gets.to_i
a, b = gets.strip.split.map(&:to_i)
puts (a..b).any?{|v|v%k==0} ? 'OK' : 'NG'
| [["-", 0, 652, 3, 4, 0, 754, 15, 652, 735, 22], ["+", 0, 652, 3, 4, 0, 754, 15, 652, 735, 22]] | 4 | 46 |
k=int(input())
a,b=list(map(int,input().split()))
for i in range(a,b+1):
if i%k==0:
print("OK")
break
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()
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 |
k=int(input())
a,b=map(int,input().split())
flag=1
for x in range(a,b+1):
if x%k==0:
flag=0
print('OK')
break
if not flag:
print('NG')
| k=int(input())
a,b=map(int,input().split())
flag=1
for x in range(a,b+1):
if x%k==0:
flag=0
print('OK')
break
if flag:
print('NG')
| [["-", 36, 36, 0, 656, 0, 57, 15, 681, 0, 372]] | 5 | 66 |
//競技プログラミング用のテンプレート
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
using namespace std;
using ll = lon... | //競技プログラミング用のテンプレート
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
using namespace std;
using ll = lon... | [["+", 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 | 162 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
for (int i = a; i == b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 77 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORR(i, a, b) for (l... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORR(i, a, b) for (l... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 399 |
K=int(input())
A,B=map(int,input().split())
ans="NG"
for i in range(1001):
if A<=i*K and i*K<=B:
ans="YES"
break
print(ans) | K=int(input())
A,B=map(int,input().split())
ans="NG"
for i in range(1001):
if A<=i*K and i*K<=B:
ans="OK"
break
print(ans) | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 60 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int t = 0;
while (a <= c) {
if (t >= b && a <= c) {
cout << "OK" << endl;
return 0;
}
t += a;
}
cout << "NG" << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int t = 0;
while (t <= c) {
if (t >= b && t <= c) {
cout << "OK" << endl;
return 0;
}
t += a;
}
cout << "NG" << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int k, a, b, i, c = 0;
cin >> k >> a >> b;
for (i = a; i <= b; i++) {
if (i % b == 0) {
c++;
}
}
if (c == 0) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b, i, c = 0;
cin >> k >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
c++;
}
}
if (c == 0) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 91 |
#include <stdio.h>
int main() {
int a;
int b, c;
int d;
scanf("%d", &a);
scanf("%d %d", &a, &b);
for (d = b; d <= c; d++)
if (d % a == 0) {
printf("OK");
exit(0);
}
printf("NG");
} | #include <stdio.h>
int main() {
int a;
int b, c;
int d;
scanf("%d", &a);
scanf("%d %d", &b, &c);
for (d = b; d <= c; d++)
if (d % a == 0) {
printf("OK");
exit(0);
}
printf("NG");
} | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]] | 0 | 84 |
k =int(input())
a, b = map(int, input().split())
for i in range(a, b):
if (i%k == 0):
break
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")
break
else:
print("NG") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 58 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
const ld eps = 1e-7;
#define eq(x, y) (fabs((x) - ... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
const ld eps = 1e-7;
#define eq(x, y) (fabs((x) - ... | [["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 24], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 25]] | 1 | 167 |
#include <iostream>
using namespace std;
int main() {
int k, tmp, a, b;
cin >> k;
cin >> a >> b;
tmp = k;
while (tmp < b) {
if (a <= tmp && tmp <= b) {
cout << "OK" << endl;
return 0;
} else {
tmp += k;
}
}
cout << "NG" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k, tmp, a, b;
cin >> k;
cin >> a >> b;
tmp = k;
while (tmp <= b) {
if (a <= tmp && tmp <= b) {
cout << "OK" << endl;
return 0;
} else {
tmp += k;
}
}
cout << "NG" << endl;
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
cin >> c >> a >> b;
int ans = b / c - (a - 1) / c;
if (ans)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
cin >> c >> a >> b;
int ans = b / c - (a - 1) / c;
if (ans)
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 | 66 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.