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 |
|---|---|---|---|---|---|---|---|
p02554 | // #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const int NINF = -1 * INF;
const long long LLINF = 1ll << 60;
const long long LLNINF = -1 * LLINF;
template <class Ch, class Tr, class Container>
basic_ostream<Ch, Tr> &operator<<(basic... | // #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const int NINF = -1 * INF;
const long long LLINF = 1ll << 60;
const long long LLNINF = -1 * LLINF;
template <class Ch, class Tr, class Container>
basic_ostream<Ch, Tr> &operator<<(basic... | [
"call.arguments.change",
"call.arguments.add"
] | 250,809 | 250,810 | u064505481 | cpp |
p02554 | // #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const int NINF = -1 * INF;
const long long LLINF = 1ll << 60;
const long long LLNINF = -1 * LLINF;
template <class Ch, class Tr, class Container>
basic_ostream<Ch, Tr> &operator<<(basic... | // #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const int NINF = -1 * INF;
const long long LLINF = 1ll << 60;
const long long LLNINF = -1 * LLINF;
template <class Ch, class Tr, class Container>
basic_ostream<Ch, Tr> &operator<<(basic... | [
"call.arguments.change"
] | 250,811 | 250,810 | u064505481 | cpp |
p02554 | #include <bits/stdc++.h>
#define r(i, a, b) for (register int i = a; i <= b; i++)
#define ll long long
#define ull unsigned long long
using namespace std;
const ll mod = 1e9 + 7;
ll qpow(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return re... | #include <bits/stdc++.h>
#define r(i, a, b) for (register int i = a; i <= b; i++)
#define ll long long
#define ull unsigned long long
using namespace std;
const ll mod = 1e9 + 7;
ll qpow(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return re... | [
"expression.operation.binary.remove"
] | 250,820 | 250,819 | u538436006 | cpp |
p02554 | #include <bits/stdc++.h>
#define rr(i, b) for (int i = 0; i < int(b); i++)
#define vi(n, a) \
vector<int> a(n); \
rr(i, n) cin >> a[i]
#define pvec(a) ... | #include <bits/stdc++.h>
#define rr(i, b) for (int i = 0; i < int(b); i++)
#define vi(n, a) \
vector<int> a(n); \
rr(i, n) cin >> a[i]
#define pvec(a) ... | [
"assignment.change"
] | 250,821 | 250,822 | u863370423 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ms(x, y) memset(x, y, sizeof(x))
#define lowbit(x) ((x) & (-x))
#define sqr(x) ((x) * (x))
typedef long long LL;
typedef pair<int, int> pii;
typedef pair<LL, LL> pll;
const LL MOD = 1e9 + 7;
LL qpow(LL a, LL b) {
LL ret = 1;
while (b) {
if (b & 1)
(r... | #include <bits/stdc++.h>
using namespace std;
#define ms(x, y) memset(x, y, sizeof(x))
#define lowbit(x) ((x) & (-x))
#define sqr(x) ((x) * (x))
typedef long long LL;
typedef pair<int, int> pii;
typedef pair<LL, LL> pll;
const LL MOD = 1e9 + 7;
LL qpow(LL a, LL b) {
LL ret = 1;
while (b) {
if (b & 1)
(r... | [] | 250,826 | 250,827 | u353919145 | cpp |
p02554 | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
/*ll qcheng(ll x,ll y)
{
ll res=0;
while(y)
{
if(y&1) res=(res+x)%mod;
y/=2;
x=x*2%mod;
}
return res%mod;... | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
/*ll qcheng(ll x,ll y)
{
ll res=0;
while(y)
{
if(y&1) res=(res+x)%mod;
y/=2;
x=x*2%mod;
}
return res%mod;... | [
"expression.operation.binary.add"
] | 250,828 | 250,829 | u353919145 | cpp |
p02554 | /*
* @Author: Kabid
* @Date: {{create_time}}
* @Last Modified by: Kabid
* @Last Modified time: 2020-09-20 20:56:55
*/
#include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
#define ll long long
#define in(x) scanf("%d", &x);
#define out(x) printf("%d", x);
#define ins(x) scanf("%s", x);
#define outs(... | /*
* @Author: Kabid
* @Date: {{create_time}}
* @Last Modified by: Kabid
* @Last Modified time: 2020-09-20 20:58:29
*/
#include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
#define ll long long
#define in(x) scanf("%d", &x);
#define out(x) printf("%d", x);
#define ins(x) scanf("%s", x);
#define outs(... | [
"expression.operation.binary.add"
] | 250,832 | 250,833 | u018679195 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)
#define RREP(i, x) for (int i = ((int)(x)-1); i >= 0; i--)
#define RREPS(i, x) fo... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)
#define RREP(i, x) for (int i = ((int)(x)-1); i >= 0; i--)
#define RREPS(i, x) fo... | [
"assignment.add"
] | 250,841 | 250,842 | u413066312 | cpp |
p02554 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#incl... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#incl... | [
"expression.operation.binary.add"
] | 250,843 | 250,844 | u247679666 | cpp |
p02554 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#incl... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#incl... | [
"expression.operation.binary.add"
] | 250,845 | 250,844 | u247679666 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
const ll modseed = pow(10, 9) + 7;
template <typename T> vector<T> getValues(int num) {
vector<T> values(num);
for (int i = 0; i < num; i+... | #include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
const ll modseed = pow(10, 9) + 7;
template <typename T> vector<T> getValues(int num) {
vector<T> values(num);
for (int i = 0; i < num; i+... | [
"expression.operator.change"
] | 250,846 | 250,847 | u188687538 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
const ll modseed = pow(10, 9) + 7;
template <typename T> vector<T> getValues(int num) {
vector<T> values(num);
for (int i = 0; i < num; i+... | #include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
const ll modseed = pow(10, 9) + 7;
template <typename T> vector<T> getValues(int num) {
vector<T> values(num);
for (int i = 0; i < num; i+... | [
"expression.operator.change"
] | 250,846 | 250,848 | u188687538 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
// vector<vector<ll>> data(3, vector<ll>(4));
// vector<ll> data(N);
// str s = to_string(i);
// int i = c - '0'
// sort(data.begin(), data.end());
// reverse(data.begin(), data.end());
//... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
// vector<vector<ll>> data(3, vector<ll>(4));
// vector<ll> data(N);
// str s = to_string(i);
// int i = c - '0'
// sort(data.begin(), data.end());
// reverse(data.begin(), data.end());
//... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 250,854 | 250,855 | u957843308 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
// vector<vector<ll>> data(3, vector<ll>(4));
// vector<ll> data(N);
// str s = to_string(i);
// int i = c - '0'
// sort(data.begin(), data.end());
// reverse(data.begin(), data.end());
//... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
// vector<vector<ll>> data(3, vector<ll>(4));
// vector<ll> data(N);
// str s = to_string(i);
// int i = c - '0'
// sort(data.begin(), data.end());
// reverse(data.begin(), data.end());
//... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 250,856 | 250,855 | u957843308 | cpp |
p02554 | /*
* @Author: Nazrul Islam
* @Date: 2020-09-20 20:15:13
* @Last Modified by: Nazrul Islam
* @Last Modified time: 2020-09-20 20:43:38
*/
#include <bits/stdc++.h>
using namespace std;
#define IO \
ios_base::sync_with_stdio(false); ... | /*
* @Author: Nazrul Islam
* @Date: 2020-09-20 20:15:13
* @Last Modified by: Nazrul Islam
* @Last Modified time: 2020-09-20 21:06:57
*/
#include <bits/stdc++.h>
using namespace std;
#define IO \
ios_base::sync_with_stdio(false); ... | [
"assignment.add"
] | 250,859 | 250,860 | u738787209 | cpp |
p02554 | #include <iostream>
#include <set>
#include <vector>
#define take_input freopen("input.txt", "r", stdin)
#define ll long long int
#define pb push_back
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.t... | #include <iostream>
#include <set>
#include <vector>
#define take_input freopen("input.txt", "r", stdin)
#define ll long long int
#define pb push_back
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.t... | [
"expression.operation.binary.remove"
] | 250,861 | 250,862 | u404799758 | cpp |
p02554 | #include <iostream>
#include <set>
#include <vector>
#define take_input freopen("input.txt", "r", stdin)
#define ll long long int
#define pb push_back
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.t... | #include <iostream>
#include <set>
#include <vector>
#define take_input freopen("input.txt", "r", stdin)
#define ll long long int
#define pb push_back
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.t... | [
"assignment.change"
] | 250,863 | 250,862 | u404799758 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long a, b, c;
a = 1;
b = 1;
c = 1;
for (long long i = 0; i < n; i++) {
a = (a * 10) % 1000000007;
}
for (long long i = 0; i < n; i++) {
b = (b * 9) % 1000000007;
}
for (long long i = 0; i < n; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long a, b, c;
a = 1;
b = 1;
c = 1;
for (long long i = 0; i < n; i++) {
a = (a * 10) % 1000000007;
}
for (long long i = 0; i < n; i++) {
b = (b * 9) % 1000000007;
}
for (long long i = 0; i < n; i++) {
... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 250,864 | 250,865 | u840560679 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MOD = 1e9 + 7;
ll powmod(ll x, ll n) {
ll ret = 1;
for (ll i = 0; i < n; i++) {
ret = ret * x % MOD;
}
return ret;
}
int main(void) {
ll n, ans;
cin >> n;
ans = powmod(10, n);
ans -= powmod(9, n);
ans -= powmod(9, n... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MOD = 1e9 + 7;
ll powmod(ll x, ll n) {
ll ret = 1;
for (ll i = 0; i < n; i++) {
ret = ret * x % MOD;
}
return ret;
}
int main(void) {
ll n, ans;
cin >> n;
ans = powmod(10, n);
ans -= powmod(9, n);
ans -= powmod(9, n... | [
"assignment.add"
] | 250,868 | 250,869 | u054825571 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin(), a.rend()
#define maxs(x, y) (x = ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin(), a.rend()
#define maxs(x, y) (x = ... | [
"assignment.change"
] | 250,876 | 250,877 | u811967730 | cpp |
p02554 | #include <cstdio>
#include <queue>
#include <set>
#include <stack>
int main() {
int al = 1000000007;
long long int n, x, y, z, ans;
x = y = z = 1;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
x = x * 10;
y = y * 9;
z = z * 8;
x = (x + al) % al;
y = (y + al) % al;
z = (z + al) % al;... | #include <cstdio>
#include <queue>
#include <set>
#include <stack>
int main() {
int al = 1000000007;
long long int n, x, y, z, ans;
x = y = z = 1;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
x = x * 10;
y = y * 9;
z = z * 8;
x = (x + al) % al;
y = (y + al) % al;
z = (z + al) % al;... | [
"assignment.change"
] | 250,880 | 250,881 | u379288456 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using st = string;
using P = pair<int, int>;
#define mrep(i, m, n) for (int i = m; i < n; i++)
#define rep(i, n) mrep(i, 0, n)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int mod = 1e9 + 7;
ll powmod(ll x, ll y) {
ll a... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using st = string;
using P = pair<int, int>;
#define mrep(i, m, n) for (int i = m; i < n; i++)
#define rep(i, n) mrep(i, 0, n)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int mod = 1e9 + 7;
ll powmod(ll x, ll y) {
ll a... | [
"assignment.add"
] | 250,882 | 250,883 | u074141555 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int mpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = (long long)res * a % MOD;
a = (long long)a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
int n;
cin >> n;
cout << (mpow(10,... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int mpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = (long long)res * a % MOD;
a = (long long)a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
int n;
cin >> n;
cout << ((ll)mpow... | [
"type_conversion.add",
"expression.operation.binary.add"
] | 250,890 | 250,891 | u452364593 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pi pair<int, int>
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define sz(x) ((int)x.size())
#define ln(x) ((int)x.length())
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define end... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pi pair<int, int>
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define sz(x) ((int)x.size())
#define ln(x) ((int)x.length())
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define end... | [
"assignment.change"
] | 250,892 | 250,893 | u503629869 | cpp |
p02554 | #include "bits/stdc++.h"
using namespace std;
#define ll long long int
const ll mod = 1000000007;
ll power(ll a, ll b) {
ll r = 1;
for (ll i = 0; i < b; i++) {
r = (r * a) % mod;
}
return r;
}
int main() {
ll n, r;
scanf("%lld", &n);
r = 0;
r += power(10, n);
r -= 2 * power(9, n);
r += power(8... | #include "bits/stdc++.h"
using namespace std;
#define ll long long int
const ll mod = 1000000007;
ll power(ll a, ll b) {
ll r = 1;
for (ll i = 0; i < b; i++) {
r = (r * a) % mod;
}
return r;
}
int main() {
ll n, r;
scanf("%lld", &n);
r = 0;
r += power(10, n);
r -= 2 * power(9, n);
r += power(8... | [
"assignment.add"
] | 250,894 | 250,895 | u539109313 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e5 + 10;
const int mod = 1e9 + 7;
ll qpow(ll a, ll b) {
ll ans = 1;
while (b) {
if (b & 1)
ans = ans * a % mod;
a = a * a % mod;
b >>= 1;
}
return ans;
}
int main() {
ios::sync_with_stdio(false);
cout.tie... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e5 + 10;
const int mod = 1e9 + 7;
ll qpow(ll a, ll b) {
ll ans = 1;
while (b) {
if (b & 1)
ans = ans * a % mod;
a = a * a % mod;
b >>= 1;
}
return ans;
}
int main() {
ios::sync_with_stdio(false);
cout.tie... | [
"assignment.change"
] | 250,898 | 250,899 | u918767175 | cpp |
p02554 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int n, mod = 1e9 + 7;
inline int ksm(int a, int b) {
int ans = 1;
a = a % mod;
while (b) {
if (b & 1)
ans = (ans * a) % mod;
a = (a * a) % mod, b >>= 1;
}
return ans;
}
signed main() {
cin >> n;
cout << (ksm(10, n) - 2 * ... | #include <bits/stdc++.h>
#define int long long
using namespace std;
int n, mod = 1e9 + 7;
inline int ksm(int a, int b) {
int ans = 1;
a = a % mod;
while (b) {
if (b & 1)
ans = (ans * a) % mod;
a = (a * a) % mod, b >>= 1;
}
return ans;
}
signed main() {
cin >> n;
cout << (ksm(10, n) - (2 *... | [
"expression.operation.binary.add"
] | 250,900 | 250,901 | u864656689 | cpp |
p02554 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
long long mod = 1e9 + 7;
long long bigMod(lo... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
long long mod = 1e9 + 7;
long long bigMod(lo... | [
"assignment.change"
] | 250,902 | 250,903 | u319865780 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define ff first
#define ss second
#defin... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define ff first
#define ss second
#defin... | [
"expression.operation.binary.add"
] | 250,904 | 250,905 | u903285404 | cpp |
p02554 | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
int main() {
ll N = 0;
cin >> N;
ll ans = powmod(10, N) - powmod(9,... | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
int main() {
ll N = 0;
cin >> N;
ll ans = powmod(10, N) - powmod(9,... | [
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 250,910 | 250,911 | u047573796 | cpp |
p02554 | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
int main() {
int N = 0;
cin >> N;
long ans = powmod(10, N) - powmod... | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
int main() {
ll N = 0;
cin >> N;
ll ans = powmod(10, N) - powmod(9,... | [
"variable_declaration.type.change",
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 250,912 | 250,911 | u047573796 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) x.begin(), x.end()
const int mod = 1000000007;
int binpow(int a, int b, int mod) {
int ans = 1;
a = a % mod;
b = b % mod;
if (b == 0)
return 1;
while (b) {
if (b & 1)
ans = ((ans % mod) * (a % mod)) % mod;
a ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) x.begin(), x.end()
const int mod = 1000000007;
int binpow(int a, int b, int mod) {
int ans = 1;
a = a % mod;
b = b % mod;
if (b == 0)
return 1;
while (b) {
if (b & 1)
ans = ((ans % mod) * (a % mod)) % mod;
a ... | [
"assignment.change"
] | 250,913 | 250,914 | u727178041 | cpp |
p02554 | /// Astalavista Code........~boy_with_no_gf
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define Br cout << endl
#define int long long
#define double long double
#define all(v) v.begin(), v.end()
#define pb push_back
#define mk make_pair
#define allr(v) v.rbegin(), v.rend()
#define PT(x) cout << (x) ... | /// Astalavista Code........~boy_with_no_gf
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define Br cout << endl
#define int long long
#define double long double
#define all(v) v.begin(), v.end()
#define pb push_back
#define mk make_pair
#define allr(v) v.rbegin(), v.rend()
#define PT(x) cout << (x) ... | [
"assignment.change"
] | 250,920 | 250,921 | u753092134 | cpp |
p02554 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define ll long long
#define ull unsigned ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define ll long long
#define ull unsigned ... | [
"assignment.change"
] | 250,932 | 250,933 | u927520692 | cpp |
p02554 | #include <iostream>
using namespace std;
long long int modPow(long long int a, long long int b, long long int mod) {
if (b == 0)
return 1;
long long int p = modPow(a, b / 2, mod) % mod;
p = (p * p) % mod;
return (b % 2 == 0) ? p : (a * p) % mod;
}
int main() {
int N{};
const long long int mod{static_c... | #include <iostream>
using namespace std;
long long int modPow(long long int a, long long int b, long long int mod) {
if (b == 0)
return 1;
long long int p = modPow(a, b / 2, mod) % mod;
p = (p * p) % mod;
return (b % 2 == 0) ? p : (a * p) % mod;
}
int main() {
int N{};
const long long int mod{static_c... | [] | 250,934 | 250,935 | u882832697 | cpp |
p02554 | #include <iostream>
using namespace std;
long long int modPow(long long int a, long long int b, long long int mod) {
if (b == 0)
return 1;
long long int p = modPow(a, b / 2, mod) % mod;
p = (p * p) % mod;
return (b % 2 == 0) ? p : (a * p) % mod;
}
int main() {
int N{};
const long long int mod{static_c... | #include <iostream>
using namespace std;
long long int modPow(long long int a, long long int b, long long int mod) {
if (b == 0)
return 1;
long long int p = modPow(a, b / 2, mod) % mod;
p = (p * p) % mod;
return (b % 2 == 0) ? p : (a * p) % mod;
}
int main() {
int N{};
const long long int mod{static_c... | [
"expression.operation.binary.add"
] | 250,936 | 250,935 | u882832697 | cpp |
p02554 | #include "bits/stdc++.h"
//#include"atcoder.h"
#include <iostream>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
const ll inf = ll(1e18) + 1;
const ll mod = pow(10, 9) + 7;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
r... | #include "bits/stdc++.h"
//#include"atcoder.h"
#include <iostream>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
const ll inf = ll(1e18) + 1;
const ll mod = pow(10, 9) + 7;
ll powmod(ll x, ll y) {
ll res = 1;
for (ll i = 0; i < y; i++) {
res = res * x % mod;
}
r... | [
"assignment.add"
] | 250,938 | 250,939 | u686581527 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll MOD = 1'000'000'007;
const ld PI = acos(-1);
const ld EPS = 0.0000000001;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repd(i, n) for (ll ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll MOD = 1'000'000'007;
const ld PI = acos(-1);
const ld EPS = 0.0000000001;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repd(i, n) for (ll ... | [
"assignment.add"
] | 250,942 | 250,943 | u050087249 | cpp |
p02554 | #include <iostream>
#include <math.h>
using namespace std;
long long c = 1e9 + 7;
long long fast_pow(long long base, long long power) {
long long result = 1;
while (power > 0) {
if (power & 1)
result = (result * base) % c;
base = (base * base) % c;
power >>= 1;
}
return result;
}
int main() {
... | #include <iostream>
#include <math.h>
using namespace std;
long long c = 1e9 + 7;
long long fast_pow(long long base, long long power) {
long long result = 1;
while (power > 0) {
if (power & 1)
result = (result * base) % c;
base = (base * base) % c;
power >>= 1;
}
return result;
}
int main() {
... | [
"expression.operation.binary.add"
] | 250,944 | 250,945 | u558397113 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip> //cout << fixed << setprecision(15) << x << endl;
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
const... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip> //cout << fixed << setprecision(15) << x << endl;
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
const... | [
"expression.operation.binary.add"
] | 250,950 | 250,951 | u275488634 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
long long pow(int x, int n);
signed main() {
int n;
long long ans;
cin >> n;
ans = pow(10, n) - pow(9, n) - pow(9, n) + pow(8, n);
cout << (ans + MOD) % MOD << endl;
return (0);
}
long long pow(int x, int n) {
long long ... | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
long long pow(int x, int n);
signed main() {
int n;
long long ans;
cin >> n;
ans = (pow(10, n) - pow(9, n) - pow(9, n) + pow(8, n)) % MOD;
cout << (ans + MOD) % MOD << endl;
return (0);
}
long long pow(int x, int n) {
lo... | [
"assignment.change"
] | 250,958 | 250,959 | u895136790 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
long long pow(int x, int n);
signed main() {
int n;
long long ans;
cin >> n;
ans = pow(10, n) - pow(9, n) - pow(9, n) + pow(8, n);
cout << (ans + MOD) % MOD << endl;
return (0);
}
long long pow(int x, int n) {
long long ans = ... | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
long long pow(int x, int n);
signed main() {
int n;
long long ans;
cin >> n;
ans = (pow(10, n) - pow(9, n) - pow(9, n) + pow(8, n)) % MOD;
cout << (ans + MOD) % MOD << endl;
return (0);
}
long long pow(int x, int n) {
lo... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"assignment.change"
] | 250,960 | 250,959 | u895136790 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, ans1 = 1, ans2 = 1, ans3 = 1, ans4 = 1, ans, mod = 1e9 + 7;
cin >> n;
for (int i = 0; i < n; i++) {
ans1 *= 10;
ans2 *= 9;
ans3 *= 9;
ans4 *= 8;
ans1 %= mod;
ans2 %= mod;
ans3 %= mod;
ans4 %= mod;
}
ans = a... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, ans1 = 1, ans2 = 1, ans3 = 1, ans4 = 1, ans, mod = 1e9 + 7;
cin >> n;
for (int i = 0; i < n; i++) {
ans1 *= 10;
ans2 *= 9;
ans3 *= 9;
ans4 *= 8;
ans1 %= mod;
ans2 %= mod;
ans3 %= mod;
ans4 %= mod;
}
ans = (... | [
"assignment.change"
] | 250,961 | 250,962 | u490965711 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
const ll MOD = 1e9 + 7;
ll n;
ll up(ll x, ll k) {
ll res = 1;
while (k--)
res = (res * x) % MOD;
return res;
}
int main() {
ios_base::sync_w... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
const ll MOD = 1e9 + 7;
ll n;
ll up(ll x, ll k) {
ll res = 1;
while (k--)
res = (res * x) % MOD;
return res;
}
int main() {
ios_base::sync_w... | [
"expression.operation.binary.add"
] | 250,967 | 250,968 | u281053019 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long n;
int main() {
scanf("%lld", &n);
long long sol = 1, a = 1, b = 1;
for (int i = 0; i < n; i++) {
sol *= 10;
sol %= mod;
a *= 9;
a %= mod;
b *= 8;
b %= mod;
}
printf("%lld", (sol - 2 * a + b +... | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long n;
int main() {
scanf("%lld", &n);
long long sol = 1, a = 1, b = 1;
for (int i = 0; i < n; i++) {
sol *= 10;
sol %= mod;
a *= 9;
a %= mod;
b *= 8;
b %= mod;
}
printf("%lld", (sol - 2 * a + b +... | [
"expression.operation.binary.add"
] | 250,972 | 250,973 | u781533235 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long n;
int main() {
scanf("%lld", &n);
long long sol = 1, a = 1, b = 1;
for (int i = 0; i < n; i++) {
sol *= 10;
sol %= mod;
a *= 9;
a %= mod;
b *= 8;
b %= mod;
}
printf("%lld", (sol - 2 * a + b) ... | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long n;
int main() {
scanf("%lld", &n);
long long sol = 1, a = 1, b = 1;
for (int i = 0; i < n; i++) {
sol *= 10;
sol %= mod;
a *= 9;
a %= mod;
b *= 8;
b %= mod;
}
printf("%lld", (sol - 2 * a + b +... | [
"expression.operation.binary.add"
] | 250,974 | 250,973 | u781533235 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long int;
const ll MOD = 1000000007;
template <class T> T mpow(T a, T n, T mod) {
T result = 1;
while (n > 0) {
if (n & 1) {
result = result * a % mod;
}
a = a * a % ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long int;
const ll MOD = 1000000007;
template <class T> T mpow(T a, T n, T mod) {
T result = 1;
while (n > 0) {
if (n & 1) {
result = result * a % mod;
}
a = a * a % ... | [
"literal.number.type.widen.change"
] | 250,975 | 250,976 | u828593789 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// Template START
#define endl "\n"
#define async \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define int long long int
#define all(y) y.begin(), y.end(... | #include <bits/stdc++.h>
using namespace std;
// Template START
#define endl "\n"
#define async \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define int long long int
#define all(y) y.begin(), y.end(... | [
"assignment.change"
] | 250,983 | 250,984 | u422158754 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// Template START
#define endl "\n"
#define async \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define int long long int
#define all(y) y.begin(), y.end(... | #include <bits/stdc++.h>
using namespace std;
// Template START
#define endl "\n"
#define async \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define int long long int
#define all(y) y.begin(), y.end(... | [
"assignment.change"
] | 250,985 | 250,984 | u422158754 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll MOD = 1e9 + 7;
#define nl '\n'
#define fio \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll MOD = 1e9 + 7;
#define nl '\n'
#define fio \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [] | 250,990 | 250,991 | u328388864 | cpp |
p02554 | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
typedef long long ll;
const int maxn = 5e5 + 10;
const ll mod = 1e9 + 7;
ll fpow(ll a, ll b) {
ll ans = 1;
while (b) {
if (b & 1)
ans = (ans * a) % mod;
b /= 2;
a = (a * a) % mod;
}
return ans % mod;... | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
typedef long long ll;
const int maxn = 5e5 + 10;
const ll mod = 1e9 + 7;
ll fpow(ll a, ll b) {
ll ans = 1;
while (b) {
if (b & 1)
ans = (ans * a) % mod;
b /= 2;
a = (a * a) % mod;
}
return ans % mod;... | [
"expression.operation.binary.add"
] | 250,993 | 250,994 | u577590674 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define M 1010
#define N 1000000
#define D double
#define LL long long
#pragma GCC optimize(2)
using namespace std;
LL n, sum, k = 1e9 + 7;
LL powr(LL x, LL y) {
if (y == 0)
return 1;
if (y == 1)
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define M 1010
#define N 1000000
#define D double
#define LL long long
#pragma GCC optimize(2)
using namespace std;
LL n, sum, k = 1e9 + 7;
LL powr(LL x, LL y) {
if (y == 0)
return 1;
if (y == 1)
... | [
"assignment.change"
] | 250,997 | 250,998 | u873850803 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define M 1010
#define N 1000000
#define D double
#define LL long long
#pragma GCC optimize(2)
using namespace std;
LL n, sum, k = 1e9 + 7;
LL powr(LL x, LL y) {
if (y == 0)
return 1;
if (y == 1)
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define M 1010
#define N 1000000
#define D double
#define LL long long
#pragma GCC optimize(2)
using namespace std;
LL n, sum, k = 1e9 + 7;
LL powr(LL x, LL y) {
if (y == 0)
return 1;
if (y == 1)
... | [
"assignment.change"
] | 250,999 | 250,998 | u873850803 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b = 1, c = 1, d = 1;
cin >> a;
if (a == 1) {
cout << 0;
return 0;
}
for (int i = 1; i <= a; i++) {
b *= 10;
c *= 9;
d *= 8;
b %= 1000000007;
c %= 1000000007;
d %= 1000000007;
}
cout << (b - c - c + d) %... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b = 1, c = 1, d = 1;
cin >> a;
if (a == 1) {
cout << 0;
return 0;
}
for (int i = 1; i <= a; i++) {
b *= 10;
c *= 9;
d *= 8;
b %= 1000000007;
c %= 1000000007;
d %= 1000000007;
}
cout << (b - c - c + d + ... | [
"expression.operation.binary.add"
] | 251,000 | 251,001 | u495181507 | cpp |
p02554 | #include <cstdio>
#define LL long long
#define mod 1000000007
using namespace std;
LL qmi(LL a, LL b) {
LL res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return res;
}
int main() {
LL n;
scanf("%d", &n);
printf("%d",
((qmi(10ll, n) - 2 * qmi(9ll... | #include <cstdio>
#define LL long long
#define mod 1000000007
using namespace std;
LL qmi(LL a, LL b) {
LL res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return res;
}
int main() {
LL n;
scanf("%lld", &n);
printf("%lld",
((qmi(10ll, n) - 2 * qmi... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 251,002 | 251,003 | u143036722 | cpp |
p02554 | #include <iostream>
using namespace std;
int mod = 1e9 + 7;
long long a[100010];
int main() {
int n;
long long x = 1, y = 1, z = 1;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
x *= 10;
x %= mod;
y *= 9;
y %= mod;
z *= 8;
z %= mod;
}
long long ans = ((x - 2 * y) % mod + z) % mod;
... | #include <iostream>
using namespace std;
int mod = 1e9 + 7;
long long a[100010];
int main() {
int n;
long long x = 1, y = 1, z = 1;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
x *= 10;
x %= mod;
y *= 9;
y %= mod;
z *= 8;
z %= mod;
}
long long ans = ((x - 2 * y) % mod + z + mod) %... | [
"assignment.change"
] | 251,010 | 251,011 | u207943779 | cpp |
p02554 | #include <cstdio>
#include <iostream>
using namespace std;
int mod = 1000000007;
int main() {
long long n;
scanf("%lld", &n);
long long ans = 1 % mod;
long long sum = 1 % mod;
long long tot = 1 % mod;
for (int i = 1; i <= n; i++) {
ans = ans * 10 % mod;
}
for (int i = 1; i <= n; i++) {
sum = sum... | #include <cstdio>
#include <iostream>
using namespace std;
int mod = 1000000007;
int main() {
long long n;
scanf("%lld", &n);
long long ans = 1 % mod;
long long sum = 1 % mod;
long long tot = 1 % mod;
for (int i = 1; i <= n; i++) {
ans = ans * 10 % mod;
}
for (int i = 1; i <= n; i++) {
sum = sum... | [
"expression.operation.binary.add"
] | 251,012 | 251,013 | u703944499 | cpp |
p02554 | #include <cstdio>
#include <iostream>
using namespace std;
int mod = 1000000007;
int main() {
long long n;
scanf("%lld", &n);
long long ans = 1 % mod;
long long sum = 1 % mod;
long long tot = 1 % mod;
for (int i = 1; i <= n; i++) {
ans = ans * 10 % mod;
}
for (int i = 1; i <= n; i++) {
sum = sum... | #include <cstdio>
#include <iostream>
using namespace std;
int mod = 1000000007;
int main() {
long long n;
scanf("%lld", &n);
long long ans = 1 % mod;
long long sum = 1 % mod;
long long tot = 1 % mod;
for (int i = 1; i <= n; i++) {
ans = ans * 10 % mod;
}
for (int i = 1; i <= n; i++) {
sum = sum... | [
"expression.operation.binary.add"
] | 251,014 | 251,013 | u703944499 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
ll power(ll x, ll N) {
ll res = 1;
for (ll i = 1; i <= N; i++) {
res *= x;
res %= mod;
}
return res;
}
int main() {
ll N;
cin >> N;
ll total = power(10, N);
ll noZero = power(9, N);
ll noNine = power... | #include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
ll power(ll x, ll N) {
ll res = 1;
for (ll i = 1; i <= N; i++) {
res *= x;
res %= mod;
}
return res;
}
int main() {
ll N;
cin >> N;
ll total = power(10, N);
ll noZero = power(9, N);
ll noNine = power... | [
"assignment.add"
] | 251,018 | 251,019 | u221289055 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
void solve(int T) {
int n;
cin >> n;
ll _10 = 1, _9 = 1, _8 = 1;
for (int i = 1; i <= n; i++) {
_10 = _10 * 10 % mod;
_9 = _9 * 9 % mod;
_8 = _8 * 8 % mod;
}
cout << ((_10 - 2 * _9 + mod) % mod + _8) % mo... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
void solve(int T) {
int n;
cin >> n;
ll _10 = 1, _9 = 1, _8 = 1;
for (int i = 1; i <= n; i++) {
_10 = _10 * 10 % mod;
_9 = _9 * 9 % mod;
_8 = _8 * 8 % mod;
}
cout << ((_10 - 2 * _9 % mod + mod) % mod + _8... | [
"expression.operation.binary.add"
] | 251,022 | 251,023 | u758105297 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define T \
int t; \
cin >> t; \
whil... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define T \
int t; \
cin >> t; \
whil... | [
"assignment.change"
] | 251,024 | 251,025 | u747248721 | cpp |
p02554 | // Starting with the name of Allah
#include <bits/stdc++.h>
#define ll long long
#define nl endl
#define Nayon \
ios::sync_with_stdio(0); \
cin.tie(0); ... | // Starting with the name of Allah
#include <bits/stdc++.h>
#define ll long long
#define nl endl
#define Nayon \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [
"expression.operation.binary.add"
] | 251,028 | 251,029 | u682622409 | cpp |
p02554 | // Starting with the name of Allah
#include <bits/stdc++.h>
#define ll long long
#define nl endl
#define Nayon \
ios::sync_with_stdio(0); \
cin.tie(0); ... | // Starting with the name of Allah
#include <bits/stdc++.h>
#define ll long long
#define nl endl
#define Nayon \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [] | 251,030 | 251,029 | u682622409 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
long long repow(long long x, long long y) {
if (y == 0)
return 1;
long long res = 1;
while (y != 0) {
if (y & 1)
res = res * x % MOD;
x = x * x % MOD;
y >>= 1;
}
return res;
}
int main() {
int N;
cin >> N;
long ... | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
long long repow(long long x, long long y) {
if (y == 0)
return 1;
long long res = 1;
while (y != 0) {
if (y & 1)
res = res * x % MOD;
x = x * x % MOD;
y >>= 1;
}
return res;
}
int main() {
int N;
cin >> N;
... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 251,031 | 251,032 | u503221936 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long int
#define db double
#define pb push_back
#define mpr make_pair
#define andl "\n"
#define f first
#define s second
#define mset(x, y) memset(x, y, sizeof(x))
#define fr(i, n) for (long long int i = 0; i < n; i++)
#define trace(it, x) for (auto it = (x).begin(); it != (x).e... | #include <bits/stdc++.h>
#define ll long long int
#define db double
#define pb push_back
#define mpr make_pair
#define andl "\n"
#define f first
#define s second
#define mset(x, y) memset(x, y, sizeof(x))
#define fr(i, n) for (long long int i = 0; i < n; i++)
#define trace(it, x) for (auto it = (x).begin(); it != (x).e... | [
"assignment.add"
] | 251,033 | 251,034 | u667598279 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define ld long double
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define pf push_front
#define ff first
#define ss second
#define max(a, b) (a > b ? a : b)
#define min(a, b) (a < b ? a : b)
/////////////////////////////////... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define ld long double
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define pf push_front
#define ff first
#define ss second
#define max(a, b) (a > b ? a : b)
#define min(a, b) (a < b ? a : b)
/////////////////////////////////... | [
"assignment.change"
] | 251,047 | 251,048 | u604000852 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
#define ordered_set \
tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag, ... | #include <bits/stdc++.h>
using namespace std;
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
#define ordered_set \
tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag, ... | [
"expression.operation.binary.add"
] | 251,049 | 251,050 | u406881148 | cpp |
p02554 | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(0); ... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(0); ... | [
"expression.operation.binary.remove"
] | 251,051 | 251,052 | u064544517 | cpp |
p02554 | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(0); ... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(0); ... | [
"expression.operation.binary.add"
] | 251,053 | 251,052 | u064544517 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// DEFINE and
// TYPEDEF--------------------------------------------------------------
// For actual content check from line 85
#define FORG(i, a, n) \
for (lld i = (lld)a; a < n ? i < (lld)n : (lld)n < i; ... | #include <bits/stdc++.h>
using namespace std;
// DEFINE and
// TYPEDEF--------------------------------------------------------------
// For actual content check from line 85
#define FORG(i, a, n) \
for (lld i = (lld)a; a < n ? i < (lld)n : (lld)n < i; ... | [] | 251,054 | 251,055 | u531151228 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// DEFINE and
// TYPEDEF--------------------------------------------------------------
// For actual content check from line 85
#define FORG(i, a, n) \
for (lld i = (lld)a; a < n ? i < (lld)n : (lld)n < i; ... | #include <bits/stdc++.h>
using namespace std;
// DEFINE and
// TYPEDEF--------------------------------------------------------------
// For actual content check from line 85
#define FORG(i, a, n) \
for (lld i = (lld)a; a < n ? i < (lld)n : (lld)n < i; ... | [
"expression.operation.binary.add"
] | 251,054 | 251,056 | u531151228 | cpp |
p02554 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctype.h>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int n;
long long mod = 1000000007;
cin >> n;
long long a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++)... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctype.h>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int n;
long long mod = 1000000007;
cin >> n;
long long a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++)... | [
"expression.operation.binary.add"
] | 251,057 | 251,058 | u719790500 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
template <typename T> void drop(const T &x) {
cout << x << '\n';
exit(0);
}
const long long MOD = 1e9 + 7;
int64_t powmod(int a, int n) {
int64_t ans = 1;
for (int i = 0; i < n; ++i)
ans = (ans * a) % MOD;
return ans;
}
void solve() {
int n;
cin >> n;
... | #include <bits/stdc++.h>
using namespace std;
template <typename T> void drop(const T &x) {
cout << x << '\n';
exit(0);
}
const long long MOD = 1e9 + 7;
int64_t powmod(int a, int n) {
int64_t ans = 1;
for (int i = 0; i < n; ++i)
ans = (ans * a) % MOD;
return ans;
}
void solve() {
int n;
cin >> n;
... | [
"assignment.add"
] | 251,059 | 251,060 | u127727773 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
rep(i, y) res = res * x % mod;
return res;
}
int main() {
ll N;
cin >> N;
// (全事象) - (0を含まない) - (9を含まない) + (0も9も含まない)
ll ans = ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll res = 1;
rep(i, y) res = res * x % mod;
return res;
}
int main() {
ll N;
cin >> N;
ll ans = powmod(10, N) - powmod(9, N) - powmod(9, N) +... | [
"assignment.add"
] | 251,073 | 251,074 | u629603666 | cpp |
p02554 | #include <bits/stdc++.h>
#include <ctime>
#include <stdlib.h>
#include <unordered_map>
using namespace std;
#define ll long long int
#define mod 1000000007
#define modd 998244353
#define com(a, n) \
for (ll i = 0; i < n; i++) ... | #include <bits/stdc++.h>
#include <ctime>
#include <stdlib.h>
#include <unordered_map>
using namespace std;
#define ll long long int
#define mod 1000000007
#define modd 998244353
#define com(a, n) \
for (ll i = 0; i < n; i++) ... | [
"call.add",
"call.arguments.change"
] | 251,086 | 251,087 | u248004466 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vll;
#define fi first
#define print(v) \
for (ll i : v) \
cout << i << ss
#de... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vll;
#define fi first
#define print(v) \
for (ll i : v) \
cout << i << ss
#de... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"assignment.change"
] | 251,089 | 251,090 | u400281904 | cpp |
p02554 | /* --------------------
| LOSER |
| ~NOOBOSS~ |
--------------------
*/
#include <bits/stdc++.h>
using namespace std;
#define mxx LLONG_MAX
#define mnn LLONG_MIN
#define Y() cout << "YES" << endl
#define N() cout << "NO" << endl
#define endl "\n"
#define max_3(a, b, c) max(a, max(b,... | /* --------------------
| LOSER |
| ~NOOBOSS~ |
--------------------
*/
#include <bits/stdc++.h>
using namespace std;
#define mxx LLONG_MAX
#define mnn LLONG_MIN
#define Y() cout << "YES" << endl
#define N() cout << "NO" << endl
#define endl "\n"
#define max_3(a, b, c) max(a, max(b,... | [
"assignment.change"
] | 251,091 | 251,092 | u614233094 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll mod = 998244353;
int inf = 100... | #include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll mod = 998244353;
int inf = 100... | [
"expression.operation.binary.add"
] | 251,105 | 251,106 | u443971699 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl '\n'
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define debug1(a) cout << #a << " " << (a) << endl;
#define debug2(a, b) ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl '\n'
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define debug1(a) cout << #a << " " << (a) << endl;
#define debug2(a, b) ... | [
"control_flow.return.add"
] | 251,107 | 251,108 | u459534977 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mod 1000000007
ll help(ll a, ll b) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll ans = 1;
if (b & 1) {
ans = help(a, b - 1) * a;
} else {
ans = help(a, b / 2);
ans = ans * ans;
}
return ans % mod;
}
int ma... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mod 1000000007
ll help(ll a, ll b) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll ans = 1;
if (b & 1) {
ans = help(a, b - 1) * a;
} else {
ans = help(a, b / 2);
ans = ans * ans;
}
return ans % mod;
}
int ma... | [
"assignment.change"
] | 251,111 | 251,112 | u543702253 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define sz(a) (int)(a.size())
#define pb push_back
#define all(c) c.begin(), c.end()
#define tr(it, a, c) for (auto it = c.begin() + a; it != c.end(); it++)
#define fr(i, a, n) for (int i = a; i < n; i++)
#define present(c, x) (c.f... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define sz(a) (int)(a.size())
#define pb push_back
#define all(c) c.begin(), c.end()
#define tr(it, a, c) for (auto it = c.begin() + a; it != c.end(); it++)
#define fr(i, a, n) for (int i = a; i < n; i++)
#define present(c, x) (c.f... | [
"expression.operation.binary.add"
] | 251,113 | 251,114 | u345812044 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define maxn 200005
ll mod = 1e9 + 7;
int main() {
ll n;
cin >> n;
ll ans1 = 1;
ll ans2 = 1;
ll ans3 = 1;
for (int i = 0; i < n; i++) {
ans1 = ans1 * 10;
ans2 = ans2 * 9;
ans3 = ans3 * 8;
ans1 = ans1 % mod;
ans2 = an... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define maxn 200005
ll mod = 1e9 + 7;
int main() {
ll n;
cin >> n;
ll ans1 = 1;
ll ans2 = 1;
ll ans3 = 1;
for (int i = 0; i < n; i++) {
ans1 = ans1 * 10;
ans2 = ans2 * 9;
ans3 = ans3 * 8;
ans1 = ans1 % mod;
ans2 = an... | [
"expression.operation.binary.add"
] | 251,116 | 251,117 | u815148971 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define maxn 200005
ll mod = 1e9 + 7;
int main() {
ll n;
cin >> n;
ll ans1 = 1;
ll ans2 = 1;
ll ans3 = 1;
for (int i = 0; i < n; i++) {
ans1 = ans1 * 10;
ans2 = ans2 * 9;
ans3 = ans3 * 8;
ans1 = ans1 % mod;
ans2 = an... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define maxn 200005
ll mod = 1e9 + 7;
int main() {
ll n;
cin >> n;
ll ans1 = 1;
ll ans2 = 1;
ll ans3 = 1;
for (int i = 0; i < n; i++) {
ans1 = ans1 * 10;
ans2 = ans2 * 9;
ans3 = ans3 * 8;
ans1 = ans1 % mod;
ans2 = an... | [
"expression.operation.binary.add"
] | 251,118 | 251,117 | u815148971 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, e) for (int i = (s); (i) < (int)(e); ++(i))
#define REP(i, e) FOR(i, 0, e)
#define each(it, c) \
for (__typeof((c).begin()) it = (c).begin(); it != (c).end(); ++it)
#define all(o) (o).begin(), (... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, e) for (int i = (s); (i) < (int)(e); ++(i))
#define REP(i, e) FOR(i, 0, e)
#define each(it, c) \
for (__typeof((c).begin()) it = (c).begin(); it != (c).end(); ++it)
#define all(o) (o).begin(), (... | [
"assignment.change"
] | 251,119 | 251,120 | u107750531 | cpp |
p02554 | #include <bits/stdc++.h>
#define MAX 1000000007
#define ll long long int
#define fo(i, a, n) for (int i = a; i < n; i++)
#define ull unsigned long long int
#define pb push_back
#define eb emplace_back
using namespace std;
ll power(ll x, ll y) {
ll res = 1;
x = x % MAX;
while (y > 0) {
if (y & 1) {
res ... | #include <bits/stdc++.h>
#define MAX 1000000007
#define ll long long int
#define fo(i, a, n) for (int i = a; i < n; i++)
#define ull unsigned long long int
#define pb push_back
#define eb emplace_back
using namespace std;
ll power(ll x, ll y) {
ll res = 1;
x = x % MAX;
while (y > 0) {
if (y & 1) {
res ... | [
"assignment.change"
] | 251,125 | 251,126 | u217125116 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 1;
ll mod = (ll)(1e9 + 7);
ll res1, res2, res3;
res1 = res2 = res3 = 1;
for (int i = 1; i <= n; i++) {
res1 = (res1 * 10) % mod;
res2 = (res2 * 9) % mod;
res3 = (res3 * 8) % mod;
}
... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 1;
ll mod = (ll)(1e9 + 7);
ll res1, res2, res3;
res1 = res2 = res3 = 1;
for (int i = 1; i <= n; i++) {
res1 = (res1 * 10) % mod;
res2 = (res2 * 9) % mod;
res3 = (res3 * 8) % mod;
}
... | [
"assignment.change"
] | 251,127 | 251,128 | u147541642 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long
#define MOD 1000000007
using namespace std;
ll solve(ll x, ll y) {
ll prod = 1;
for (int i = 1; i <= y; i++) {
prod *= x;
prod %= MOD;
}
return prod;
}
int main() {
ll n;
cin >> n;
ll ans1 = solve(10, n) % MOD;
ll ans2 = solve(9, n) % MOD;
ll ans3... | #include <bits/stdc++.h>
#define ll long long
#define MOD 1000000007
using namespace std;
ll solve(ll x, ll y) {
ll prod = 1;
for (int i = 1; i <= y; i++) {
prod *= x;
prod %= MOD;
}
return prod;
}
int main() {
ll n;
cin >> n;
ll ans1 = solve(10, n) % MOD;
ll ans2 = solve(9, n) % MOD;
ll ans3... | [
"assignment.change"
] | 251,129 | 251,130 | u939504759 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int Q = 7 + 1e9;
ll exp(ll n, ll m) {
if (m == 0)
return 1;
if (m % 2 == 0)
return (exp(n, m / 2) * exp(n, m / 2)) % Q;
else
return (n * exp(n, m - 1)) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int Q = 7 + 1e9;
ll exp(ll n, ll m) {
if (m == 0)
return 1;
if (m % 2 == 0)
return (exp(n, m / 2) * exp(n, m / 2)) % Q;
else
return (n * exp(n, m - 1)) ... | [
"expression.operation.binary.add"
] | 251,131 | 251,132 | u617636202 | cpp |
p02554 | #include <bits/stdc++.h>
// pbds
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using orderedSet =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
/// use less_equal in pbds template to... | #include <bits/stdc++.h>
// pbds
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using orderedSet =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
/// use less_equal in pbds template to... | [
"assignment.change"
] | 251,135 | 251,136 | u883921263 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
const int mod = 1e9 + 7;
ll Big_Mod(ll value, ll power) {
if (power == 0)
return 1;
ll ans = Big_Mod(value, power / 2);
ans = (ans * ans) % mod;
if (power % 2)
ans = (ans * value) % mod;
return ans;
}
void solve() {
ll n, ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
const int mod = 1e9 + 7;
ll Big_Mod(ll value, ll power) {
if (power == 0)
return 1;
ll ans = Big_Mod(value, power / 2);
ans = (ans * ans) % mod;
if (power % 2)
ans = (ans * value) % mod;
return ans;
}
void solve() {
ll n, ... | [
"assignment.add"
] | 251,139 | 251,140 | u780229839 | cpp |
p02554 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
const int mod = 1e9 + 7;
ll Big_Mod(ll value, ll power) {
if (power == 0)
return 1;
ll ans = Big_Mod(value, power / 2);
ans = (ans * ans) % mod;
if (power % 2)
ans = (ans * value) % mod;
return ans;
}
void solve() {
ll n, ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
const int mod = 1e9 + 7;
ll Big_Mod(ll value, ll power) {
if (power == 0)
return 1;
ll ans = Big_Mod(value, power / 2);
ans = (ans * ans) % mod;
if (power % 2)
ans = (ans * value) % mod;
return ans;
}
void solve() {
ll n, ... | [
"assignment.add"
] | 251,139 | 251,141 | u780229839 | cpp |
p02554 | /////////////////////////////////TEST CASES////////////////////////////////////
/*
*/
/////////////////////////////////////CODE//////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORD(i, a, b) for (ll i = a; i > b; i--)
#defin... | /////////////////////////////////TEST CASES////////////////////////////////////
/*
*/
/////////////////////////////////////CODE//////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORD(i, a, b) for (ll i = a; i > b; i--)
#defin... | [
"expression.operation.binary.add"
] | 251,150 | 251,151 | u025150541 | cpp |
p02554 | #include <iostream>
#define Nfor(N) for (int i = 0; i < N; i++)
using namespace std;
typedef long long ll;
const int mod = 1000000007;
int pow(int a, int b) {
int ret = 1;
Nfor(b) ret = (1LL * ret * b) % mod;
return ret;
}
int main() {
int N;
cin >> N;
ll ans = pow(10, N);
ans -= 2LL * pow(9, N);
ans... | #include <iostream>
#define Nfor(N) for (int i = 0; i < N; i++)
using namespace std;
typedef long long ll;
const int mod = 1000000007;
int pow(int a, int b) {
int ret = 1;
Nfor(b) ret = (1LL * ret * a) % mod;
return ret;
}
int main() {
int N;
cin >> N;
ll ans = pow(10, N);
ans -= 2LL * pow(9, N);
ans... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 251,152 | 251,153 | u895564652 | cpp |
p02554 | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#define mod (int)1000000007
#define int long long
using namespace std;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
int v... | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#define mod (int)1000000007
#define int long long
using namespace std;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
int v... | [
"expression.operation.binary.add"
] | 251,154 | 251,155 | u201965173 | cpp |
p02554 | ////=====BIsmillahir Rahmanir Rahim =====////
/* ______
_______ /\ |``\ | | /
| / \ |__/ |____ |/
| / _ _\ | \ | |\
| / \ | \ |______ | \
Dept. of CSE
Comilla University
*/
#include <bits/stdc++.h>
#incl... | ////=====BIsmillahir Rahmanir Rahim =====////
/* ______
_______ /\ |``\ | | /
| / \ |__/ |____ |/
| / _ _\ | \ | |\
| / \ | \ |______ | \
Dept. of CSE
Comilla University
*/
#include <bits/stdc++.h>
#incl... | [] | 251,160 | 251,161 | u164081575 | cpp |
p02554 | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
inline namespace atcoder {
template <typename T, size_t Depth> struct vector_helper {
using type = vector<typename vector_helper<T, Depth - 1>::typ... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
inline namespace atcoder {
template <typename T, size_t Depth> struct vector_helper {
using type = vector<typename vector_helper<T, Depth - 1>::typ... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 251,170 | 251,171 | u967915578 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main(void) {
long long int n, a = 1, b = 1, c = 1, d;
cin >> n;
for (int i = 0; i < n; i++) {
a = (a * 10) % MOD;
b = (b * 9) % MOD;
c = (c * 8) % MOD;
}
d = (a + c - b - b + MOD) % MOD;
cout << d << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main(void) {
long long int n, a = 1, b = 1, c = 1, d;
cin >> n;
for (int i = 0; i < n; i++) {
a = (a * 10) % MOD;
b = (b * 9) % MOD;
c = (c * 8) % MOD;
}
d = (a + c - b - b + MOD + MOD) % MOD;
cout << d << endl;
retur... | [
"assignment.change"
] | 251,176 | 251,177 | u632118923 | cpp |
p02554 | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
#define ll long long int
#define ld long double
#define pb push_back
#define all(v) v.begin(), v.end()
#define sz(x) ((int)(x).size())
#define fi first
#define se second
#define deb(x) cout << #x << '=' << x << endl
#define MOD 100000000... | #include <bits/stdc++.h>
#include <cmath>
#include <string>
using namespace std;
#define ll long long int
#define ld long double
#define pb push_back
#define all(v) v.begin(), v.end()
#define sz(x) ((int)(x).size())
#define fi first
#define se second
#define deb(x) cout << #x << '=' << x << endl
#define MOD 100000000... | [
"assignment.add"
] | 251,178 | 251,179 | u771330306 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n;
cin >> n;
long long ans = 1, sol = 0;
for (int i = 1; i <= n; i++) {
ans = (ans * 10) % 1000000007;
}
sol = (sol + ans) % 1000000007;
ans = 1;
for (int i = 1; i <= n; i++) {
ans = (ans * 9) % 1000000007;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n;
cin >> n;
long long ans = 1, sol = 0;
for (int i = 1; i <= n; i++) {
ans = (ans * 10) % 1000000007;
}
sol = (sol + ans) % 1000000007;
ans = 2;
for (int i = 1; i <= n; i++) {
ans = (ans * 9) % 1000000007;
... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.remove"
] | 251,180 | 251,181 | u468298477 | cpp |
p02554 | #include <algorithm>
#include <iostream>
#include <queue>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
const int INF = 1001001001;
const ll mod = 1e9 + 7;
ll powmod(ll x, ll y) {
ll res = 1;
for (int i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
i... | #include <algorithm>
#include <iostream>
#include <queue>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
const int INF = 1001001001;
const ll mod = 1e9 + 7;
ll powmod(ll x, ll y) {
ll res = 1;
for (int i = 0; i < y; i++) {
res = res * x % mod;
}
return res;
}
i... | [
"assignment.add"
] | 251,184 | 251,185 | u904995051 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.