problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02596 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define itn int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
using P = pair<int, int>;
int main(void) {
ll k;
cin >> k;
ll alina = -1;
if (k % 2 == 0 || k % 5 == 0)
cout << alina << e... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define itn int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
using P = pair<int, int>;
int main(void) {
ll k;
cin >> k;
ll alina = -1;
if (k % 2 == 0 || k % 5 == 0)
cout << alina << e... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 297,628 | 297,629 | u512624048 | cpp |
p02596 |
#ifndef TEMPLATE_HPP
#define TEMPLATE_HPP
#include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <string>
#include <tuple>
#inc... |
#ifndef TEMPLATE_HPP
#define TEMPLATE_HPP
#include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <string>
#include <tuple>
#inc... | [
"assignment.change"
] | 297,644 | 297,645 | u465699806 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | #include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | [
"expression.operator.change"
] | 297,646 | 297,647 | u276588887 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | #include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | [
"assignment.add"
] | 297,648 | 297,647 | u276588887 | cpp |
p02596 | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
vector<int> factor(int mod_K) {
vector<int> list(1000009);
list[0] = 7;
for (int i = 1; i <= 1000000; i++) {
list[i] = (10 * li... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
vector<int> factor(int mod_K) {
vector<int> list(1000009);
list[0] = 7 % mod_K;
for (int i = 1; i <= 1000000; i++) {
list[i] = ... | [
"assignment.change"
] | 297,655 | 297,656 | u919622140 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) rep(i, 0, n)
void solve() {
int n;
cin >> n;
int f = 0;
REP(i, 2000000) {
f = (f * 10 + 7) % n;
if (!f) {
cout << i << endl;
return;
}
}
cout << ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) rep(i, 0, n)
void solve() {
int n;
cin >> n;
int f = 0;
REP(i, 2000000) {
f = (f * 10 + 7) % n;
if (!f) {
cout << i + 1 << endl;
return;
}
}
cout... | [
"expression.operation.binary.add"
] | 297,675 | 297,676 | u973991908 | cpp |
p02596 | // Copyright 2020 yaito3014
#include <iostream>
#include <set>
int main() {
int K;
std::cin >> K;
std::set<int> s;
int ans = -1;
long long j = 7;
for (int i = 0;; ++i, j = (j * 10 + 7) % K) {
if (j == 0) {
ans = i + 1;
break;
}
if (s.find(j) != s.end())
break;
s.insert(j);... | // Copyright 2020 yaito3014
#include <iostream>
#include <set>
int main() {
int K;
std::cin >> K;
std::set<int> s;
int ans = -1;
long long j = 7 % K;
for (int i = 0;; ++i, j = (j * 10 + 7) % K) {
if (j == 0) {
ans = i + 1;
break;
}
if (s.find(j) != s.end())
break;
s.insert... | [
"assignment.change"
] | 297,679 | 297,680 | u264304509 | cpp |
p02596 |
#include <bits/stdc++.h>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
using namespace std;
template <class T> using vec = std::vector<T>;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
tem... |
#include <bits/stdc++.h>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
using namespace std;
template <class T> using vec = std::vector<T>;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
tem... | [
"assignment.add"
] | 297,689 | 297,690 | u719950507 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
ll k;
cin >> k;
ll ans = 1;
ll na = 1;
if (k == 7 || k == 1) {
cout << 1 << endl;
return 0;
}
rep(i, 1... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
ll k;
cin >> k;
ll ans = 1;
ll na = 7;
if (k == 1 || k == 7) {
cout << 1 << endl;
return 0;
}
rep(i, 1... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 297,693 | 297,692 | u848148267 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
ll k;
cin >> k;
ll ans = 1;
ll na = 1;
if (k == 7 || k == 1) {
cout << 1 << endl;
return 0;
}
rep(i, 1... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
ll k;
cin >> k;
ll ans = 1;
ll na = 7;
if (k == 1 || k == 7) {
cout << 1 << endl;
return 0;
}
rep(i, 1... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"assignment.value.change"
] | 297,695 | 297,692 | u848148267 | cpp |
p02596 | /*
_ __ _ _____ _____ _____
___ _ _| |__ ___ / _|_ __ ___ __ _| | __ |___ |___ |___ |
/ __| | | | '_ \ / _ \ |_| '__/ _ \/ _` | |/ / / / / / / /
| (__| |_| | |_) | __/ _| | | __/ (_| | < / / / / / /
\___|\__,_|_.__/ \___|_| |_| \___|\__,_|_|\_\ ... | /*
_ __ _ _____ _____ _____
___ _ _| |__ ___ / _|_ __ ___ __ _| | __ |___ |___ |___ |
/ __| | | | '_ \ / _ \ |_| '__/ _ \/ _` | |/ / / / / / / /
| (__| |_| | |_) | __/ _| | | __/ (_| | < / / / / / /
\___|\__,_|_.__/ \___|_| |_| \___|\__,_|_|\_\ ... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 297,696 | 297,697 | u389500770 | cpp |
p02596 | /*
_ __ _ _____ _____ _____
___ _ _| |__ ___ / _|_ __ ___ __ _| | __ |___ |___ |___ |
/ __| | | | '_ \ / _ \ |_| '__/ _ \/ _` | |/ / / / / / / /
| (__| |_| | |_) | __/ _| | | __/ (_| | < / / / / / /
\___|\__,_|_.__/ \___|_| |_| \___|\__,_|_|\_\ ... | /*
_ __ _ _____ _____ _____
___ _ _| |__ ___ / _|_ __ ___ __ _| | __ |___ |___ |___ |
/ __| | | | '_ \ / _ \ |_| '__/ _ \/ _` | |/ / / / / / / /
| (__| |_| | |_) | __/ _| | | __/ (_| | < / / / / / /
\___|\__,_|_.__/ \___|_| |_| \___|\__,_|_|\_\ ... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove",
"identifier.replace.add",
"literal.replace.remove"
] | 297,698 | 297,697 | u389500770 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int read() {
int x;
scanf("%d", &x);
return x;
}
const int maxn = 3e5 + 10;
const int INF = 1e9;
int mod = 1e9 + 7;
using namespace std;
int S(int K) {
if (K == 7)
return 1;
vector<bool> r(K, false);
int c = 7, len = 1;
r[c] = true;
while (1) {
c = ... | #include <bits/stdc++.h>
using namespace std;
int read() {
int x;
scanf("%d", &x);
return x;
}
const int maxn = 3e5 + 10;
const int INF = 1e9;
int mod = 1e9 + 7;
using namespace std;
int S(int K) {
if (K == 7 || K == 1)
return 1;
vector<bool> r(K, false);
int c = 7, len = 1;
r[c] = true;
while (1) ... | [
"control_flow.branch.if.condition.change"
] | 297,706 | 297,707 | u435077791 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pi pair<int, int>
#define ff first
#define ss second
#define boost \
ios::sync_with_stdio(false); \
cin.tie(nullptr)
#define en... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pi pair<int, int>
#define ff first
#define ss second
#define boost \
ios::sync_with_stdio(false); \
cin.tie(nullptr)
#define en... | [
"literal.number.change",
"io.output.change"
] | 297,715 | 297,716 | u371555975 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll k;
int main() {
cin >> k;
if (k == 7) {
printf("1");
return 0;
}
if (k % 2 == 0 || k % 5 == 0) {
printf("-1");
return 0;
}
if (k % 7 == 0)
k /= 7;
int r = 1, cnt = 1;
while (r != 0) {
r = (r * 10 + 1) % k;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll k;
int main() {
cin >> k;
if (k == 7 || k == 1) {
printf("1");
return 0;
}
if (k % 2 == 0 || k % 5 == 0) {
printf("-1");
return 0;
}
if (k % 7 == 0)
k /= 7;
int r = 1, cnt = 1;
while (r != 0) {
r = (r * 10 +... | [
"control_flow.branch.if.condition.change"
] | 297,717 | 297,718 | u232994913 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int ans;
int digit = 0;
int quotient;
int seven = 0;
int remaind = 0;
cin >> K;
quotient = K;
if ((K % 2 == 0 or K % 5 == 0) and !(K % 7 == 0)) {
cout << "-1" << endl;
} else {
while (quotient > 1) {
quotient = quotien... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int ans;
int digit = 0;
int quotient;
int seven = 0;
int remaind = 0;
cin >> K;
quotient = K;
if ((K % 2 == 0 or K % 5 == 0) and !(K % 7 == 0)) {
cout << "-1" << endl;
} else {
while (quotient >= 1) {
quotient = quotie... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 297,721 | 297,722 | u858084411 | cpp |
p02596 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 297,725 | 297,726 | u572622695 | cpp |
p02596 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | [
"control_flow.loop.condition.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 297,727 | 297,726 | u572622695 | cpp |
p02596 |
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
if (n % 7 == 0)
n %= 7;
if ((n % 2 == 0) || (n % 5 == 0)) {
cout << "-1" << endl;
return 0;
}
if (n == 1) {
cout << "1" << endl;
return 0;
}
int answer = 1;
long long nowMod = 1;
long long totalMo... | #include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
if (n % 7 == 0)
n /= 7;
if ((n % 2 == 0) || (n % 5 == 0)) {
cout << "-1" << endl;
return 0;
}
if (n == 1) {
cout << "1" << endl;
return 0;
}
int answer = 1;
long long nowMod = 1;
long long totalMod... | [
"expression.operator.change"
] | 297,730 | 297,731 | u509936198 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, m, n) for (int(i) = (int)(m); i < (int)(n); ++i)
#define rep2(i, m, n) for (int(i) = (int)(n)-1; i >= (int)(m); --i)
#define REP(i, n) rep(i, 0, n)
#define REP2(i, n) rep2(i, 0, n)
#define all(hoge) (hoge).begin(), (hoge).end()
#define en '\n'
using ll = lon... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, m, n) for (int(i) = (int)(m); i < (int)(n); ++i)
#define rep2(i, m, n) for (int(i) = (int)(n)-1; i >= (int)(m); --i)
#define REP(i, n) rep(i, 0, n)
#define REP2(i, n) rep2(i, 0, n)
#define all(hoge) (hoge).begin(), (hoge).end()
#define en '\n'
using ll = lon... | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 297,740 | 297,741 | u712993629 | cpp |
p02596 | #include <cstdio>
#include <iostream>
using namespace std;
int n, d;
int main() {
cin >> n;
for (int i = 1; i < n; i++) {
d = (d * 10 + 7) % n;
if (d == 0) {
printf("%d\n", i);
return 0;
}
}
printf("-1\n");
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int n, d;
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
d = (d * 10 + 7) % n;
if (d == 0) {
printf("%d\n", i);
return 0;
}
}
printf("-1\n");
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 297,742 | 297,743 | u572022971 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define REP(i, a, b) for (int i = int(a); i < (int)b; ++i)
#define Graph vector<vecctor<ll>>
#define pairs vector<pair<ll, ll>>
#define pb push_back
using namespace std;
using ll = long long;
const ll INF = 1e18;
const double PI = acos(-1);
t... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define REP(i, a, b) for (int i = int(a); i < (int)b; ++i)
#define Graph vector<vecctor<ll>>
#define pairs vector<pair<ll, ll>>
#define pb push_back
using namespace std;
using ll = long long;
const ll INF = 1e18;
const double PI = acos(-1);
t... | [
"assignment.variable.change",
"identifier.change"
] | 297,752 | 297,753 | u976983883 | cpp |
p02596 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int k;
int negative_output = -1;
int digit_count = 0;
int divide_round_timer = 0;
int divide_number;
cin >> k;
int digit_count_temp = k;
while (digit_count_temp > 0) {
digit_count_temp = digit_count_temp / 10;
digit_count++;... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int k;
int negative_output = -1;
int digit_count = 0;
int divide_round_timer = 0;
int divide_number;
cin >> k;
int digit_count_temp = k;
while (digit_count_temp > 0) {
digit_count_temp = digit_count_temp / 10;
digit_count++;... | [
"variable_declaration.type.widen.change"
] | 297,754 | 297,755 | u429711706 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
int ans = -1;
int mod = 7777777 % K;
int amari = 70000000 % K;
if (K == 7)
ans = 1;
else if (77 % K == 0)
ans = 2;
else if (777 % K == 0)
ans = 3;
else if (7777 % K == 0)
ans = 4;
else if (77777 % K == 0)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
int ans = -1;
int mod = 7777777 % K;
int amari = 70000000 % K;
if (7 % K == 0)
ans = 1;
else if (77 % K == 0)
ans = 2;
else if (777 % K == 0)
ans = 3;
else if (7777 % K == 0)
ans = 4;
else if (77777 % K ==... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"identifier.replace.add",
"literal.replace.remove"
] | 297,763 | 297,764 | u112249856 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
int ans = -1;
int mod = 7777777 % K;
int amari = 70000000 % K;
if (K == 7)
ans = 1;
else if (77 % K == 0)
ans = 2;
else if (777 % K == 0)
ans = 3;
else if (7777 % K == 0)
ans = 4;
else if (77777 % K == 0)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
int ans = -1;
int mod = 7777777 % K;
int amari = 70000000 % K;
if (7 % K == 0)
ans = 1;
else if (77 % K == 0)
ans = 2;
else if (777 % K == 0)
ans = 3;
else if (7777 % K == 0)
ans = 4;
else if (77777 % K ==... | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 297,765 | 297,764 | u112249856 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long cur = 7;
int ans = 1;
while (cur != 0 and ans < 1e8) {
cur = (cur * 10 + 7) % x;
ans++;
}
if (ans == 1e8)
cout << "-1\n";
else
cout << ans << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long cur = 7 % x;
int ans = 1;
while (cur != 0 and ans < 1e8) {
cur = (cur * 10 + 7) % x;
ans++;
}
if (ans == 1e8)
cout << "-1\n";
else
cout << ans << "\n";
return 0;
}
| [
"assignment.change"
] | 297,770 | 297,771 | u164154389 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long cur = 7;
int ans = 1;
while (cur != 0 and ans < 1e7) {
cur = (cur * 10 + 7) % x;
ans++;
}
if (ans == 1e7)
cout << "-1\n";
else
cout << ans << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long cur = 7 % x;
int ans = 1;
while (cur != 0 and ans < 1e8) {
cur = (cur * 10 + 7) % x;
ans++;
}
if (ans == 1e8)
cout << "-1\n";
else
cout << ans << "\n";
return 0;
}
| [
"literal.number.change",
"control_flow.loop.condition.change",
"control_flow.branch.if.condition.change"
] | 297,772 | 297,771 | u164154389 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define repl(i, l, r) for (ll i = (l); i < (r); i++)
#define per(i, n) for (ll i = n - 1; i >= 0; i--)
#define perl(i, r, l) for (ll i = r - 1; i >= l; i--)
#define fi first
#define se second
#define pb push_back
#define ins inse... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define repl(i, l, r) for (ll i = (l); i < (r); i++)
#define per(i, n) for (ll i = n - 1; i >= 0; i--)
#define perl(i, r, l) for (ll i = r - 1; i >= l; i--)
#define fi first
#define se second
#define pb push_back
#define ins inse... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 297,775 | 297,776 | u722640678 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pa pair<int, int>
#define pal pair<long long, long long>
#define pali pair<long long, int>
#define pad pair<double, double>
#define pb push_back
#define mp make_pair
#define COUT(v) ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pa pair<int, int>
#define pal pair<long long, long long>
#define pali pair<long long, int>
#define pad pair<double, double>
#define pb push_back
#define mp make_pair
#define COUT(v) ... | [
"literal.number.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 297,777 | 297,778 | u842917248 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pa pair<int, int>
#define pal pair<long long, long long>
#define pali pair<long long, int>
#define pad pair<double, double>
#define pb push_back
#define mp make_pair
#define COUT(v) ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pa pair<int, int>
#define pal pair<long long, long long>
#define pali pair<long long, int>
#define pad pair<double, double>
#define pb push_back
#define mp make_pair
#define COUT(v) ... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 297,779 | 297,778 | u842917248 | cpp |
p02596 | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mod 1000000007
typedef int integer;
#define int long long
#ifndef ONLINE_JUDGE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#else
#define trace(...) 0
#endif
using namespace std;
template <typename Arg1> void __f(const char *name, Arg1 &&arg... | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mod 1000000007
typedef int integer;
#define int long long
#ifndef ONLINE_JUDGE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#else
#define trace(...) 0
#endif
using namespace std;
template <typename Arg1> void __f(const char *name, Arg1 &&arg... | [
"expression.operation.unary.arithmetic.remove"
] | 297,780 | 297,781 | u265218082 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll K;
cin >> K;
if (K & 7 == 0) {
K = K / 7;
}
if (7 % K == 0) {
cout << 1 << endl;
} else {
ll sum = 0, d = 1, y = 1;
rep(i, 10 * K) {
... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll K;
cin >> K;
if (K % 7 == 0) {
K = K / 7;
}
if (7 % K == 0) {
cout << 1 << endl;
} else {
ll sum = 0, d = 1, y = 1;
rep(i, 10 * K) {
... | [
"control_flow.branch.if.condition.change"
] | 297,788 | 297,789 | u891540210 | cpp |
p02596 | // abc174_c
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include... | // abc174_c
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include... | [
"assignment.change"
] | 297,795 | 297,796 | u180077477 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k;
cin >> k;
bool flag = false;
ll l = (k % 7 == 0) ? 9 * k / l : 9 * k;
ll n = 1;
for (ll i ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k;
cin >> k;
bool flag = false;
ll l = (k % 7 == 0) ? 9 * k / 7 : 9 * k;
ll n = 1;
for (ll i ... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 297,797 | 297,798 | u388913970 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k;
cin >> k;
bool flag = false;
ll l = (k % 7 == 0) ? 9 * k / l : 9 * k;
ll n = 1;
for (ll i ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k;
cin >> k;
bool flag = false;
ll l = (k % 7 == 0) ? 9 * k / 7 : 9 * k;
ll n = 1;
for (ll i ... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 297,799 | 297,798 | u388913970 | cpp |
p02596 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int K;
cin >> K;
int seven = 7 % K;
for (int i = 0; i <= K; i++) {
if (seven == 0) {
cout << i << endl;
return 0;
}
seven = (seven * 10 + 7) % K;
}
cout << -1 << endl;
re... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int K;
cin >> K;
int seven = 7 % K;
for (int i = 1; i <= K; i++) {
if (seven == 0) {
cout << i << endl;
return 0;
}
seven = (seven * 10 + 7) % K;
}
cout << -1 << endl;
re... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 297,800 | 297,801 | u174931884 | cpp |
p02596 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int K;
cin >> K;
int seven = 7 % K;
for (int i = 0; i < K; i++) {
if (seven == 0) {
cout << i << endl;
return 0;
}
seven = (seven * 10 + 7) % K;
}
cout << -1 << endl;
ret... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int K;
cin >> K;
int seven = 7 % K;
for (int i = 1; i <= K; i++) {
if (seven == 0) {
cout << i << endl;
return 0;
}
seven = (seven * 10 + 7) % K;
}
cout << -1 << endl;
re... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 297,802 | 297,801 | u174931884 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 297,806 | 297,804 | u008456493 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"control_flow.branch.if.condition.change"
] | 297,807 | 297,804 | u008456493 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//ループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
//コンテナ
#define ALL(x) (x).begin(... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 297,808 | 297,804 | u008456493 | cpp |
p02596 | #include <algorithm>
#include <array>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (decltype(n) i = 0; i < n; ++i)
inline constexpr ll Inf = (1ULL << 62) - 1;
template <class T> void updatemax(T &a, T b) {
... | #include <algorithm>
#include <array>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (decltype(n) i = 0; i < n; ++i)
inline constexpr ll Inf = (1ULL << 62) - 1;
template <class T> void updatemax(T &a, T b) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 297,810 | 297,811 | u185413585 | cpp |
p02596 | //
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | //
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | [
"assignment.change"
] | 297,812 | 297,813 | u133449036 | cpp |
p02596 | #include <algorithm>
#include <bitset>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define db double
#define vi vector<int>
#define pb push_back
#define fi first
#define se second
#define ll long long
#define ld long doubl... | #include <algorithm>
#include <bitset>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define db double
#define vi vector<int>
#define pb push_back
#define fi first
#define se second
#define ll long long
#define ld long doubl... | [
"literal.number.change",
"variable_declaration.value.change"
] | 297,814 | 297,815 | u302934691 | cpp |
p02596 | #include <bits/stdc++.h>
#define ll int
#define ld long double
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define mp make_pair
#define all(x) x.begin(), x.end()
#define fastio \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define ll int
#define ld long double
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define mp make_pair
#define all(x) x.begin(), x.end()
#define fastio \
ios_base::sync_with_stdio(false); ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 297,820 | 297,821 | u144697543 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll k, ans = -1, s = 7, t = 1;
cin >> k;
for (int i = 1; i < k; i++) {
s %= k;
if (s == 0) {
ans = i;
break;
}
s = s * 10 + 7;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll k, ans = -1, s = 7, t = 1;
cin >> k;
for (int i = 1; i <= k; i++) {
s %= k;
if (s == 0) {
ans = i;
break;
}
s = s * 10 + 7;
}
cout << ans << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 297,823 | 297,824 | u646051775 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll k, ans = -1, s = 7, t = 1;
cin >> k;
for (int i = 1; i < k; i++) {
s %= k;
if (s == 0) {
ans = i;
break;
}
s = s * 10 + 7;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll k, ans = -1, s = 7, t = 1;
cin >> k;
for (int i = 1; i <= k; i++) {
s %= k;
if (s == 0) {
ans = i;
break;
}
s = s * 10 + 7;
}
cout << ans << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 297,825 | 297,824 | u646051775 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll, ll> pll;
typedef vector<bool> vb;
const ll oo = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-9;
#define sz(c) ll((c).size())
#define all(c) begin(c), end(c)
#define FOR(i, a, b) for (ll i = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll, ll> pll;
typedef vector<bool> vb;
const ll oo = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-9;
#define sz(c) ll((c).size())
#define all(c) begin(c), end(c)
#define FOR(i, a, b) for (ll i = ... | [
"expression.operation.binary.add"
] | 297,826 | 297,827 | u007194916 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#include <string.h>
#define vpp vector<pair<int, int>>
#define ll long long int
#define ull unsigned long long
#define ld long double
#define fi(i, a, b) for (ll i = a; i < b; i++)
#define fj(j, a, b) for (ll j = a; j < b; j++)
#define vi vector<int>
#define vl vector<ll>
... | #include <bits/stdc++.h>
using namespace std;
#include <string.h>
#define vpp vector<pair<int, int>>
#define ll long long int
#define ull unsigned long long
#define ld long double
#define fi(i, a, b) for (ll i = a; i < b; i++)
#define fj(j, a, b) for (ll j = a; j < b; j++)
#define vi vector<int>
#define vl vector<ll>
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 297,850 | 297,851 | u317642639 | cpp |
p02596 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_set>
#include <... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_set>
#include <... | [
"call.remove"
] | 297,854 | 297,855 | u038537254 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
int k;
cin >> k;
ll s = 7;
int ans = -1;
for (double i = 1.0; i < k; i = i + 1.0) {
if (k % 2 == 0 || k % 5 == 0)
break;
else {
s *= 10;
s %= (9 * k)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
int k;
cin >> k;
ll s = 7;
int ans = -1;
for (double i = 1.0; i < 9 * k; i = i + 1.0) {
if (k % 2 == 0 || k % 5 == 0)
break;
else {
s *= 10;
s %= (9 ... | [
"control_flow.loop.for.condition.change"
] | 297,856 | 297,857 | u257634433 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll qpow(ll a, ll b, ll MOD) {
ll ans = 1;
a %= MOD;
while (b) {
if (b & 1)
ans = (ans * a) % MOD;
a = (a * a) % MOD;
b >>= 1;
}
return ans;
}
int main() {
ll n;
cin >> n;
if (n / 7 == 0)
n /= 7;
ll ans = 9 * n, r... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll qpow(ll a, ll b, ll MOD) {
ll ans = 1;
a %= MOD;
while (b) {
if (b & 1)
ans = (ans * a) % MOD;
a = (a * a) % MOD;
b >>= 1;
}
return ans;
}
int main() {
ll n;
cin >> n;
if (n % 7 == 0)
n /= 7;
ll ans = 9 * n, r... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 297,858 | 297,859 | u692737203 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> void fin(T a) {
cout << a << endl;
exit(0);
}
signed main() {
ll k;
cin >> k;
ll now = 1;
set<ll> s;
for (int i = 1;; i++) {
now = (now * 10 + 7) % k;
if (!now)
fin(i);
if (s.count(now))
fin... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> void fin(T a) {
cout << a << endl;
exit(0);
}
signed main() {
ll k;
cin >> k;
ll now = 0;
set<ll> s;
for (int i = 1;; i++) {
now = (now * 10 + 7) % k;
if (!now)
fin(i);
if (s.count(now))
fin... | [
"literal.number.change",
"variable_declaration.value.change"
] | 297,867 | 297,868 | u942774736 | cpp |
p02596 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll n, i;
cin >> n;
if (n % 2 == 0)
cout << -1;
else {
ll k = 0;
for (i = 1; i <= n; i++) {
k = k * 10 + 7;
if (k % n == 0) {
cout << i;
return 0;
}
}
cout << -1;
}
re... |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll n, i;
cin >> n;
if (n % 2 == 0)
cout << -1;
else {
ll k = 0;
for (i = 1; i <= n; i++) {
k = k * 10 + 7;
k = k % n;
if (k % n == 0) {
cout << i;
return 0;
}
}
cout... | [
"assignment.add"
] | 297,873 | 297,874 | u317815226 | cpp |
p02596 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define INF 1000000000000
#define MOD 10000007
#define PI 3.14159265359
typedef long long ll;
//
int main() ... |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define INF 1000000000000
#define MOD 10000007
#define PI 3.14159265359
typedef long long ll;
//
int main() ... | [
"expression.operation.binary.remove",
"assignment.change"
] | 297,878 | 297,879 | u168871820 | cpp |
p02596 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
ll x = 0;
for (int i = 1; i < 200000; i++) {
x = (x * 10 + 7) % n;
if (x == 0) {
cout << i << endl;
return 0;
}
}
cout << -1;
}
| #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
ll x = 0;
for (int i = 1; i < 2000000; i++) {
x = (x * 10 + 7) % n;
if (x == 0) {
cout << i << endl;
return 0;
}
}
cout << -1;
}
| [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 297,880 | 297,881 | u354941471 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int K;
//入力
cin >> K;
int ans = -1;
long long int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven + 7;
if (seven % K == 0) {
ans = i;
break;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
//入力
cin >> K;
int ans = -1;
int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven % K + 7;
if (seven % K == 0) {
ans = i;
break;
}
}
cout << ans << endl;
}
| [
"assignment.change"
] | 297,901 | 297,902 | u486060546 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
//入力
cin >> K;
int ans = -1;
int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven + 7;
if (seven % K == 0) {
ans = i;
break;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
//入力
cin >> K;
int ans = -1;
int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven % K + 7;
if (seven % K == 0) {
ans = i;
break;
}
}
cout << ans << endl;
}
| [
"assignment.change"
] | 297,903 | 297,902 | u486060546 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
//入力
cin >> K;
int ans = -1;
int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven + 7;
if (seven % K == 0) {
ans = i + 1;
break;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
//入力
cin >> K;
int ans = -1;
int seven = 0;
for (int i = 1; i <= 1000001; i++) {
seven = 10 * seven % K + 7;
if (seven % K == 0) {
ans = i;
break;
}
}
cout << ans << endl;
}
| [
"assignment.change",
"expression.operation.binary.remove"
] | 297,904 | 297,902 | u486060546 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;
int main() {
int k;
cin >> k;
int a = 0;
for (int i = 0; i < 2000000; i++) {
a = (a * 10 + 7) % k;
if (a == 0) {
cout << i + 1 << endl... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;
int main() {
int k;
cin >> k;
int a = 0;
for (int i = 0; i < 1000000; i++) {
a = (a * 10 + 7) % k;
if (a == 0) {
cout << i + 1 << endl... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 297,917 | 297,918 | u188332959 | cpp |
p02596 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;
int main() {
int k;
cin >> k;
int a = 0;
for (int i = 0; i < 1000000; i++) {
a = (a * 10 + 7) % k;
if (a == 0) {
cout << i + 1 << endl... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;
int main() {
int k;
cin >> k;
int a = 0;
for (int i = 0; i < 2000000; i++) {
a = (a * 10 + 7) % k;
if (a == 0) {
cout << i + 1 << endl... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 297,919 | 297,920 | u188332959 | cpp |
p02596 | #include <bits/stdc++.h>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#define endl "\n"
#define FOR(variable, start, end) \
for (int variable = start; variable < end; ++variable)
#define ll long long int
#define vi vector<int>
... | #include <bits/stdc++.h>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#define endl "\n"
#define FOR(variable, start, end) \
for (int variable = start; variable < end; ++variable)
#define ll long long int
#define vi vector<int>
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 297,921 | 297,922 | u498389563 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ocut cout
#define ouct cout
#define itn int
struct Union {
vector<ll> par;
Union(ll a) { par = vector<ll>(a, -1); }
ll find(ll a) {
if (par[a] < 0) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ocut cout
#define ouct cout
#define itn int
struct Union {
vector<ll> par;
Union(ll a) { par = vector<ll>(a, -1); }
ll find(ll a) {
if (par[a] < 0) {
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 297,933 | 297,932 | u222643545 | cpp |
p02596 | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main() {
long long k;
long long count = 0;
long long x = 0;
cin >> k;
while (count < k) {
x = ((x * 10) + 7) % k;
count++;
if (x == 0) {
break;
}
}
if (count... | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main() {
long long k;
long long count = 0;
long long x = 0;
cin >> k;
while (count <= k) {
x = ((x * 10) + 7) % k;
count++;
if (x == 0) {
break;
}
}
if (coun... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"control_flow.branch.if.condition.change"
] | 297,946 | 297,947 | u561441716 | cpp |
p02596 | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main() {
long long k;
long long count = 0;
long long x = 0;
cin >> k;
while (count < k) {
x = ((x * 10) + 7) % k;
count++;
if (x == 0) {
break;
}
}
if (count... | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main() {
long long k;
long long count = 0;
long long x = 0;
cin >> k;
while (count <= k) {
x = ((x * 10) + 7) % k;
count++;
if (x == 0) {
break;
}
}
if (coun... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"control_flow.branch.if.condition.change"
] | 297,948 | 297,947 | u561441716 | cpp |
p02596 | #include <bits/stdc++.h>
#define ll long long int
#define i(a, n) int a = n;
#define l(a, n) ll a = n;
#define d(a, n) double a = n;
#define s(a) string a;
#define c(a) \
ll a; \
... | #include <bits/stdc++.h>
#define ll long long int
#define i(a, n) int a = n;
#define l(a, n) ll a = n;
#define d(a, n) double a = n;
#define s(a) string a;
#define c(a) \
ll a; \
... | [
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 297,952 | 297,953 | u576357372 | cpp |
p02596 | #include <iostream>
using namespace std;
int main(void) {
int k, i, temp = 7, t = 0;
cin >> k;
for (i = 1; i <= 1000000; i++) {
if (temp % k == 0) {
t = 1;
cout << i << '\n';
}
temp = (temp * 10 + 7) % k;
}
if (t == 0) {
cout << "-1" << '\n';
}
}
| #include <iostream>
using namespace std;
int main(void) {
int k, i, temp = 7, t = 0;
cin >> k;
for (i = 1; i <= 1000000; i++) {
if (temp % k == 0) {
t = 1;
cout << i << '\n';
break;
}
temp = (temp * 10 + 7) % k;
}
if (t == 0) {
cout << "-1" << '\n';
}
}
| [
"control_flow.break.add"
] | 297,958 | 297,959 | u145635628 | cpp |
p02596 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#in... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#in... | [
"assignment.add"
] | 297,968 | 297,969 | u006717664 | cpp |
p02596 | #include <bits/stdc++.h>
#include <unordered_map>
const double PI = acos(-1);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
using P = pair<ll, ll>;
using V = vector<ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define rep2(i... | #include <bits/stdc++.h>
#include <unordered_map>
const double PI = acos(-1);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
using P = pair<ll, ll>;
using V = vector<ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define rep2(i... | [
"assignment.change"
] | 297,974 | 297,975 | u145179061 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int x = k % 10;
if (x == 1 || x == 3 || x == 7 || x == 9) {
int y = 1;
long long rem = 7 % k;
for (int n = 1; n <= 1e6; n++) {
if (rem == 0) {
cout << k;
y = 0;
break;
} else
rem ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int x = k % 10;
if (x == 1 || x == 3 || x == 7 || x == 9) {
int y = 1;
long long rem = 7 % k;
for (int n = 1; n <= 1e6; n++) {
if (rem == 0) {
cout << n;
y = 0;
break;
} else
rem ... | [
"identifier.change",
"io.output.change"
] | 297,976 | 297,977 | u382507868 | cpp |
p02596 |
#include <algorithm>
#include <chrono>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#i... |
#include <algorithm>
#include <chrono>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#i... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 297,995 | 297,996 | u405653069 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | [
"literal.number.change",
"variable_declaration.value.change"
] | 297,998 | 297,999 | u360980679 | cpp |
p02596 | #ifdef LOCAL
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, t) for (ll i = (ll)(s); i < (ll)(t); i++)
#define rrep(i, s, t) for (ll i = (ll)(s - 1); (ll)(t) <= i; i--)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ... | #ifdef LOCAL
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, t) for (ll i = (ll)(s); i < (ll)(t); i++)
#define rrep(i, s, t) for (ll i = (ll)(s - 1); (ll)(t) <= i; i--)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ... | [
"control_flow.branch.if.condition.change"
] | 298,000 | 298,001 | u899645116 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
int k, i, ans = -1, tmp = 0;
for (i = 1; i <= k + 100; i++) {
tmp = tmp * 10 + 7;
tmp %= k;
if (!tmp) {
ans = i;
break;
}
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
int k, i, ans = -1, tmp = 0;
cin >> k;
for (i = 1; i <= k + 100; i++) {
tmp = tmp * 10 + 7;
tmp %= k;
if (!tmp) {
ans = i;
break;
}
}
cout << ans;
return 0;
} | [] | 298,004 | 298,005 | u408672537 | cpp |
p02596 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <ss... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <ss... | [
"assignment.change"
] | 298,006 | 298,007 | u814534994 | cpp |
p02596 | /*
* Created by Andrei Arhire 02/08/2020
* Copyright © 2020 Andrei Arhire. All rights reserved.
*/
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define lll long long
#define llf __float128
#define lld long double
using namespace std;
const lll NR = 1e5 + 10,... | /*
* Created by Andrei Arhire 02/08/2020
* Copyright © 2020 Andrei Arhire. All rights reserved.
*/
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define lll long long
#define llf __float128
#define lld long double
using namespace std;
const lll NR = 1e5 + 10,... | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 298,012 | 298,013 | u041175271 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
// [a -> b-1]
#define reps(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
// [0 -> a-1]
#define rep(i, a) reps(i, 0, (a))
// [a-1 -> b]
#define rreps(i, a, b) for (int i = (int)((a)-1); i >= (int)(b); i--)
// [a-1 -> 0]
#define rre... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
// [a -> b-1]
#define reps(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
// [0 -> a-1]
#define rep(i, a) reps(i, 0, (a))
// [a-1 -> b]
#define rreps(i, a, b) for (int i = (int)((a)-1); i >= (int)(b); i--)
// [a-1 -> 0]
#define rre... | [
"assignment.change"
] | 298,016 | 298,017 | u946322619 | cpp |
p02596 | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#define ll long long
#define ull unsigned long long
#define make(type, x) \
type x; ... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#define ll long long
#define ull unsigned long long
#define make(type, x) \
type x; ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 298,018 | 298,019 | u695019278 | cpp |
p02596 | #include "algorithm"
#include "bitset"
#include "cassert"
#include "climits"
#include "cmath"
#include "cstdio"
#include "ctime"
#include "functional"
#include "iomanip"
#include "iostream"
#include "list"
#include "map"
#include "numeric"
#include "queue"
#include "random"
#include "set"
#include "stack"
#include "str... | #include "algorithm"
#include "bitset"
#include "cassert"
#include "climits"
#include "cmath"
#include "cstdio"
#include "ctime"
#include "functional"
#include "iomanip"
#include "iostream"
#include "list"
#include "map"
#include "numeric"
#include "queue"
#include "random"
#include "set"
#include "stack"
#include "str... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 298,020 | 298,021 | u468700753 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int func(int x) {
int a = 7;
int ans = 1;
for (int i = 0; i < x; i++) {
if (a % x != 0) {
a = a * 10 + 7;
ans++;
} else {
return ans;
}
}
return -1;
}
int main() {
long K;
cin >> K;
cout << func(K);
} | #include <bits/stdc++.h>
using namespace std;
int func(int x) {
long a = 7;
int ans = 1;
for (int i = 0; i < x; i++) {
if (a % x != 0) {
a = (a * 10 + 7) % x;
ans++;
} else {
return ans;
}
}
return -1;
}
int main() {
long K;
cin >> K;
cout << func(K);
} | [
"variable_declaration.type.primitive.change",
"assignment.change"
] | 298,048 | 298,049 | u750228275 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int k;
cin >> k;
set<int> st;
int i = 10 % k;
int j = 7 % k;
int s = 7 % k;
st.insert(j); // cout<<i<<" "<<s<<endl;
if (k = 1 || k == 7)
cout << 1 << endl;
else {
int d = 1;
while (1) {
s = ((i * s) ... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int k;
cin >> k;
set<int> st;
int i = 10 % k;
int j = 7 % k;
int s = 7 % k;
st.insert(j); // cout<<i<<" "<<s<<endl;
if (k == 1 || k == 7)
cout << 1 << endl;
else {
int d = 1;
while (1) {
s = ((i * s)... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 298,050 | 298,051 | u159185842 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int K;
cin >> K;
long long int N = 7;
long long int i = 1;
long long int output = -1;
if (K % 2 == 0) {
cout << output << '\n';
return 0;
}
while (i < K) {
if (N % K == 0) {
output = i;
break;
}
N %= ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int K;
cin >> K;
long long int N = 7;
long long int i = 1;
long long int output = -1;
if (K % 2 == 0) {
cout << output << '\n';
return 0;
}
while (i < 7 * K + 1) {
if (N % K == 0) {
output = i;
break;
}
... | [
"control_flow.loop.condition.change"
] | 298,054 | 298,053 | u060650015 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int p = 7, ans = 1;
if (k % 2 == 0 || k % 5 == 0)
cout << -1 << endl;
else if (k == 7)
cout << 1 << endl;
else {
while (p != 0) {
p = (10 * p + 7) % k;
ans++;
}
cout << ans << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int p = 7, ans = 1;
if (k % 2 == 0 || k % 5 == 0)
cout << -1 << endl;
else if (k == 7 || k == 1)
cout << 1 << endl;
else {
while (p != 0) {
p = (10 * p + 7) % k;
ans++;
}
cout << ans << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 298,059 | 298,060 | u259975636 | cpp |
p02596 | #pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll, ll> pll;
typedef vector<pair<l... | #pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll, ll> pll;
typedef vector<pair<l... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 298,064 | 298,065 | u092258268 | cpp |
p02596 | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 298,072 | 298,073 | u205406594 | cpp |
p02596 | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 298,074 | 298,073 | u205406594 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int c = 1, a = 7 % k;
while (a != 0) {
c++;
int b = (a * 10) + a;
a = b % k;
if (c == pow(10, 7)) {
c = -1;
break;
}
}
cout << c << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int c = 1, a = 7 % k;
while (a != 0) {
c++;
int b = (a * 10) + 7;
a = b % k;
if (c == pow(10, 7)) {
c = -1;
break;
}
}
cout << c << endl;
return 0;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 298,082 | 298,083 | u323864528 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
using ll = long long;
using ld = long double;
#define int ll
#define double ld
#define VARNAME(v) #v
using P = pair<int, int>;
constexpr int MOD = 1000000007;
// constexpr int MOD = 99824... | #include <bits/stdc++.h>
using namespace std;
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
using ll = long long;
using ld = long double;
#define int ll
#define double ld
#define VARNAME(v) #v
using P = pair<int, int>;
constexpr int MOD = 1000000007;
// constexpr int MOD = 99824... | [
"literal.number.change",
"variable_declaration.value.change"
] | 298,086 | 298,087 | u317754719 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int main() {
ll K;
cin >> K;
// if (K % 2 == 0) {
// cout << -1 << endl;
// return(0);
// }
ll c = 1;
ll s = 7;
ll ss = 7;
set<pair<ll, ll>> H;
H.insert(pair<ll, ll>(s, ss));
while (true) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int main() {
ll K;
cin >> K;
// if (K % 2 == 0) {
// cout << -1 << endl;
// return(0);
// }
ll c = 1;
ll s = 7;
ll ss = 7;
set<pair<ll, ll>> H;
H.insert(pair<ll, ll>(s, ss));
while (true) {
... | [
"control_flow.branch.if.condition.change"
] | 298,094 | 298,095 | u268674269 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
t... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
t... | [
"assignment.change"
] | 298,098 | 298,099 | u414034840 | cpp |
p02596 | #include <bits/stdc++.h>
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long long
#define pii pair<... | #include <bits/stdc++.h>
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long long
#define pii pair<... | [
"control_flow.loop.condition.change"
] | 298,104 | 298,105 | u679471819 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll n, d, cnt = 1;
set<ll> s;
cin >> n;
ll aux = 1;
if (n % 7 == 0)
n %= 7;
while (1) {
if (s.find(aux) != s.end()) {
cout << "-1";
ret... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll n, d, cnt = 1;
set<ll> s;
cin >> n;
ll aux = 1;
if (n % 7 == 0)
n /= 7;
while (1) {
if (s.find(aux) != s.end()) {
cout << "-1";
re... | [
"expression.operator.change"
] | 298,112 | 298,113 | u341555499 | cpp |
p02596 | // By TheOneYouWant
#pragma GCC optimize("-O2")
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | // By TheOneYouWant
#pragma GCC optimize("-O2")
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 298,122 | 298,123 | u367924182 | cpp |
p02596 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MAX = LLONG_MAX;
int main() {
int k;
cin >> k;
bool judge = false;
int ans;
ll num = 7;
ll rem;
if (k % 2 == 0) {
for (int i = 1; i <= 100000000; i++) {
rem = num % k... | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MAX = LLONG_MAX;
int main() {
int k;
cin >> k;
bool judge = false;
int ans;
ll num = 7;
ll rem;
if (k % 2 != 0) {
for (int i = 1; i <= 100000000; i++) {
rem = num % k... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 298,128 | 298,129 | u166008195 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k;
cin >> k;
long s = 7, cnt = 1;
bool T = true;
while (1) {
if (s == 0)
break;
s = s * 10 + 7;
s %= k;
cnt++;
if (cnt == 100000000) {
T = false;
break;
}
}
if (T)
cout << cnt << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int k;
cin >> k;
long s = 7, cnt = 1;
bool T = true;
s %= k;
while (1) {
if (s == 0)
break;
s = s * 10 + 7;
s %= k;
cnt++;
if (cnt == 100000000) {
T = false;
break;
}
}
if (T)
cout << cnt << endl... | [
"assignment.add"
] | 298,137 | 298,138 | u627927445 | cpp |
p02596 | #include <iostream>
using namespace std;
int main() {
int K;
cin >> K;
long long t = 7, s = 0;
for (int i = 1; i < K; ++i) {
s += t;
s %= K;
if (!s) {
cout << i << endl;
return 0;
}
t *= 10;
t %= K;
}
cout << -1 << endl;
}
| #include <iostream>
using namespace std;
int main() {
int K;
cin >> K;
long long t = 7, s = 0;
for (int i = 1; i <= K; ++i) {
s += t;
s %= K;
if (!s) {
cout << i << endl;
return 0;
}
t *= 10;
t %= K;
}
cout << -1 << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 298,145 | 298,146 | u107077660 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef vector<vector<vector<ll>>> vvvll;
typedef vector<bool> vb;
typedef vector<vector<bool>> vvb;
typedef vector<vector<vector<bool>>> vvvb;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef vector<vector<vector<ll>>> vvvll;
typedef vector<bool> vb;
typedef vector<vector<bool>> vvb;
typedef vector<vector<vector<bool>>> vvvb;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll... | [
"assignment.add"
] | 298,147 | 298,148 | u355335354 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = n % k * 10 + 7;
count++;
if (count >= 100000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = (n % k) * 10 + 7;
count++;
if (count >= 1000000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 298,151 | 298,152 | u257748228 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = n % k * 10 + 7;
count++;
if (count >= 10000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = (n % k) * 10 + 7;
count++;
if (count >= 1000000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 298,153 | 298,152 | u257748228 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = n % k * 10 + 7;
count++;
if (count >= 1000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = (n % k) * 10 + 7;
count++;
if (count >= 1000000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 298,154 | 298,152 | u257748228 | cpp |
p02596 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = n % k * 10 + 7;
count++;
if (count >= k) {
count = -1;
break;
}
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n = 7, k, count = 1;
cin >> k;
while (n % k) {
n = (n % k) * 10 + 7;
count++;
if (count >= 1000000) {
count = -1;
break;
}
}
cout << count;
return 0;
} | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 298,155 | 298,152 | u257748228 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.