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
#if __has_include("D:/dhiraj/Programming/debug.h") #include "D:/dhiraj/Programming/debug.h" #else #include <bits/stdc++.h> using namespace std; #define d(...) 11 #endif // Loops -------------------------------------------------------------------- #define loop(i, s, e) for (ll i = (s); i < (e); i++) #define rloop(i, s...
#if __has_include("D:/dhiraj/Programming/debug.h") #include "D:/dhiraj/Programming/debug.h" #else #include <bits/stdc++.h> using namespace std; #define d(...) 11 #endif // Loops -------------------------------------------------------------------- #define loop(i, s, e) for (ll i = (s); i < (e); i++) #define rloop(i, s...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
472
/* , -- 、 /;;;;;;',     i二二二i , '   ヽ ??? i ノノノノノヘ .',    〉リi' ゚ ヮ゚ノレく  WAyon.......... ○⊂}〈lト--イl〉{つ●    ,r/ー i-ヽヽ     ``i_ラi_ラ */ #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define int long long const int INF =...
/* , -- 、 /;;;;;;',     i二二二i , '   ヽ ??? i ノノノノノヘ .',    〉リi' ゚ ヮ゚ノレく  WAyon.......... ○⊂}〈lト--イl〉{つ●    ,r/ー i-ヽヽ     ``i_ラi_ラ */ #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define int long long const int INF =...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
321
K = int(input()) A,B = map(int,input().split()) a = A//K b = B//K flag = 0 for i in range(a,b+1): N = K*i if A<= N <= B: flag = 1 print("OK") break if flag == 0: print("NO")
K = int(input()) A,B = map(int,input().split()) a = A//K b = B//K flag = 0 for i in range(a,b+1): N = K*i if A<= N <= B: flag = 1 print("OK") break if flag == 0: print("NG")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
82
#include <bits/stdc++.h> using namespace std; int main() { int K, A, B; cin >> K >> A >> B; bool ans = false; for (int i = A; i < B + 1; i++) { if (i % K) ans = true; } if (ans) 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 ans = false; for (int i = A; i < B + 1; i++) { if (i % K == 0) ans = true; } if (ans) cout << "OK" << endl; else cout << "NG" << endl; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
81
K=int(input()) A,B=map(int,input().split()) result=0 for i in range(1000): tmp=K*i if A<=K<=B: result=1 break if K>B: break if result==1: print("OK") else: print("NG")
K=int(input()) A,B=map(int,input().split()) result=0 for i in range(1000): tmp=K*i if A<=tmp<=B: result=1 break if tmp>B: break if result==1: print("OK") else: print("NG")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
76
from sys import stdin import sys import math # A, B, C = [int(x) for x in stdin.readline().rstrip().split()] # A, B = [int(x) for x in stdin.readline().rstrip().split()] # U = input().split() K = int(input()) A, B = [int(x) for x in stdin.readline().rstrip().split()] for i in range(A,B+1): if i%K==0: prin...
from sys import stdin import sys import math # A, B, C = [int(x) for x in stdin.readline().rstrip().split()] # A, B = [int(x) for x in stdin.readline().rstrip().split()] # U = input().split() K = int(input()) A, B = [int(x) for x in stdin.readline().rstrip().split()] for i in range(A,B+1): if i%K==0: prin...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
84
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; using namespace std; const ll INF = 1e15; void input(ll *a, ll n) { for (ll i = 0; i < n; i++) cin >> a[i]; } ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); } bool isprime(ll n) { if (n == 1) { return false; } if ...
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; using namespace std; const ll INF = 1e15; void input(ll *a, ll n) { for (ll i = 0; i < n; i++) cin >> a[i]; } ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); } bool isprime(ll n) { if (n == 1) { return false; } if ...
[["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 72], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
423
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; int a, b, k; cin >> k >> a >> b; for (int i = a; ...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; int a, b, k; cin >> k >> a >> b; for (int i = a; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
112
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #define lli long long int using namespace std; #define S second #define F first #define pb push_back #define M1 1000000007 #define M2 998244353 #define plli pair<lli, lli> #define setit set<lli>::i...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #define lli long long int using namespace std; #define S second #define F first #define pb push_back #define M1 1000000007 #define M2 998244353 #define plli pair<lli, lli> #define setit set<lli>::i...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
248
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int k, a, b; cin >> k >> a >> b; 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> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int k, a, b; cin >> k >> a >> b; for (int i = a; i <= b; i++) { 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
88
#include <cmath> #include <iostream> #include <vector> using namespace std; int main() { long long K, A, B; cin >> K >> A >> B; bool YesFlag = false; for (long long i = A; i <= B; i++) { if (i % K == 0) { YesFlag = true; } } if (YesFlag) cout << "Yes" << endl; else cout << "No" <<...
#include <cmath> #include <iostream> #include <vector> using namespace std; int main() { long long K, A, B; cin >> K >> A >> B; bool YesFlag = false; for (long long i = A; i <= B; i++) { if (i % K == 0) { YesFlag = true; } } if (YesFlag) cout << "OK" << endl; else cout << "NG" << ...
[["-", 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
92
#include <bits/stdc++.h> using namespace std; using i64 = int_fast64_t; #define rep(i, N) for (i64 i = 0; i < N; i++) #define Rep(i, k, N) for (i64 i = k; i < N; i++) #define all(v) v.begin(), v.end() #define eb emplace_back #define Cout(s) cout << s << endl string Yes(bool b) { if (b) { return "Yes"; } else { ...
#include <bits/stdc++.h> using namespace std; using i64 = int_fast64_t; #define rep(i, N) for (i64 i = 0; i < N; i++) #define Rep(i, k, N) for (i64 i = k; i < N; i++) #define all(v) v.begin(), v.end() #define eb emplace_back #define Cout(s) cout << s << endl string Yes(bool b) { if (b) { return "Yes"; } else { ...
[["+", 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
164
n=int(input()) a,b=[int(x) for x in input().split()] flag=0 for i in range(a,b+1): if i%k==0: flag=1 break if flag==0: print("NG") else: print("OK")
n=int(input()) a,b=[int(x) for x in input().split()] flag=0 for i in range(a,b+1): if i%n==0: flag=1 break if flag==0: print("NG") else: print("OK")
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
73
#include <bits/stdc++.h> using namespace std; int main() { int k, a, b; cin >> k >> a >> b; for (int i = k; 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() { int k, a, b; cin >> k >> a >> b; for (int i = a; i <= b; i++) { if (i % k == 0) { cout << "OK" << endl; return 0; } } cout << "NG" << endl; return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22]]
1
75
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, a, b) for (int i = (a); i < (b); ++i) typedef long long ll; typedef pair<int, int> P; const int INF = 100100100; const int MOD = (int)1e9 + 7; const double EPS = 1e-9; int main() { int K; int A, B; ci...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, a, b) for (int i = (a); i < (b); ++i) typedef long long ll; typedef pair<int, int> P; const int INF = 100100100; const int MOD = (int)1e9 + 7; const double EPS = 1e-9; int main() { int K; int A, B; ci...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
126
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int k, a, b; cin >> k >> a >> b; if (k == 1) { cout << "OK\n"; return 0; } if ((b / k) - (a / k) > 0) { cout << "OK\n"; } else { cout << "NG\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int k, a, b; cin >> k >> a >> b; if (k == 1) { cout << "OK\n"; return 0; } if ((b / k) - ((a - 1) / k) > 0) { cout << "OK\n"; } else { cout << "NG\n"; } return 0; }
[["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 25]]
1
97
#include <stdio.h> int main(void) { int k, a, b; scanf("%d %d", &k, &a, &b); for (int i = a; i <= b; i++) if (i % k == 0) { printf("OK"); break; } 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, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 7, 8, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 7, 8, 57, 64, 9, 0, 37, 0, 38], ["+", 0, 7, 8, 57, 64, 9, 0, 37, 0, 13]]
0
75
k=int(input()) a,b=map(int,input().split()) flag=False for i in range(a,b+1): if i%k==0: flag=true break if flag: 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 break if flag: print("OK") else: print("NG")
[["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 146]]
5
67
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n, a, b; cin >> n >> a >> b; for (int i = a; i <= b; i++) { if (n % i == 0) { cout << "OK" << endl; return 0; } } cout << "NG" << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); std::cin.tie(nullptr); ll 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; }
[["-", 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
94
///...................SUBHASHIS MOLLICK.................../// ///.....DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING..../// ///.............ISLAMIC UNIVERSITY,BANGLADESH............./// ///....................SESSION-(14-15)..................../// #include <bits/stdc++.h> using namespace std; #define sf(a) scanf("%d", ...
///...................SUBHASHIS MOLLICK.................../// ///.....DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING..../// ///.............ISLAMIC UNIVERSITY,BANGLADESH............./// ///....................SESSION-(14-15)..................../// #include <bits/stdc++.h> using namespace std; #define sf(a) scanf("%d", ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
253
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { int a, b, k; scanf("%d%d%d", &k, &a, &b); puts(k / b - (a - 1) / k > 0 ? "OK" : "NG"); return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { int a, b, k; scanf("%d%d%d", &k, &a, &b); puts(b / k - (a - 1) / k > 0 ? "OK" : "NG"); return 0; }
[["-", 0, 41, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 41, 15, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 12, 22]]
1
71
// Confessions of a Dangerous Mind #include <bits/stdc++.h> using namespace std; using ll = long long; const int N = 2e5 + 3; const int M = 1e6 + 7; const long long MOD = 1e9 + 7; const long long INF = 1e18 + 9; const int SM = 2e3 + 5; const int logN = 22, BL = 400; const double EPS = 3e-16; /* Keep moving ...
// Confessions of a Dangerous Mind #include <bits/stdc++.h> using namespace std; using ll = long long; const int N = 2e5 + 3; const int M = 1e6 + 7; const long long MOD = 1e9 + 7; const long long INF = 1e18 + 9; const int SM = 2e3 + 5; const int logN = 22, BL = 400; const double EPS = 3e-16; /* Keep moving ...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
152
#pragma GCC optimize("O3") #pragma GCC optimize("O1") #pragma GCC optimize("O2") #pragma GCC optimize("Os") #pragma GCC optimize("Ofast") #pragma GCC target("avx2") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> #define FAST ios_base::sync_with_stdio(false); #define FO cout.tie(NULL); #define FI cin....
#pragma GCC optimize("O3") #pragma GCC optimize("O1") #pragma GCC optimize("O2") #pragma GCC optimize("Os") #pragma GCC optimize("Ofast") #pragma GCC target("avx2") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> #define FAST ios_base::sync_with_stdio(false); #define FO cout.tie(NULL); #define FI cin....
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]]
1
472
#include <iostream> using namespace std; int main() { int k, a, b; cin >> k >> a >> b; bool x = 0; for (int i = a; i <= b; i++) if (i % k == 0) x = 1; if (x) puts("Yes"); else puts("No"); }
#include <iostream> using namespace std; int main() { int k, a, b; cin >> k >> a >> b; bool x = 0; for (int i = a; i <= b; i++) if (i % k == 0) x = 1; if (x) puts("OK"); else puts("NG"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
77
// while( !(succeed == try()) ); #include "bits/stdc++.h" using namespace std; // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // // Alpha #define int long long int #define loop(i, s, e) for (int i = s; i < e; i++) #define endl '\n' #define vii vector<int> #define pii pair<int, int> ...
// while( !(succeed == try()) ); #include "bits/stdc++.h" using namespace std; // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // Alpha // // Alpha #define int long long int #define loop(i, s, e) for (int i = s; i < e; i++) #define endl '\n' #define vii vector<int> #define pii pair<int, int> ...
[["+", 0, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 0, 9, 0, 57, 64, 9, 0, 37, 0, 35]]
1
319
k = int(input()) a, b = map(int,input().split()) ans = 'NG' if a%k == 0 or b//k ==0: ans = 'OK' if a//k < b//k: ans = 'OK' print(ans)
k = int(input()) a, b = map(int,input().split()) ans = 'NG' if a%k == 0 or b%k ==0: ans = 'OK' if a//k < b//k: ans = 'OK' print(ans)
[["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 109]]
5
65
import random import math LI = lambda: list(map(int,input().split())) MI = lambda: map(int,input().split()) yes = lambda: print("Yes") no = lambda: print("No") I = lambda: list(input()) J = lambda x: "".join(x) II = lambda: int(input()) SI = lambda: input() #---khan17---template t = II() a,b = MI() boo = False for i in...
import random import math LI = lambda: list(map(int,input().split())) MI = lambda: map(int,input().split()) yes = lambda: print("Yes") no = lambda: print("No") I = lambda: list(input()) J = lambda x: "".join(x) II = lambda: int(input()) SI = lambda: input() #---khan17---template t = II() a,b = MI() boo = False for i in...
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22]]
5
149
k = int(input()) a, b = map(int, input().split()) tmp = 0 for i in range(a, b+1): if i % k == 0: tmp = 1 if tmp: print("OK") else: print("NO")
k = int(input()) a, b = map(int, input().split()) tmp = 0 for i in range(a, b+1): if i % k == 0: tmp = 1 if tmp: print("OK") else: print("NG")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
66
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++) using vi = vector<int64_t>; using vvi = vector<vi>; int main(int argc, const char *argv[]) { // fasten cin cin.tie(0); ios::sync_with_stdio(false); // implement int64_t k, a, b; ...
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++) using vi = vector<int64_t>; using vvi = vector<vi>; int main(int argc, const char *argv[]) { // fasten cin cin.tie(0); ios::sync_with_stdio(false); // implement int64_t k, a, b; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
121
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; #define all(a) (a).begin(), (a).end() #define overload4(_1, _2, _3, _4, name, ...) name #define rep1(n) for (ll i = 0; i < (n); i++) #define rep2(i, n) for (ll i = 0; i < (n); i++) #define rep3(i, a, b) for (ll i = (a); i < (b)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; #define all(a) (a).begin(), (a).end() #define overload4(_1, _2, _3, _4, name, ...) name #define rep1(n) for (ll i = 0; i < (n); i++) #define rep2(i, n) for (ll i = 0; i < (n); i++) #define rep3(i, a, b) for (ll i = (a); i < (b)...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
405
#include <bits/stdc++.h> using namespace std; const double eps = 1e-9; const int INF = 1e9; const long long INFL = 1e18; const double PI = 3.14; const int mod = 1e9 + 7; typedef long long LL; typedef vector<int> vi; typedef list<int> li; typedef queue<int> qi; typedef pair<int, int> ii; typedef pair<LL, LL> ll; type...
#include <bits/stdc++.h> using namespace std; const double eps = 1e-9; const int INF = 1e9; const long long INFL = 1e18; const double PI = 3.14; const int mod = 1e9 + 7; typedef long long LL; typedef vector<int> vi; typedef list<int> li; typedef queue<int> qi; typedef pair<int, int> ii; typedef pair<LL, LL> ll; type...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
751
#A k = int(input()) a, b = list(map(int, input().split())) for i in range(a, b+1): if i % 7 == 0: print('OK') break else: print('NG')
#A k = int(input()) a, b = list(map(int, input().split())) for i in range(a, b+1): if i % k == 0: print('OK') break else: print('NG')
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
62
#include "bits/stdc++.h" using namespace std; using ll = long long; int main() { int K, A, B, i; string S; cin >> K >> A >> B; // vector<int> a(N); for (i = A; i <= B; ++i) { if (i % 7 == 0) { cout << "OK" << endl; return 0; } } cout << "NG" << endl; }
#include "bits/stdc++.h" using namespace std; using ll = long long; int main() { int K, A, B, i; string S; cin >> K >> A >> B; // vector<int> a(N); for (i = A; i <= B; ++i) { if (i % K == 0) { cout << "OK" << endl; return 0; } } cout << "NG" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
85
/////////// <---------------------- Quicksilver_ ---------------------> ////////////// #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <map> #include <queue> #include <set> #include <sstream> #include <utility> using namespace std; #define endl '\n' #define ll long long int #define c(x) ...
/////////// <---------------------- Quicksilver_ ---------------------> ////////////// #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <map> #include <queue> #include <set> #include <sstream> #include <utility> using namespace std; #define endl '\n' #define ll long long int #define c(x) ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
769
#include <bits/stdc++.h> using namespace std; #define int long long #define fr(a, b) for (int i = a; i < b; i++) #define frn(a, b) for (int i = a; i >= b; i--) int32_t main() { int k, a, b; cin >> k >> a >> b; int ans = 0; fr(a, b + 1) if (i % k == 0) ans = 1; if (ans = 0) cout << "NG"; else cout <...
#include <bits/stdc++.h> using namespace std; #define int long long #define fr(a, b) for (int i = a; i < b; i++) #define frn(a, b) for (int i = a; i >= b; i--) int32_t main() { int k, a, b; cin >> k >> a >> b; int ans = 0; fr(a, b + 1) if (i % k == 0) ans = 1; if (ans == 0) cout << "NG"; else cout ...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
91
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define _GLIBCXX_DEBUG using namespace std; using ll = long long; using P = pair<int, int>; int main() { int K; cin >> K; int A, B; cin >> A >> B; bool b = false; for (int i = A; i < B; i++) { if (i % K == 0) { b = true;...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define _GLIBCXX_DEBUG using namespace std; using ll = long long; using P = pair<int, int>; int main() { int K; cin >> K; int A, B; cin >> A >> B; bool b = false; for (int i = A; i <= B; i++) { if (i % K == 0) { b = true...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
115
<?php list($k) = explode(" ", trim(fgets(STDIN))); list($a, $b) = explode(" ", trim(fgets(STDIN))); for($i=$a; $i<=$b;$i++){ if($i % $k == 0){ echo "Yes"; exit; } } echo "No";
<?php list($k) = explode(" ", trim(fgets(STDIN))); list($a, $b) = explode(" ", trim(fgets(STDIN))); for($i=$a; $i<=$b;$i++){ if($i % $k == 0){ echo "OK"; exit; } } echo "NG";
[["-", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["-", 36, 36, 0, 493, 0, 608, 0, 609, 0, 610], ["+", 36, 36, 0, 493, 0, 608, 0, 609, 0, 610]]
6
90
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n; cin >> n; int a, b; cin >> a >> b; for (int i = a; i < b + 1; i++) {...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n; cin >> n; int a, b; cin >> a >> b; for (int i = a; i < b + 1; i++) {...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
93
K = int(input()) A,B= list(map(int, input().split())) S = 0 while S<=A: S += K if S<=B: print("OK") else: print("NG")
K = int(input()) A,B= list(map(int, input().split())) S = 0 while S < A: S += K if S <= B: print("OK") else: print("NG")
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]]
5
57
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; #defi...
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; #defi...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
299
k = int(input()) a, b = map(int, input()) flag = False for i in range(a, b+1): if i % k == 0: flag = True break if flag: 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 break if flag: print('OK') else: print('NG')
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
63
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, sta, end) for (ll i = sta; i < end; i++) #define all(x) x.begin(), x.end() #define MOD 1000000007 #define vvl vector<vector<ll>> #define vl vector<ll> #define acc_io \ cin....
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, sta, end) for (ll i = sta; i < end; i++) #define all(x) x.begin(), x.end() #define MOD 1000000007 #define vvl vector<vector<ll>> #define vl vector<ll> #define acc_io \ cin....
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]]
1
106
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('Yes') else: print('No')
k = int(input()) a, b = map(int, input().split()) flag =False for i in range(a,b+1): if i%k==0: flag=True if flag: print('OK') else: print('NG')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
66
k = int(input()) a,b = map(int,input().split()) flag = 0 for i in range(a,b+1,1): if i % k ==0 and flag ==0: print('OK') flag = 1 if flag ==0: print('NO')
k = int(input()) a,b = map(int,input().split()) flag = 0 for i in range(a,b+1,1): if i % k ==0 and flag ==0: print('OK') flag = 1 if flag ==0: print('NG')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
72
package main import ( "bufio" "fmt" "log" "math" "os" "strconv" ) var sc = bufio.NewScanner(os.Stdin) var buff []byte func init() { sc.Split(bufio.ScanWords) sc.Buffer(buff, bufio.MaxScanTokenSize*1024) log.SetFlags(log.Lshortfile) } func main() { k := nextInt() a := nextInt() b := nextInt() for i := a...
package main import ( "bufio" "fmt" "log" "math" "os" "strconv" ) var sc = bufio.NewScanner(os.Stdin) var buff []byte func init() { sc.Split(bufio.ScanWords) sc.Buffer(buff, bufio.MaxScanTokenSize*1024) log.SetFlags(log.Lshortfile) } func main() { k := nextInt() a := nextInt() b := nextInt() for i := a...
[]
7
761
def main(): K = int(input()) A, B = list(map(int, input().split(' '))) for i in range(A, B): if i % K == 0: print('OK') return print('NG') main()
def main(): K = int(input()) A, B = list(map(int, input().split(' '))) for i in range(A, B+1): if i % K == 0: print('OK') return print('NG') main()
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
68
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = A; i <= B; i++) { if (i % K == 0) { System.out.println("YES"); return;...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = A; i <= B; i++) { if (i % K == 0) { System.out.println("OK"); return; ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
112
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> P; typedef vector<ll> VI; typedef vector<VI> VVI; const ll MOD = 1000000007; const ll INF = 2147483647; const ll LINF = 9223372036854775807; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int m...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> P; typedef vector<ll> VI; typedef vector<VI> VVI; const ll MOD = 1000000007; const ll INF = 2147483647; const ll LINF = 9223372036854775807; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int m...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
136
import sys sys.setrecursionlimit(10**8) def ii(): return int(sys.stdin.readline()) def mi(): return map(int, sys.stdin.readline().split()) def li(): return list(map(int, sys.stdin.readline().split())) def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)] def dp2(ini, i, j): return [[ini]*i...
import sys sys.setrecursionlimit(10**8) def ii(): return int(sys.stdin.readline()) def mi(): return map(int, sys.stdin.readline().split()) def li(): return list(map(int, sys.stdin.readline().split())) def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)] def dp2(ini, i, j): return [[ini]*i...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
218
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e5 + 5; vector<ll> V; int pre[maxn]; int main() { int k, a, b; cin >> a >> b; for (int i = a; i <= b; i++) { if (i % k == 0) { puts("OK"); return 0; } } puts("NG"); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e5 + 5; vector<ll> V; int pre[maxn]; int main() { int k, a, b; cin >> k >> a >> b; for (int i = a; i <= b; i++) { if (i % k == 0) { puts("OK"); return 0; } } puts("NG"); return 0; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152]]
1
96
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <numeric> #include <string> #include <vector> #define ll long long #define rep(i, n) for (ll i = 0; i < (ll)n; i++) using namespace std; int main() { ll K, A, B; cin >> K >> A >> B; for ...
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <numeric> #include <string> #include <vector> #define ll long long #define rep(i, n) for (ll i = 0; i < (ll)n; i++) using namespace std; int main() { ll K, A, B; cin >> K >> A >> B; for ...
[["-", 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
102
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
[["-", 8, 123, 0, 171, 0, 124, 0, 42, 0, 60], ["+", 8, 123, 0, 171, 0, 124, 0, 42, 0, 79]]
1
475
#include <bits/stdc++.h> #define N 300005 #define SIZE 2000005 #define int long long #define pb push_back #define x first #define y second #define all(v) v.begin(), v.end() using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int k, a, b; cin >> k >> a >> b; ...
#include <bits/stdc++.h> #define N 300005 #define SIZE 2000005 #define int long long #define pb push_back #define x first #define y second #define all(v) v.begin(), v.end() using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int k, a, b; cin >> k >> b >> a; ...
[["-", 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, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
113
#include <algorithm> #include <cassert> #include <cmath> #include <fstream> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <tuple> #include <unordered_map> #include <unordered_set> #include <vector> //....................
#include <algorithm> #include <cassert> #include <cmath> #include <fstream> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <tuple> #include <unordered_map> #include <unordered_set> #include <vector> //....................
[["-", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6]]
1
345
k=int(input()) a,b = list(map(int,input().split())) v1 = (a+k-1)//k v2 = (b+k-1)//k if(v1<=v2): print("OK") else: print("NG")
k=int(input()) a,b = list(map(int,input().split())) v1 = (a+k-1)//k v2 = (b)//k # print(v1,v2) if(v1<=v2): print("OK") else: print("NG")
[["-", 12, 657, 31, 23, 0, 657, 31, 657, 17, 72], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 12, 22], ["-", 0, 662, 12, 657, 31, 23, 0, 657, 17, 33], ["-", 0, 662, 12, 657, 31, 23, 0, 657, 12, 612]]
5
70
#include <cstdio> int main() { int K, A, B; scanf("%d%d%d", &K, &A, &B); bool can = false; for (int i = A; i <= B; i++) { if (i % K) { can = true; break; } } if (can) puts("OK"); else puts("NG"); return 0; }
#include <cstdio> int main() { int K, A, B; scanf("%d%d%d", &K, &A, &B); bool can = false; for (int i = A; i <= B; i++) { if (i % K == 0) { can = true; break; } } if (can) puts("OK"); else puts("NG"); return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
88
/* Coded and Decoded by : Yash Kapoor */ #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define pb push_back #define pf push_front #define mp make_pair #define pll pair<ll, ll> #define vl vector<ll> #define sl set<ll> #define vll vector<pll> #define ml map<ll, ll> #define m...
/* Coded and Decoded by : Yash Kapoor */ #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define pb push_back #define pf push_front #define mp make_pair #define pll pair<ll, ll> #define vl vector<ll> #define sl set<ll> #define vll vector<pll> #define ml map<ll, ll> #define m...
[["-", 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
283
// is there any case of -1 or any special corner cases ? #include <bits/stdc++.h> using namespace std; #define int long long int #define pb push_back #define mp make_pair #define fi first #define se second #define vi vector<int> #define pi pair<int, int> #define all(v) v.begin(), v.end() #define zeros(arr) memset(arr, ...
// is there any case of -1 or any special corner cases ? #include <bits/stdc++.h> using namespace std; #define int long long int #define pb push_back #define mp make_pair #define fi first #define se second #define vi vector<int> #define pi pair<int, int> #define all(v) v.begin(), v.end() #define zeros(arr) memset(arr, ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
145
#include <bits/stdc++.h> #define gcd(m, n) __gcd(m, n) #define lcm(m, n) m *(n / gcd(m, n)) #define fast \ std::ios_base::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #define gcd(m, n) __gcd(m, n) #define lcm(m, n) m *(n / gcd(m, n)) #define fast \ std::ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
277
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef pair<ll, ll> p2; void solve() { ll k, a, b; cin >> k >> a >> b; if ((b / k) - ((a - 1) / k) > 0) cout << "Yes"; else cout << "No"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef pair<ll, ll> p2; void solve() { ll k, a, b; cin >> k >> a >> b; if ((b / k) - ((a - 1) / k) > 0) cout << "OK"; else cout << "NG"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
130
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; int main() { i...
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; int main() { i...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
107
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> ...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> ...
[["+", 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
438
k = gets.chomp.to_i a, b = gets.chomp.split(" ").map(&:to_i) ans = false a.upto(b) do |i| ans = true if i % k == 0 end puts ans ? "Yes" : "No"
k = gets.chomp.to_i a, b = gets.chomp.split(" ").map(&:to_i) ans = false a.upto(b) do |i| ans = true if i % k == 0 end puts ans ? "OK" : "NG"
[["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]]
4
60
#include <bits/stdc++.h> using namespace std; #define ll long long #define l long #define pb push_back #define mp make_pair #define mt make_tuple #define ff first #define ss second #define pii pair<int, int> #define pll pair<ll, ll> #define testcase() \ int ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define l long #define pb push_back #define mp make_pair #define mt make_tuple #define ff first #define ss second #define pii pair<int, int> #define pll pair<ll, ll> #define testcase() \ int ...
[["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13]]
1
309
#include <bits/stdc++.h> using namespace std; int main() { int K, N, M; cin >> K >> N >> M; bool ans = 0; for (int i = N; i <= M; i++) { if (i % K == 0) ans = 1; } if (ans == 1) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int K, N, M; cin >> K >> N >> M; bool ans = 0; for (int i = N; i <= M; i++) { if (i % K == 0) ans = 1; } if (ans == 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
83
#include <bits/stdc++.h> using namespace std; int main(void) { // Your code here! int i, k, a, b; cin >> k >> a >> b; for (i = a; i <= b; i++) { if (i % k == 0) { cout << "OK"; break; } } cout << "NG"; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { // Your code here! int i, k, a, b; cin >> k >> a >> b; for (i = a; i <= b; i++) { if (i % k == 0) { cout << "OK"; return 0; } } cout << "NG"; return 0; }
[["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13]]
1
73
#include <bits/stdc++.h> #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++) #define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--) #define rep(i, n) FOR(i, 0, n) #define ALL(x) begin(x), end(x) using namespace std; using ll = long long; template <typename T> using V = vector<T>; constexpr int Mod = 998244353; ...
#include <bits/stdc++.h> #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++) #define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--) #define rep(i, n) FOR(i, 0, n) #define ALL(x) begin(x), end(x) using namespace std; using ll = long long; template <typename T> using V = vector<T>; constexpr int Mod = 998244353; ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
232
// Author :: ABHINAV3010 :: #include <bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define endl "\n" #define all(x) (x).begin(), (x).end() #define fast \ ios_base::sync_with_stdio(false); ...
// Author :: ABHINAV3010 :: #include <bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define endl "\n" #define all(x) (x).begin(), (x).end() #define fast \ ios_base::sync_with_stdio(false); ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
262
import sys from math import ceil, floor, sqrt, sin, cos, pi from itertools import accumulate, permutations, combinations from math import gcd # 最大公約数 from collections import deque, Counter from operator import itemgetter from heapq import heappop,heappush sys.setrecursionlimit(10**7) def lcm(x, y): return ((x * y) // g...
import sys from math import ceil, floor, sqrt, sin, cos, pi from itertools import accumulate, permutations, combinations from math import gcd # 最大公約数 from collections import deque, Counter from operator import itemgetter from heapq import heappop,heappush sys.setrecursionlimit(10**7) def lcm(x, y): return ((x * y) // g...
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22]]
5
138
#include <bits/stdc++.h> #define all(x) begin(x), end(x) #define _ << ' ' << 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) return cout << "OK", 0; cout << "NG"; }
#include <bits/stdc++.h> #define all(x) begin(x), end(x) #define _ << ' ' << 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) 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
79
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> ...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
174
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define what_is(x) cerr << #x << " is " << x << endl; typedef long long ll; const int MOD = 998244353; const double PI = 3.141592653589793; const ll INF = 1e18 + 7; const int nax = 200005; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define what_is(x) cerr << #x << " is " << x << endl; typedef long long ll; const int MOD = 998244353; const double PI = 3.141592653589793; const ll INF = 1e18 + 7; const int nax = 200005; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
138
import java.util.Scanner; public class Main { Scanner in = new Scanner(System.in); public static void main(String[] args) { new Main().solve(); } void solve() { int k = in.nextInt(); int a = in.nextInt(); int b = in.nextInt(); for (int i = a; i <= b; i++) if (a % k == 0) { System....
import java.util.Scanner; public class Main { Scanner in = new Scanner(System.in); public static void main(String[] args) { new Main().solve(); } void solve() { int k = in.nextInt(); int a = in.nextInt(); int b = in.nextInt(); for (int i = a; i <= b; i++) if (i % k == 0) { System....
[["-", 8, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+", 8, 57, 15, 15, 0, 16, 31, 16, 31, 22]]
3
125
#include <bits/stdc++.h> using namespace std; #define FOR(i, n) for (int i = 0; i < (int)n; i++) #define rall(x) x.rbegin(), x.rend() #define all(x) x.begin(), x.end() #define PB push_back #define F first #define S second typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; const int MOD = 1e9 ...
#include <bits/stdc++.h> using namespace std; #define FOR(i, n) for (int i = 0; i < (int)n; i++) #define rall(x) x.rbegin(), x.rend() #define all(x) x.begin(), x.end() #define PB push_back #define F first #define S second typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; const int MOD = 1e9 ...
[["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]]
1
139
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() int main() { int k, a, b; cin >> k; bool flag = false; for (int i = a; i <= b; i++) { if (i % k...
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() int main() { int k, a, b; cin >> k >> a >> b; bool flag = false; for (int i = a; i <= b; i++) { ...
[["+", 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
102
K = gets.chomp.to_i A, B = gets.chomp.split.map(&:to_i) # S = gets.chomp.chars def main A.upto(B-1).each do |i| if (i%K == 0) print "OK\n" return; end end print "NG\n" end main
K = gets.chomp.to_i A, B = gets.chomp.split.map(&:to_i) # S = gets.chomp.chars def main A.upto(B).each do |i| if (i%K == 0) print "OK\n" return; end end print "NG\n" end main
[["-", 0, 652, 486, 652, 3, 4, 0, 738, 17, 33], ["-", 0, 652, 486, 652, 3, 4, 0, 738, 12, 612]]
4
63
import sys K = int(input()) A,B = map(int,input().split()) for i in range(A,B+1): if i // K == 0: print("OK") sys.exit() print('NG')
import sys K = int(input()) A,B = map(int,input().split()) for i in range(A,B+1): if i % K == 0: print("OK") sys.exit() print('NG')
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109]]
5
62
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define F(i, a, n) for (int i = a; i < n; i++) #define INF 100000000000 // long only int main() { int k, a, b; scanf("%d%d%d", &k, &a, &b); for (int i = a; i < b + 1; i++) { if (i % 7 == 0) { printf("OK\n"); return 0; ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define F(i, a, n) for (int i = a; i < n; i++) #define INF 100000000000 // long only int main() { int k, a, b; scanf("%d%d%d", &k, &a, &b); for (int i = a; i < b + 1; i++) { if (i % k == 0) { printf("OK\n"); return 0; ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22]]
0
100
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int k; cin >> k; int a, b; cin >> a >> b; bool flag = true; for (int i = a; i <= b; i++) { if (i % k == 0) { flag = true; break; } } if (flag) cout << "...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int k; cin >> k; int a, b; cin >> a >> b; bool flag = false; for (int i = a; i <= b; i++) { if (i % k == 0) { flag = true; break; } } if (flag) cout << ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 146], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147]]
1
105
#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" << endl; return 0; } } cout << "NO" << endl; }
#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" << endl; return 0; } } cout << "NG" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
73
#include <bits/stdc++.h> #define FOR0(i, n) for (int i = 0; i < n; i++) #define FOR(i, j, n) for (int i = j; i < n; i++) // bool isEven(ll n) {return (n%2!=0)?false:true;}; #define INF 1000000000 // 1 billion, safer than 2B for Floyd Warshall’s #define f(i, a, b) for (i = a; i < b; i++) #define rep(i, n) f(i, 0, n) #...
#include <bits/stdc++.h> #define FOR0(i, n) for (int i = 0; i < n; i++) #define FOR(i, j, n) for (int i = j; i < n; i++) // bool isEven(ll n) {return (n%2!=0)?false:true;}; #define INF 1000000000 // 1 billion, safer than 2B for Floyd Warshall’s #define f(i, a, b) for (i = a; i < b; i++) #define rep(i, n) f(i, 0, n) #...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
190
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define BEGIN(x) x.begin() #define END(x) x....
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define BEGIN(x) x.begin() #define END(x) x....
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22]]
1
227
//#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> // #include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #in...
//#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> // #include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #in...
[["-", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 85], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 85], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
406
#include <bits/stdc++.h> #define INF 2000000000 #define MOD 1000000007 #define EPS (1e-10) using namespace std; int main(int argc, char *argv[]) { int nk; cin >> nk; int A, B; cin >> A >> B; for (int i = A; i <= B; i++) { if (i % 7 == 0) { cout << "OK" << endl; return 0; } } cout <...
#include <bits/stdc++.h> #define INF 2000000000 #define MOD 1000000007 #define EPS (1e-10) using namespace std; int main(int argc, char *argv[]) { int nk; cin >> nk; int A, B; cin >> A >> B; for (int i = A; i <= B; i++) { if (i % nk == 0) { cout << "OK" << endl; return 0; } } cout ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
95
#include <bits/stdc++.h> using namespace std; typedef long long ll; // cout << fixed << setprecision(17) << res << endl; int main() { ll k, a, b; cin >> k >> a >> b; auto d = (b / k) * k; if (a <= d && d <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; // cout << fixed << setprecision(17) << res << endl; int main() { ll k, a, b; cin >> k >> a >> b; auto d = (b / k) * k; if (a <= d && d <= 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
75
#include <bits/stdc++.h> #define ll long long #define F first #define FF first.first #define FS first.second #define S second #define pb push_back using namespace std; const ll N = 1000006, INF = 1e16; ll n, q = 1, m, a[N], b[N], f[N], o, k, t, x, y, z, u, h, mx, mn, ans, Ans; pair<ll, ll> p[N]; string s; vector<int> ...
#include <bits/stdc++.h> #define ll long long #define F first #define FF first.first #define FS first.second #define S second #define pb push_back using namespace std; const ll N = 1000006, INF = 1e16; ll n, q = 1, m, a[N], b[N], f[N], o, k, t, x, y, z, u, h, mx, mn, ans, Ans; pair<ll, ll> p[N]; string s; vector<int> ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
177
#include <algorithm> #include <iostream> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; int main() { int k, a, b; cin >> k >> a >> b; if (a % k == 0 || b % k == 0 || b - a >= k) cout << "OK"; else cout << "NG"; cout << endl; }
#include <algorithm> #include <iostream> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; int main() { int k, a, b; cin >> k >> a >> b; if (a % k == 0 || b % k == 0 || b / k != a / k) cout << "OK"; else cout << "NG"; cout << endl; }
[["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 85], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 85]]
1
72
// make sure to make new file! import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader f = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int n = Integer.parseInt(f.readLin...
// make sure to make new file! import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader f = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int n = Integer.parseInt(f.readLin...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
166
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(v) v.begin(), v.end() typedef long long ll; typedef pair<ll, ll> P; typedef vector<ll> vec; typedef vector<vec> mat; int main() { int a, b, k; cin >> k >> a >> b; for (int i = a; i <= b; i++) { if (k % i == ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(v) v.begin(), v.end() typedef long long ll; typedef pair<ll, ll> P; typedef vector<ll> vec; typedef vector<vec> mat; int main() { int a, b, k; cin >> k >> a >> b; for (int i = a; i <= b; i++) { if (i % k == ...
[["-", 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
110
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define modulo ll(1e9 + 7) const long double PI = 3.141592653589793238L; typedef long long ll; typedef pair<int, int> pii; void init() { cin.tie(0); cin.sync_with_stdio(0); // freopen("in.in", "r", stdin); // freopen("out.o...
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define modulo ll(1e9 + 7) const long double PI = 3.141592653589793238L; typedef long long ll; typedef pair<int, int> pii; void init() { cin.tie(0); cin.sync_with_stdio(0); // freopen("in.in", "r", stdin); // freopen("out.o...
[["-", 0, 43, 49, 50, 51, 16, 31, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 31, 22], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22]]
1
139
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(nullptr); \ cin.tie(nullptr); #define int long long using na...
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(nullptr); \ cin.tie(nullptr); #define int long long using na...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
76
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false); i...
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false); i...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152]]
1
120
k = int(input()) a, b = [int(i) for i in input().split()] if b // k - a // k > 0: print('OK') else: print("NG")
k = int(input()) a, b = [int(i) for i in input().split()] if b // k - (a-1) // k > 0: print('OK') else: print("NG")
[["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 24], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 15, 666, 0, 657, 12, 657, 31, 23, 0, 25]]
5
53
# -*- coding: utf-8 -*- import sys import math import os import itertools import string import heapq import _collections from collections import Counter from collections import defaultdict from functools import lru_cache import bisect import re import queue from decimal import * class Scanner(): @staticmethod ...
# -*- coding: utf-8 -*- import sys import math import os import itertools import string import heapq import _collections from collections import Counter from collections import defaultdict from functools import lru_cache import bisect import re import queue from decimal import * class Scanner(): @staticmethod ...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
548
#include <bits/stdc++.h> using namespace std; // Optimization //#pragma GCC optimize("O3") #define endl '\n' // Shortcut #define int long long #define eb emplace_back #define pb push_back #define pob pop_back #define mp make_pair #define upb upper_bound #define lwb lower_bound #define fi first #define se second #de...
#include <bits/stdc++.h> using namespace std; // Optimization //#pragma GCC optimize("O3") #define endl '\n' // Shortcut #define int long long #define eb emplace_back #define pb push_back #define pob pop_back #define mp make_pair #define upb upper_bound #define lwb lower_bound #define fi first #define se second #de...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
398
X = int(input()) deposit = 100 y_later = 0 while deposit < X: y_later += 1 deposit += deposit // 100 print(deposit) print(y_later)
X = int(input()) deposit = 100 y_later = 0 while deposit < X: y_later += 1 deposit += deposit // 100 print(y_later)
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]]
5
35
a=int(input()) i=100 f=0 while i<a: i=i*1.01 f=f+1 print(f)
a=int(input()) i=100 f=0 while i<a: i=i+i//100 f=f+1 print(f)
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 531], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 31, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]]
5
33
x = int(input()) money = 100 count = 0 while money <= x: money = (money * 101) // 100 count += 1 print(count)
x = int(input()) money = 100 count = 0 while money < x: money = (money * 101) // 100 count += 1 print(count)
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]]
5
35
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long x = scan.nextInt(); long balance = 100; int out = 0; while (balance < x) { balance *= 1.01; out++; } System.out.println(out); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long x = scan.nextLong(); long balance = 100; int out = 0; while (balance < x) { balance *= 1.01; out++; } System.out.println(out); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]]
3
78
#include <bits/stdc++.h> using namespace std; int main() { int64_t a = 100; int x; cin >> x; int count = 0; while (a < x) { a += a / 100; count++; } cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a = 100; int64_t x; cin >> x; int count = 0; while (a < x) { a += a / 100; count++; } cout << count << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
52