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 <stdio.h>
#include <stdlib.h>
int main(void) {
int k, a, b, ans = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
ans = 1;
break;
}
}
if (ans = 1)
printf("OK");
else
printf("NG");
return 0;
} | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int k, a, b, ans = 0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for (int i = a; i <= b; i++) {
if (i % k == 0) {
ans = 1;
break;
}
}
if (ans == 1)
printf("OK");
else
printf("NG");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]] | 0 | 101 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define PI 3.14159265359
int main() {
int K, a, b;
cin >> K;
cin >> a >> b;
for (int i = a; i <= b; ++i) {
if (i % K == 0) {
cout << "YES" << endl;
break;
}
if (i == b) {
cout << "NG" << endl;
}
}
return 0... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define PI 3.14159265359
int main() {
int K, a, b, i;
cin >> K;
cin >> a >> b;
for (i = a; i <= b; ++i) {
if (i % K == 0) {
cout << "OK" << endl;
break;
} else if (i == b) {
cout << "NG" << endl;
}
}
return 0;... | [["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 92 |
import sys
input = sys.stdin.readline
def main():
K = int(input())
A, B = map(int, input().split())
OK = False
for i in range(A,B+1):
if i%K == 0:
print("OK")
OK = True
if OK == False:
print("NG")
if __name__ == '__main__':
main() | import sys
input = sys.stdin.readline
def main():
K = int(input())
A, B = map(int, input().split())
OK = False
for i in range(A,B+1):
if i%K == 0:
print("OK")
OK = True
break
if OK == False:
print("NG")
if __name__ == '__main__':
main() | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 90 |
a=int(input())
b=list(map(int,input().split()))
ans="No"
for i in range(b[0],b[1]+1):
if i%a==0:
ans="Yes"
print(ans) | a=int(input())
b=list(map(int,input().split()))
ans="NG"
for i in range(b[0],b[1]+1):
if i%a==0:
ans="OK"
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 | 64 |
#include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long LL;
const int maxm = 3e5 + 35;
const int maxn = 2e3 + 23;
int main() {
int a, b, k;
cin >> a >> b >> k;
for (int i = a; i... | #include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long LL;
const int maxm = 3e5 + 35;
const int maxn = 2e3 + 23;
int main() {
int a, b, k;
cin >> k >> a >> b;
for (int i = a; i... | [["+", 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 | 113 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n); i++)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = min(a, b)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace std;
using ll = long ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n); i++)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = min(a, b)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace std;
using ll = long ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 152 |
#include "bits/stdc++.h"
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (b / k - a / k > 0 || b % k == 0)
cout << "OK";
else
cout << "NG";
}
| #include "bits/stdc++.h"
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
if (b / k - a / k > 0 || a % k == 0)
cout << "OK";
else
cout << "NG";
}
| [["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 62 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
int main() {
int a, b, c;
cin >> c >> a >> b;
i... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
int main() {
int a, b, c;
cin >> c >> a >> b;
i... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 118 |
k = int(input())
a, b = map(int, input().split())
for i in range(a, b+1, 1):
print(i)
if i % k == 0:
print('OK')
exit()
print('NG') | k = int(input())
a, b = map(int, input().split())
for i in range(a, b+1, 1):
if i % k == 0:
print('OK')
exit()
print('NG') | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 64 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define fast ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define mod 1000000007
#define PI 3.1415926535897932384626433
#define se second
#define fi first
#define pb push_back
#define... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define fast ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define mod 1000000007
#define PI 3.1415926535897932384626433
#define se second
#define fi first
#define pb push_back
#define... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 221 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int k;
int a, b;
cin >> k;
cin >> a >> b;
bool flag = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = true;
break;
}
}
if (flag) {
cout << "OK" << endl;
} else {
cout << "NO" << endl;
}
r... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k;
int a, b;
cin >> k;
cin >> a >> b;
bool flag = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
flag = true;
break;
}
}
if (flag) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
r... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <stdio.h>
int main() {
int k, a, b, i, j = 0;
scanf("%d\n", &k);
scanf("%d %d", &a, &b);
for (i = a; i <= b; i++) {
// printf("%d",i%k);
if (i % k == 0) {
j = 1;
}
j = 0;
}
if (j == 1) {
printf("OK");
}
if (j == 0) {
printf("NG");
}
} | #include <stdio.h>
int main() {
int k, a, b, i, j = 0;
scanf("%d\n", &k);
scanf("%d %d", &a, &b);
for (i = a; i <= b; i++) {
// printf("%d",i%k);
if (i % k == 0)
j = 1;
}
if (j == 1) {
printf("OK");
}
if (j == 0) {
printf("NG");
}
} | [["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13]] | 0 | 109 |
k = int(input())
a = list(map(int, input().split()))
if a[0]%k == 0:
ans=("OK")
else:
ans=("OK" if k*((a[0]/k)+1) <= a[1] else "NG")
print(ans) | k = int(input())
a = list(map(int, input().split()))
if a[0]%k == 0:
ans=("OK")
else:
ans=("OK" if k*((a[0]//k)+1) <= a[1] else "NG")
print(ans) | [["-", 12, 23, 0, 657, 31, 23, 0, 657, 17, 85], ["+", 12, 23, 0, 657, 31, 23, 0, 657, 17, 676]] | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K, A, B;
cin >> K >> A >> B;
int b = A / K;
if (A % K == 0)
cout << "OK" << endl;
else if (b * (K + 1) <= B)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K, A, B;
cin >> K >> A >> B;
int b = A / K;
if (A % K == 0)
cout << "OK" << endl;
else if ((b + 1) * K <= B)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 89 |
import math
K = int(input())
A,B = map(int, input().split())
under = math.ceil(A/K)
if(under<= B):
print("OK")
else:
print("NG")
| import math
K = int(input())
A,B = map(int, input().split())
under = K*math.ceil(A/K)
if(under<= B):
print("OK")
else:
print("NG")
| [["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48]] | 5 | 57 |
import sys
k = int(input())
a, b = list(map(int, input().split()))
if a == b:
if a%k == 0:
print('OK')
else:
print('NG')
sys.exit()
for i in range(a,b):
if i%k == 0:
print('OK')
sys.exit()
print('NG') | import sys
k = int(input())
a, b = list(map(int, input().split()))
if a == b:
if a%k == 0:
print('OK')
else:
print('NG')
sys.exit()
for i in range(a,b+1):
if i%k == 0:
print('OK')
sys.exit()
print('NG') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool can = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
can = true;
}
break;
}
if (can) {
cout << "OK" << endl;
} else {
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 = A; i <= B; i++) {
if (i % K == 0) {
can = true;
break;
}
}
if (can) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 89 |
k=int(input())
a,b=map(int,input().split())
c=0
for i in range(a,b+1):
if(i%2==0):
c=1
break
if(c==1):
print("OK")
else:
print("NG")
| k=int(input())
a,b=map(int,input().split())
c=0
for i in range(a,b+1):
if(i%k==0):
c=1
break
if(c==1):
print("OK")
else:
print("NG")
| [["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22]] | 5 | 73 |
<?php
$K = (int)fgets(STDIN);
list($A, $B) = explode(' ', fgets(STDIN));
$A = (int)$A;
$B = (int)$B;
$ans = floor($A/$K);
if ($A <= $ans * $K && $ans * $K <= $B) {
echo 'OK';
} else {
echo 'NG';
} | <?php
$K = (int)fgets(STDIN);
list($A, $B) = explode(' ', fgets(STDIN));
$A = (int)$A;
$B = (int)$B;
$ans = ceil($A/$K);
if ($A <= $ans * $K && $ans * $K <= $B) {
echo 'OK';
} else {
echo 'NG';
} | [["-", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141]] | 6 | 98 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | [["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]] | 1 | 111 |
k = int(input())
a, b = map(int, input().split())
flag = False
for i in range(a,b):
if i % k == 0:
print("OK")
flag = True
break
if flag == False:
print("NG") | k = int(input())
a, b = map(int, input().split())
flag = False
for i in range(a,b+1):
if i % k == 0:
print("OK")
flag = True
break
if flag == False:
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 65 |
function Main(_input) {
input = _input.split("¥n");
var str_K = input[0];
var arr_secondLine = input[1].split(" ");
var num_K = parseInt(str_K);
var num_A = parseInt(arr_secondLine[0]);
var num_B = parseInt(arr_secondLine[1]);
var result = false;
for (var i = num_A; i <= num_B; i++) {
if (i % num_K... |
function Main(_input) {
input = _input.split("\n");
var str_K = input[0];
var arr_secondLine = input[1].split(" ");
var num_K = parseInt(str_K);
var num_A = parseInt(arr_secondLine[0]);
var num_B = parseInt(arr_secondLine[1]);
var result = false;
for (var i = num_A; i <= num_B; i++) {
if (i % num_K... | [["-", 0, 11, 12, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 11, 12, 2, 3, 3, 0, 557, 0, 44]] | 2 | 145 |
#include <algorithm>
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
int k, A, B;
cin >> k >> A >> B;
bool flag = B - A > k - 1;
bool flag2 = B % k < A % k;
bool flag3 = !(A % k) && !(B % k);
if (flag || flag2 || flag3)
cout << "OK" << endl;
else
cout << "... | #include <algorithm>
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
int k, A, B;
cin >> k >> A >> B;
bool flag = B - A > k - 1;
bool flag2 = B % k < A % k;
bool flag3 = !(A % k) || !(B % k);
if (flag || flag2 || flag3)
cout << "OK" << endl;
else
cout << "... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 98], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 106]] | 1 | 100 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int k, a, b;
cin >> k >> a >> b;
for (int i = 0; (i * k) <= b; i++) {
if (a <= (i * k) && (i * k) <= b) {
cout << "OK" << endl;
return 0;
}
}
cout << "NO" ... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int k, a, b;
cin >> k >> a >> b;
for (int i = 0; (i * k) <= b; i++) {
if (a <= (i * k) && (i * k) <= b) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
k = int(input())
a, b = map(int, input().split())
ans = 0
if a == b:
if a%k == 0:
ans += 1
else:
ans += 0
else:
for i in range(a,b):
if i%k == 0:
ans += 1
else:
ans += 0
if ans >= 1:
print("OK")
else:
print("NG") | k = int(input())
a, b = map(int, input().split())
ans = 0
if a == b:
if a%k == 0:
ans += 1
else:
ans += 0
else:
for i in range(a,b + 1):
if i%k == 0:
ans += 1
else:
ans += 0
if ans >= 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 | 93 |
K = int(input())
A,B = map(int,input().split())
a="NG"
for i in range(A,B):
if i%K==0:
a="OK"
break
print(a) | K = int(input())
A,B = map(int,input().split())
a="NG"
for i in range(A,B+1):
if i%K==0:
a="OK"
break
print(a) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a >> b;
int A, B;
A = a / k;
B = a / k;
if (a % k == 0 || b % k == 0) {
cout << "OK" << endl;
} else if (A < 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;
int A, B;
A = a / k;
B = b / k;
if (a % k == 0 || b % k == 0) {
cout << "OK" << endl;
} else if (A < B) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
int n, a, b;
cin >> n >> a >> b;
for (int i = a; i < b; i++)
if (i % n == 0) {
cout << "OK" << endl;
return 0;
}
cout << "NG" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
int n, a, b;
cin >> n >> a >> b;
for (int i = a; i <= b; i++)
if (i % n == 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 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool a = false;
for (int i = 0; i < B - A; i++) {
if ((i + A) % K == 0) {
a = true;
}
}
if (a == true) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
bool a = false;
for (int i = 0; i <= B - A; i++) {
if ((i + A) % K == 0) {
a = true;
break;
}
}
if (a == true) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
int m = b / k;
if (m >= a) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
int m = b / k;
if (m * k >= a) {
cout << "OK" << endl;
} else
cout << "NG" << endl;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 62 |
k = int(input())
a,b = map(int, input().split())
n=k
while k < a:
k += n
print(k)
if k <=b:
print("OK")
else:
print("NG") | k = int(input())
a,b = map(int, input().split())
n=k
while k < a:
k += n
if k <=b:
print("OK")
else:
print("NG")
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k, ans = 0, i;
cin >> k;
cin >> a;
cin >> b;
for (i = 1; i * k < b; i++) {
if (i * k > a)
ans = 1;
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k, ans = 0, i;
cin >> k;
cin >> a;
cin >> b;
for (i = 1; i * k <= b; i++) {
if (i * k >= a)
ans = 1;
}
if (ans == 1) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll a, b, k;
cin >> a >> b >> k;
for (ll i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
// Alhamdulilla..
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll a, b, k;
cin >> k >> a >> b;
for (ll i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
// Alhamdulilla..
| [["+", 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(void) {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i < b + 1; i++) {
if (i % 7 == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k, a, b;
cin >> k >> a >> b;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 71 |
k=int(input())
a,b=map(int,input().split())
n=1
while k*n<=b:
n+=1
print('OK' if 100<=(n-1)*k<=120 else 'NG') | k=int(input())
a,b=map(int,input().split())
n=1
while k*n<=b:
n+=1
print('OK' if a<=(n-1)*k<=b else 'NG') | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 59 |
k=int(input())
a,b=map(int,input().split())
if k==1:
print("OK")
elif a%k==0:
print("OK")
elif k*(a//k+1)<=b:
print("OK")
else:
print("NO") | k=int(input())
a,b=map(int,input().split())
if k==1:
print("OK")
elif a%k==0:
print("OK")
elif k*(a//k+1)<=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 | 75 |
//#include <math.h>
#include <bits/stdc++.h>
#include <stdio.h>
//#include <string.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
bool x = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
x = !x;
break;
}
}
if (x)
cout << "OK" << endl;
else
co... | //#include <math.h>
#include <bits/stdc++.h>
#include <stdio.h>
//#include <string.h>
using namespace std;
int main(void) {
int K, A, B;
cin >> K >> A >> B;
bool x = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
x = true;
break;
}
}
if (x)
cout << "OK" << endl;
else
... | [["-", 64, 9, 0, 1, 0, 11, 12, 91, 17, 111], ["-", 64, 9, 0, 1, 0, 11, 12, 91, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 146], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 94 |
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
long int t, a, b;
cin >> t >> a >> b;
long int sum = 0;
for (int i = a; i <= b; i++) {
if (a % t == 0) {
sum++;
break;
}
}
(sum == 0 ? cout << "NG\n" : cout << "OK\n");
} | #include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
long int t, a, b;
cin >> t;
cin >> a >> b;
long int sum = 0;
for (int i = a; i <= b; i++) {
if (i % t == 0) {
sum++;
break;
}
}
(sum == 0 ? cout << "NG\n" : cout << "OK\n");
} | [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, k, n) for (int i = k; i < (int)(n); i++)
int main() {
int a, b, k;
cin >> k;
cin >> a >> b;
bool ans = false;
rep(i, 2000) {
int l = k * (i + 1);
if (l <= b && l >= a) {
ans = tru... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, k, n) for (int i = k; i < (int)(n); i++)
int main() {
int a, b, k;
cin >> k;
cin >> a >> b;
bool ans = false;
rep(i, 2000) {
int l = k * (i + 1);
if (l <= b && l >= a) {
ans = tru... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ... | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
int flag = 0;
cin >> k >> a >> b;
for (int i = 1; i <= 1000; i++) {
int temp = i * k;
if (temp >= a && temp <= b) {
cout << "OK" << endl;
flag = 1;
break;
}
if (flag == 0)
cout << "NG" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
int flag = 0;
cin >> k >> a >> b;
for (int i = 1; i <= 1000; i++) {
int temp = i * k;
if (temp >= a && temp <= b) {
cout << "OK" << endl;
flag = 1;
break;
}
}
if (flag == 0)
cout << "NG" << endl;
} | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int N = 1e5;
typedef long long ll;
int main() {
int a, b, k;
cin >> k >> a >> b;
int x = k;
while (k <= a)
k += x;
if (k <= b)
printf("OK");
else
printf("NG");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int N = 1e5;
typedef long long ll;
int main() {
int a, b, k;
cin >> k >> a >> b;
int x = k;
while (k < a)
k += x;
if (k <= b)
printf("OK");
else
printf("NG");
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 83 |
k = int(input())
a,b = (int(x) for x in input().split())
ki = k
f=0
while ki < b:
if ki >=a and ki <=b:
print("OK")
f=1
break
ki += k
if f == 0:
print("NG") | k = int(input())
a,b = (int(x) for x in input().split())
ki = k
f=0
while ki <= b:
if ki >= a and ki <= b:
print("OK")
f=1
break
ki += k
if f == 0:
print("NG") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19]] | 5 | 72 |
def main():
K = int(input())
A, B = list(map(int, input().split(' ')))
for num in range(A,B+1):
if num % K == 0:
print('OK')
break
print('NG')
if __name__ == '__main__':
main()
| def main():
K = int(input())
A, B = list(map(int, input().split(' ')))
for num in range(A,B+1):
if num % K == 0:
print('OK')
return
print('NG')
if __name__ == '__main__':
main()
| [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t K, A, B;
cin >> K >> A >> B;
if (K == 1) {
cout << "OK" << endl;
} else if ((A - 1) / K != (B - 1) / K) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t K, A, B;
cin >> K >> A >> B;
if (K == 1) {
cout << "OK" << endl;
} else if ((A - 1) / K != B / K) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 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 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int K;
int A, B;
cin >> K;
cin >> A >> B;
for (int i = A; i < B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int K;
int A, B;
cin >> K;
cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 79 |
import sys
K = int(input())
A,B = map(int, input().split())
if A == B and A % K == 0:
print("OK")
sys.exit()
for i in range(A-1,B+1):
if i % K == 0:
print("OK")
sys.exit()
print("NG") | import sys
K = int(input())
A,B = map(int, input().split())
if A == B and A % K == 0:
print("OK")
sys.exit()
for i in range(A,B+1):
if i % K == 0:
print("OK")
sys.exit()
print("NG") | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 86 |
k = int(input())
a,b = map(int,input().split())
if a == b and a % k == 0:
print("OK")
elif b// k - a // k > 0:
print("OK")
else:
print("NG")
| k = int(input())
a,b = map(int,input().split())
if a == b and a % k == 0:
print("OK")
elif b// k - (a-1) // k > 0:
print("OK")
else:
print("NG")
| [["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 24], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 25]] | 5 | 66 |
#include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int i = 1;
while (1) {
if (A <= i * K && i * K <= B) {
cout << "OK" << endl;
break;
}
if (i * K > B) {
cout << "NO" << endl;
break;
}
i++;
}
}
| #include <iostream>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
int i = 1;
while (1) {
if (A <= i * K && i * K <= B) {
cout << "OK" << endl;
break;
}
if (i * K > B) {
cout << "NG" << endl;
break;
}
i++;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 87 |
K=int(input())
A,B=list(map(int,input().split()))
n=int(A/K)
m=int(B/K)
if K==1:
print("OK")
elif A/K-n==0.0 or B/K-m==0.0:
print("OK")
elif n-m>=1:
print("OK")
else:
print("NG") | K=int(input())
A,B=list(map(int,input().split()))
n=int(A/K)
m=int(B/K)
if K==1:
print("OK")
elif A/K-n==0.0 or B/K-m==0.0:
print("OK")
elif m-n>=1:
print("OK")
else:
print("NG") | [["-", 0, 57, 75, 665, 15, 666, 0, 657, 31, 22], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 33], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 33], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22]] | 5 | 98 |
k = int(input())
a, b = map(int, input().split())
flag = 0
for i in range(1000):
if (a <= k * (i+1)) and (b >= k * (i+1)):
print("OK")
flag = 1
break
if flag != 1:
print("NO") | k = int(input())
a, b = map(int, input().split())
flag = 0
for i in range(1000):
if (a <= k * (i+1)) and (b >= k * (i+1)):
print("OK")
flag = 1
break
if flag != 1:
print("NG") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B - A >= K)
cout << "OK" << endl;
else {
string ans = "NG";
for (int i = A; i <= B; i++) {
if (i % K == 0)
ans = "OK";
break;
}
cout << ans << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
cin >> K >> A >> B;
if (B - A >= K)
cout << "OK" << endl;
else {
string ans = "NG";
for (int i = A; i <= B; i++) {
if (i % K == 0) {
ans = "OK";
break;
}
}
cout << ans << endl;
}
} | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, K, c;
cin >> K >> A >> B;
for (int i = 1; i < B / K; i++) {
c = K * i;
if ((c >= A) && (c <= B)) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, K, c;
cin >> K >> A >> B;
for (int i = 1; i < (B / K) + 1; i++) {
c = K * i;
if ((c >= A) && (c <= B)) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
} | [["+", 0, 7, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
#define vl vector<ll>
#define vpl vector<pair<ll, ll>>
#define vvl vector<vector<ll>> // a(縦行,vector<ll>(横列));
#include <algorithm> //__gcd(a,b)
int main() {
ll k, a, b;
... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
#define vl vector<ll>
#define vpl vector<pair<ll, ll>>
#define vvl vector<vector<ll>> // a(縦行,vector<ll>(横列));
#include <algorithm> //__gcd(a,b)
int main() {
ll k, a, b;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 121 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((a % k == 0) && (b % k == 0)) {
cout << "OK";
} else if ((a / k + 1) * k <= b) {
cout << "OK";
} else {
cout << "NG";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
if ((a % k == 0) || (b % k == 0)) {
cout << "OK";
} else if ((a / k + 1) * k <= b) {
cout << "OK";
} else {
cout << "NG";
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 88 |
package main
import "fmt"
func main() {
var k, a, b int
fmt.Scan(&k, &a, &b)
for i := a; i <= b; i++ {
if i%k == 0 {
fmt.Println("OK")
return
}
}
fmt.Println("NO")
}
| package main
import "fmt"
func main() {
var k, a, b int
fmt.Scan(&k, &a, &b)
for i := a; i <= b; i++ {
if i%k == 0 {
fmt.Println("OK")
return
}
}
fmt.Println("NG")
}
| [] | 7 | 80 |
"""
ジャンボ高橋君はゴルフの練習をすることにしました。
ジャンボ高橋君の目標は飛距離をKの倍数にすることですが、ジャンボ高橋君の出せる飛距離の範囲はA以上B以下です。
目標の達成が可能であれば OK と、不可能であれば NG と出力してください。
"""
k = int(input())
a, b = map(int, input().split())
checkF = False
for i in range(a +1, b):
if i % k == 0:
checkF = True
print('OK' if checkF else 'NG')
| """
ジャンボ高橋君はゴルフの練習をすることにしました。
ジャンボ高橋君の目標は飛距離をKの倍数にすることですが、ジャンボ高橋君の出せる飛距離の範囲はA以上B以下です。
目標の達成が可能であれば OK と、不可能であれば NG と出力してください。
"""
k = int(input())
a, b = map(int, input().split())
checkF = False
for i in range(a, b+1):
if i % k == 0:
checkF = True
print('OK' if checkF else 'NG')
| [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 64 |
k=int(input())
a,b=map(int,input().split())
c=b//k
if a<c*k:
print("OK")
else:
print("NG") | k=int(input())
a,b=map(int,input().split())
c=b//k
if a<=c*k:
print("OK")
else:
print("NG") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 50 |
K=int(input())
AB=input().split()
A=int(AB[0])
B=int(AB[1])
for i in range(A,B+1):
i=567
if(i%K==0):
print('OK')
exit()
print('NG')
| K=int(input())
AB=input().split()
A=int(AB[0])
B=int(AB[1])
for i in range(A,B+1):
if(i%K==0):
print('OK')
exit()
print('NG') | [["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 74 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for (; a <= b + 1; a++) {
if (a % k == 0) {
System.out.println("Yes");
break;
} else ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for (; a <= b + 1; a++) {
if (a % k == 0) {
System.out.println("OK");
break;
} else i... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 121 |
#include <iostream>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = 1;; i++) {
if ((k * i) >= a && (k * i) <= b) {
cout << "Ok" << endl;
break;
} else if ((k * i) > b) {
cout << "Ng" << endl;
break;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k;
cin >> k;
int a, b;
cin >> a >> b;
for (int i = 1;; i++) {
if ((k * i) >= a && (k * i) <= b) {
cout << "OK" << endl;
break;
} else if ((k * i) > b) {
cout << "NG" << endl;
break;
}
}
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool test = false;
for (int i = a; i < b; i++) {
if (i % k == 0)
test = true;
}
if (test)
cout << "OK";
else
cout << "NG";
} | #include <iostream>
using namespace std;
int main() {
int k, a, b;
cin >> k >> a >> b;
bool test = false;
for (int i = a; i <= b; i++) {
if (i % k == 0)
test = true;
}
if (test)
cout << "OK";
else
cout << "NG";
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, flag = 0;
cin >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
flag = 1;
break;
}
}
if (flag != 1) {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B, flag = 0;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
cout << "OK" << endl;
flag = 1;
break;
}
}
if (flag != 1) {
cout << "NG" << endl;
}
}
| [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152]] | 1 | 85 |
import sys
import os
def file_input():
f = open('../Beginner_Contest_165/input.txt', 'r')
sys.stdin = f
def main():
#file_input()
K=int(input())
A,B=map(int, input().split())
ok=0
if K == 1:
print('OK')
elif B-A > K:
print('OK')
else:
for i in range(A,B):
... | import sys
import os
def file_input():
f = open('../Beginner_Contest_165/input.txt', 'r')
sys.stdin = f
def main():
#file_input()
K=int(input())
A,B=map(int, input().split())
ok=0
if K == 1:
print('OK')
elif B-A > K:
print('OK')
else:
for i in range(A,B+1):... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 133 |
a = int(input())
b,c =map(int,input().split())
for i in range(c-b):
test = b + i
if test % a == 0:
print("OK")
exit()
print("NG") | a = int(input())
b,c =map(int,input().split())
for i in range(c-b+1):
test = b + i
if test % 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]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | #include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 198 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a;
cin >> b;
// cout << "k " << k << " a " << a << " b " << b << endl;
int start = a / k;
int end = b / k + 1;
for (int i = start; i <= end; i++) {
if (((i * k) >= a) && ((i * k) <= b)) {
cout << "ok" << e... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, a, b;
cin >> k;
cin >> a;
cin >> b;
// cout << "k " << k << " a " << a << " b " << b << endl;
int start = a / k;
int end = b / k + 1;
for (int i = start; i <= end; i++) {
if (((i * k) >= a) && ((i * k) <= b)) {
cout << "OK" << e... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
bool a = false;
cin >> K >> A >> B;
for (int i = A; i >= B; i++) {
if (i % K == 0) {
a = true;
break;
}
}
if (a == true) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, A, B;
bool a = false;
cin >> K >> A >> B;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
a = true;
break;
}
}
if (a == true) {
cout << "OK" << endl;
} else {
cout << "NG" << endl;
}
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 91 |
k = int(input())
a, b = map(int, input().split())
flag = False
for i in range(a, b + 1):
if (i % k == 0):
falg = True
if falg:
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
flag = False
for i in range(a, b + 1):
if i % k == 0:
flag = True
if flag:
print('OK')
else:
print('NG') | [["-", 0, 7, 8, 196, 0, 57, 15, 23, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 23, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 15, 22]] | 5 | 68 |
#include <bits/stdc++.h>
#define REP(type, i, a, b) for (type i = a; i <= b; i++)
using namespace std;
int main() {
int k, a, b, s;
cin >> k >> a >> b;
for (int i = a / k; i * k <= b; i += k) {
if (i * k >= a && i * k <= b) {
printf("OK");
return 0;
}
}
printf("NG");
} | #include <bits/stdc++.h>
#define REP(type, i, a, b) for (type i = a; i <= b; i++)
using namespace std;
int main() {
int k, a, b, s;
cin >> k >> a >> b;
for (int i = a / k; i * k <= b; i++) {
if (i * k >= a && i * k <= b) {
printf("OK");
return 0;
}
}
printf("NG");
}
| [["-", 0, 14, 8, 9, 0, 7, 26, 11, 17, 107], ["-", 0, 14, 8, 9, 0, 7, 26, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29]] | 1 | 95 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
int main(void) {
long long n;
long long i, j, k;
long long res;
long long a, b;
cin >> k;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" <... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
int main(void) {
long long n;
long long i, j, k;
long long res;
long long a, b;
cin >> k;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK" <... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
K = int(input())
A,B = map(int,input().split())
L = list(range(A,B))
n = sum(i%K == 0 for i in L)
if n == 0:
print("NG")
else:print("OK")
| K = int(input())
A,B = map(int,input().split())
L = list(range(A,B+1))
n = sum(i%K == 0 for i in L)
if n == 0:
print("NG")
else:print("OK")
| [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 68 |
a=int(input())
b = list(map(int,input().split()))
check =0
c=a
for i in range(1001):
if a>=b[0] and a<b[1]:
check = 1
print('OK')
break
a=a+c
if check==0:
print('NG') | a=int(input())
b = list(map(int,input().split()))
check =0
c=a
for i in range(1001):
if a>=b[0] and a<=b[1]:
check = 1
print('OK')
break
a=a+c
if check==0:
print('NG') | [["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 80 |
import sys
K = int(input())
A, B = map(int, input().split())
#print(K)
#print(A)
#print(B)
for num in range(A, B):
print(num)
if num % K == 0:
print("OK")
sys.exit()
print("NG")
| import sys
K = int(input())
A, B = map(int, input().split())
#print(K)
#print(A)
#print(B)
for num in range(A, B+1):
#print(num)
if num % K == 0:
print("OK")
sys.exit()
print("NG")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 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>
using namespace std;
#define ll long long
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = 1; i < (b / k) + 1; i++) {
if (a <= i * k && i * k <= b) {
cout << "OK" << endl;
break;
}
if (i == b / k) {
cout << "NG" << endl;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int k, a, b;
cin >> k >> a >> b;
for (int i = 0; i < (b / k) + 1; i++) {
if (a <= i * k && i * k <= b) {
cout << "OK" << endl;
break;
}
if (i == b / k) {
cout << "NG" << endl;
}
}
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 96 |
k = int(input())
a,b = map(int, input().split())
if k <= b:
if (a//k+1)*k <= b or (a//k)*k <= b:
print('OK')
else:
print('NG')
else:
print('NG') | k = int(input())
a,b = map(int, input().split())
if k <= b:
if a <= (a//k+1)*k <= b or a <= (a//k)*k <= b:
print('OK')
else:
print('NG')
else:
print('NG') | [["+", 64, 196, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 74 |
k = int(input())
a, b = [int(x) for x in input().split()]
ans = ""
for x in range(a, b+1):
if x % k == 0:
print(x)
ans = "OK"
break
if ans == "OK":
print("OK")
else:
print("NG") | k = int(input())
a, b = [int(x) for x in input().split()]
ans = ""
for x in range(a, b+1):
if x % k == 0:
ans = "OK"
break
if ans == "OK":
print("OK")
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, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 82 |
#include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d\n", &K);
scanf("%d %d", &A, &B);
if (B - A >= K) {
printf("OK");
return 0;
}
if (A / K == B / K - 1) {
printf("OK");
} else
printf("NG");
return 0;
} | #include <stdio.h>
int main(void) {
int K, A, B;
scanf("%d\n", &K);
scanf("%d %d", &A, &B);
if (B - A >= K) {
printf("OK");
return 0;
}
if ((A - 1) / K == B / K - 1) {
printf("OK");
} else
printf("NG");
return 0;
}
| [["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 25]] | 0 | 92 |
#A - We Love Golf
K = int(input())
A,B = map(int, input().split())
if B-A == 0:
if A%K==0:
print("OK")
exit()
else:
print("NG")
else:
pass
for i in range(A,B+1):
if i % K == 0:
print("OK")
exit()
else:
pass
print("NG") | #A - We Love Golf
K = int(input())
A,B = map(int, input().split())
if B-A == 0:
if A%K==0:
print("OK")
exit()
else:
print("NG")
exit()
else:
pass
for i in range(A,B+1):
if i % K == 0:
print("OK")
exit()
else:
pass
print("NG") | [["+", 75, 76, 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, 25]] | 5 | 96 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
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;
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
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;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 90 |
k = int(input())
a,b = map(int,input().split())
for i in range(1,b):
if a <= k*i <= b:
print('OK')
exit()
print('NG') | k = int(input())
a,b = map(int,input().split())
for i in range(1,b+1):
if a <= k*i <= b:
print('OK')
exit()
print('NG') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 58 |
package main
import "fmt"
func main() {
var A, B, K int
fmt.Scanf("%d", &K)
fmt.Scanf("%d %d", &A, &B)
c := 0
for i := A; i <= B; i++ {
if i%K == 0 {
c = 1
fmt.Println("OK")
break
}
}
if c == 1 {
fmt.Println("NG")
}
} | package main
import "fmt"
func main() {
var A, B, K int
fmt.Scanf("%d", &K)
fmt.Scanf("%d %d", &A, &B)
c := 0
for i := A; i <= B; i++ {
if i%K == 0 {
c = 1
fmt.Println("OK")
break
}
}
if c == 0 {
fmt.Println("NG")
}
} | [["-", 0, 435, 8, 196, 0, 57, 15, 16, 12, 433], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 12, 433]] | 7 | 107 |
k = int(input())
a,b = map(int,input().split())
d = a//k
e = b//k
if d!=e or a == b:
print('OK')
else:
print('NG') | k = int(input())
a,b = map(int,input().split())
d = a//k
e = b//k
if d!=e or a%k == 0:
print('OK')
else:
print('NG') | [["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 109], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 57 |
k=int(input())
a,b=map(int, input().split())
t=b-a
while k<a:
k+=k
if k<=b:
print('OK')
else:
print('NG')
| k=int(input())
a,b=map(int, input().split())
t=0
while t<a:
t+=k
if t<=b:
print('OK')
else:
print('NG')
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 36, 36, 0, 656, 0, 52, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22],... | 5 | 56 |
K = list(map(int,input().split()))[0]
A,B = list(map(int,input().split()))
def is_ok(k, a, b):
for i in range(a, b+1):
if i % k == 0:
return True
return False
print(is_ok(K, A, B)) | K = list(map(int,input().split()))[0]
A,B = list(map(int,input().split()))
def is_ok(k, a, b):
for i in range(a, b+1):
if i % k == 0:
return True
return False
print('OK' if is_ok(K, A, B) else 'NG') | [["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 655], ["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 121], ["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 95]] | 5 | 83 |
#include <iostream>
using namespace std;
int main() {
int k, a, b, i, f = 0;
cin >> k;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (k % i == 0) {
f = 1;
break;
}
}
if (f == 1)
cout << "OK";
else
cout << "NG";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k, a, b, i, f = 0;
cin >> k;
cin >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
f = 1;
break;
}
}
if (f == 1)
cout << "OK";
else
cout << "NG";
return 0;
}
| [["-", 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 | 88 |
#include <algorithm>
#include <iostream>
#include <string>
int main() {
int K, A, B;
std::cin >> K;
std::cin >> A >> B;
bool flag = false;
for (int i = A; i < B; i++) {
if (i % K == 0) {
flag = true;
}
}
if (flag) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << std... | #include <algorithm>
#include <iostream>
#include <string>
int main() {
int K, A, B;
std::cin >> K;
std::cin >> A >> B;
bool flag = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
flag = true;
}
}
if (flag) {
std::cout << "OK" << std::endl;
} else {
std::cout << "NG" << st... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 101 |
X = int(input())
Y, Z = map(int, input().split())
a = Y%X
if a != 0 and Z >= Y-a+X:
print('OK')
elif a == 0:
print('OK')
else:
print('No')
| X = int(input())
Y, Z = map(int, input().split())
a = Y%X
if a != 0 and Z >= Y-a+X:
print('OK')
elif 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 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
bool f = true;
if (a != b) {
for (int i = a; i < b + 1; i++) {
if (i % n == 0) {
cout << "OK" << endl;
bool f = false;
break;
}
}
if (f) {
cout << "NG" << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
bool f = true;
if (a != b) {
for (int i = a; i < b + 1; i++) {
if (i % n == 0) {
cout << "OK" << endl;
f = false;
break;
}
}
if (f) {
cout << "NG" << endl;
}
... | [["-", 8, 9, 0, 57, 64, 9, 0, 43, 39, 40]] | 1 | 129 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
boolean f = false;
for (int i = A; i < B; i++) {
if (i % K == 0) {
f = true;
break;
}
... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
boolean f = false;
for (int i = A; i <= B; i++) {
if (i % K == 0) {
f = true;
break;
}
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 127 |
K=int(input())
A,B=(int(x) for x in input().split())
a=A%K
b=K-a
c=A+b
if a!=0:
if c >= B:
print('NG')
else:
print('OK')
else:
print('OK')
| K=int(input())
A,B=(int(x) for x in input().split())
a=A%K
b=K-a
c=A+b
if a!=0:
if c > B:
print('NG')
else:
print('OK')
else:
print('OK') | [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47]] | 5 | 75 |
#include <complex>
#include <iostream>
using namespace std;
int main() {
int k, a, b, i;
cin >> k >> a >> b;
for (i = a; i <= b; i++)
if (i % k == 0) {
cout << "OK";
return 0;
} else
cout << "NG";
return 0;
} | #include <complex>
#include <iostream>
using namespace std;
int main() {
int k, a, b, i;
cin >> k >> a >> b;
for (i = a; i <= b; i++) {
if (i % k == 0) {
cout << "OK";
return 0;
}
}
cout << "NG";
return 0;
} | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 8, 9, 0, 7, 8, 57, 75, 76, 0, 95], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 73 |
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, a... | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, a... | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72]] | 5 | 238 |
import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): #intのlist
return list(map(int,input().split()))
def m(): #複数文字
return map(int,input().split())
def onem(): #Nとかの取得
return int(input())
def s(x): #圧縮
a = []
if l... | import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): #intのlist
return list(map(int,input().split()))
def m(): #複数文字
return map(int,input().split())
def onem(): #Nとかの取得
return int(input())
def s(x): #圧縮
a = []
if l... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 337 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, p, a, b;
scanf("%d", &p);
scanf("%d %d", &a, &b);
for (int i = a; i <= b; i++)
if (a % p == 0) {
printf("OK");
return 0;
}
printf("NG");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, p, a, b;
scanf("%d", &p);
scanf("%d %d", &a, &b);
for (int i = a; i <= b; i++)
if (i % p == 0) {
printf("OK");
return 0;
}
printf("NG");
} | [["-", 8, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 8, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
// A
int main() {
int K, A, B;
cin >> K >> A >> B;
if ((A / K) == 0) {
cout << "OK" << endl;
} else if ((B / K) == 0) {
cout << "OK" << endl;
}
else if ((A / K) == (B / K)) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
// A
int main() {
int K, A, B;
cin >> K >> A >> B;
if ((A % K) == 0) {
cout << "OK" << endl;
} else if ((B % K) == 0) {
cout << "OK" << endl;
}
else if ((A / K) == (B / K)) {
cout << "NG" << endl;
} else {
cout << "OK" << endl;
}
}
| [["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 85], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 109]] | 1 | 105 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
#define Mod 1000000007
int main() {
ll a, b, c;
cin >> a >> b >> c;
for (ll i = b; i <= c; ++i) {
if (i % a == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define Mod 1000000007
int main() {
ll a, b, c;
cin >> a >> b >> c;
for (ll i = b; i <= c; ++i) {
if (i % a == 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 |
k = int(input())
a, b = map(int, input().split())
if a%k == 0 or b%k == 0 or (b/k) - (a/k) >= 1:
print('OK')
else:
print('NG') | k = int(input())
a, b = map(int, input().split())
if a%k == 0 or b%k == 0 or (b//k) - (a//k) >= 1:
print('OK')
else:
print('NG') | [["-", 12, 666, 0, 657, 31, 23, 0, 657, 17, 85], ["+", 12, 666, 0, 657, 31, 23, 0, 657, 17, 676], ["-", 12, 666, 0, 657, 12, 23, 0, 657, 17, 85], ["+", 12, 666, 0, 657, 12, 23, 0, 657, 17, 676]] | 5 | 65 |
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ... | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 260 |
N = int(input())
A = list(map(int, input().split()))
sum = 0
for i in range(A[0],A[1]):
if i % N ==0:
sum +=1
if A[0] == A[1]:
if A[0] % N ==0:
print("OK")
else:
print("NG")
else:
if sum == 0:
print("NG")
else:
print("OK") |
N = int(input())
A = list(map(int, input().split()))
sum = 0
for i in range(A[0],A[1]+1):
if i % N ==0:
sum =1
if A[0] == A[1]:
if A[0] % N ==0:
print("OK")
else:
print("NG")
else:
if sum == 0:
print("NG")
else:
print("OK") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32]] | 5 | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.