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 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
#define ll long long
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define foreach(c, itr) \
for (__typeof((c).begin()) itr = (c).begin(); itr != (c).end(); itr++)
using name... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
#define ll long long
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define foreach(c, itr) \
for (__typeof((c).begin()) itr = (c).begin(); itr != (c).end(); itr++)
using name... | [
"expression.operation.binary.add"
] | 250,396 | 250,397 | u485576979 | cpp |
p02554 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
#define ll long long
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define foreach(c, itr) \
for (__typeof((c).begin()) itr = (c).begin(); itr != (c).end(); itr++)
using name... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
#define ll long long
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define foreach(c, itr) \
for (__typeof((c).begin()) itr = (c).begin(); itr != (c).end(); itr++)
using name... | [
"expression.operation.binary.add"
] | 250,399 | 250,397 | u485576979 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
ll cal(ll a, ll n) {
ll tmp = a;
tmp = tmp % MOD;
for (ll i = 0; i < n - 1; ++i) {
tmp = tmp * a;
tmp = tmp % MOD;
}
return tmp;
}
int main() {
int n;
cin >> n;
ll ans = cal(10, n) - cal(9, n) - cal(9... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
ll cal(ll a, ll n) {
ll tmp = a;
tmp = tmp % MOD;
for (ll i = 0; i < n - 1; ++i) {
tmp = tmp * a;
tmp = tmp % MOD;
}
return tmp;
}
int main() {
int n;
cin >> n;
ll ans = cal(10, n) - cal(9, n) - cal(9... | [
"assignment.add"
] | 250,402 | 250,403 | u144029820 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define MOD (1000000000 + 7)
#define pb(x) push_back(x)
#define mp(x, y) make_pair(x, y)
#define nl '\n'
#define all(x) x.begin(), x.end()
#define print(vec, l, r) \
for (int i = l; i <= r; i++) ... | #include <bits/stdc++.h>
using namespace std;
#define MOD (1000000000 + 7)
#define pb(x) push_back(x)
#define mp(x, y) make_pair(x, y)
#define nl '\n'
#define all(x) x.begin(), x.end()
#define print(vec, l, r) \
for (int i = l; i <= r; i++) ... | [] | 250,404 | 250,405 | u041932988 | cpp |
p02554 | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
long long mod = 1000000000 + 7;
long powpow(long x, long n) {
long y = 1;
for (int i = 0; i < n; i++) {
y *= x;
y %= mod;
}
return y;
}
int main() {
long n;
cin >> n;
long ans = powpow(10, ... | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
long long mod = 1000000000 + 7;
long powpow(long x, long n) {
long y = 1;
for (int i = 0; i < n; i++) {
y *= x;
y %= mod;
}
return y;
}
int main() {
long n;
cin >> n;
long ans = powpow(10, ... | [
"expression.operation.binary.add"
] | 250,406 | 250,407 | u337018543 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
int long long n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
} else {
int long long x = 1, y = 1, z = 1;
int long long ans;
int long long mod = 1000000007;
for (int long long i = 0; i < n; i++) {
x = (x * 10) % mod;
y = (... | #include <bits/stdc++.h>
using namespace std;
int main() {
int long long n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
} else {
int long long x = 1, y = 1, z = 1;
int long long ans;
int long long mod = 1000000007;
for (int long long i = 0; i < n; i++) {
x = (x * 10) % mod;
y = (... | [
"assignment.change"
] | 250,410 | 250,411 | u693897283 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
int long long n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
} else {
int long long x = 1, y = 1, z = 1;
int long long ans;
int long long mod = 1000000007;
for (int long long i = 0; i < n; i++) {
x = (x * 10) % mod;
y = (... | #include <bits/stdc++.h>
using namespace std;
int main() {
int long long n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
} else {
int long long x = 1, y = 1, z = 1;
int long long ans;
int long long mod = 1000000007;
for (int long long i = 0; i < n; i++) {
x = (x * 10) % mod;
y = (... | [
"assignment.change"
] | 250,412 | 250,411 | u693897283 | cpp |
p02554 | // 及时当勉励,岁月不待人!
//当前状态 : attempted
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MP make_pair
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3f;
const ll... | // 及时当勉励,岁月不待人!
//当前状态 : attempted
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MP make_pair
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3f;
const ll... | [
"expression.operation.binary.add"
] | 250,415 | 250,416 | u297223293 | cpp |
p02554 | #include <bits/stdc++.h>
typedef long long LL;
const int N = 1e6 + 10;
using namespace std;
const int mod = 1e9 + 7;
LL f[N];
LL qpow(LL x, LL k) {
LL res = 1;
while (k) {
if (k & 1)
res = res * x % mod;
k >>= 1;
x = x * x % mod;
}
return res;
}
LL C(LL n, LL m) { return f[n] * (qpow(f[m] * ... | #include <bits/stdc++.h>
typedef long long LL;
const int N = 1e6 + 10;
using namespace std;
const int mod = 1e9 + 7;
LL f[N];
LL qpow(LL x, LL k) {
LL res = 1;
while (k) {
if (k & 1)
res = res * x % mod;
k >>= 1;
x = x * x % mod;
}
return res;
}
LL C(LL n, LL m) { return f[n] * (qpow(f[m] * ... | [
"assignment.change"
] | 250,421 | 250,422 | u362293058 | cpp |
p02554 | #include "bits/stdc++.h"
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define mod 1000000007
int main() {
ll n;
cin >> n;
ll ans = 1;
ll buf = 1;
ll buf2 = 1;
if (n < 2) {
cout << 0 << endl;
return 0;
}
rep(i, n) ans = ans * 10 % mod;
rep(i, n) bu... | #include "bits/stdc++.h"
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define mod 1000000007
int main() {
ll n;
cin >> n;
ll ans = 1;
ll buf = 1;
ll buf2 = 1;
if (n < 2) {
cout << 0 << endl;
return 0;
}
rep(i, n) ans = ans * 10 % mod;
rep(i, n) bu... | [
"assignment.change"
] | 250,425 | 250,426 | u852056164 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
const int mod = 1e9 + 7;
ll fastexpo(ll a, ll b) {
if (b == 0)
return 1;
ll ans = (fastexpo(a, b / 2)) % mod;
if (b % 2 == 1)
return (a % mod * ans % mod * ans % mod) % mod;
else
return (ans % mod * ans % mod) % mod;
}
int main()... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
const int mod = 1e9 + 7;
ll fastexpo(ll a, ll b) {
if (b == 0)
return 1;
ll ans = (fastexpo(a, b / 2)) % mod;
if (b % 2 == 1)
return (a % mod * ans % mod * ans % mod) % mod;
else
return (ans % mod * ans % mod) % mod;
}
int main()... | [
"expression.operation.binary.add"
] | 250,429 | 250,430 | u741042758 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long int n, m, i = 0, j, MOD = 1000000007, a = 1, c = 1, p = 1;
cin >> n;
for (i = 0; i < n; i++) {
a = a * 10 % MOD;
c = c * 9 % MOD;
p = p * 8 % MOD;
}
cout << (a + MOD - c - c + p) % MOD << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long int n, m, i = 0, j, MOD = 1000000007, a = 1, c = 1, p = 1;
cin >> n;
for (i = 0; i < n; i++) {
a = a * 10 % MOD;
c = c * 9 % MOD;
p = p * 8 % MOD;
}
cout << (a + MOD + MOD - c - c + p) % MOD << endl;
return 0;
}
| [
"expression.operation.binary.add"
] | 250,431 | 250,432 | u806320475 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
long long powermod(long long power, long long base) {
long long n = 1;
for (long long i = 0; i < power; i++) {
n *= base;
n %= 1000000007;
}
return n;
}
int main() {
long long N;
cin >> N;
if (N > 1) {
long long ans;
ans = powermod(N, 10) - 2... | #include <bits/stdc++.h>
using namespace std;
long long powermod(long long power, long long base) {
long long n = 1;
for (long long i = 0; i < power; i++) {
n *= base;
n %= 1000000007;
}
return n;
}
int main() {
long long N;
cin >> N;
if (N > 1) {
long long ans;
ans = powermod(N, 10) - 2... | [
"assignment.add"
] | 250,433 | 250,434 | u144242534 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll modpow(ll a, ll b, ll m) {
a %= m;
ll res = 1;
while (b) {
if (b & 1)
res = res * a % m;
a = a * a % m;
b >>= 1;
}
return res;
}
void solve() {
int n;
cin >> n;
ll mod = 1e9 + 7;
ll total = modpow(10, n, mod);
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll modpow(ll a, ll b, ll m) {
a %= m;
ll res = 1;
while (b) {
if (b & 1)
res = res * a % m;
a = a * a % m;
b >>= 1;
}
return res;
}
void solve() {
int n;
cin >> n;
int mod = 1e9 + 7;
ll total = modpow(10, n, mod);
... | [
"variable_declaration.type.change",
"assignment.add"
] | 250,446 | 250,447 | u105935673 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | [
"expression.operation.binary.add"
] | 250,448 | 250,449 | u046595819 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | [
"expression.operation.binary.add"
] | 250,448 | 250,450 | u046595819 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int binpow(int a, int b) {
int res = 1;
while (b) {
if (b & 1)
res = 1LL * res * a % MOD;
a = 1LL * a * a % MOD;
b >>= 1;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n... | [
"expression.operation.binary.add"
] | 250,448 | 250,451 | u046595819 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
int a = 1, b = 1, c = 1;
for (int i = 1; i <= n; i++) {
a = a * 10 % MOD;
b = b * 9 % MOD;
c = c * 8 % MOD;
}
a = (a - b % MOD + MOD) % MOD;
a = (a - b % MOD + MOD) % MOD;
a = (a + c % MOD +... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
long long a = 1, b = 1, c = 1;
for (int i = 1; i <= n; i++) {
a = a * 10 % MOD;
b = b * 9 % MOD;
c = c * 8 % MOD;
}
a = (a - b % MOD + MOD) % MOD;
a = (a - b % MOD + MOD) % MOD;
a = (a + c %... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"expression.operation.binary.remove"
] | 250,452 | 250,453 | u892637622 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pli = pair<ll, int>;
#define fi first
#define se second
#define pb push_back
#define sz(x) (int)((x).size())
#define fast \
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pli = pair<ll, int>;
#define fi first
#define se second
#define pb push_back
#define sz(x) (int)((x).size())
#define fast \
... | [
"expression.operation.binary.add"
] | 250,454 | 250,455 | u340822596 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
/* -------------------------------------------------TEMPLATE------------------------------------------------*/
#define C continue;
#define R return
#define int long long
#define D double
#define I insert
#define ull unsigned long long
#define ui unsigned int
#define ld lon... | #include <bits/stdc++.h>
using namespace std;
/* -------------------------------------------------TEMPLATE------------------------------------------------*/
#define C continue;
#define R return
#define int long long
#define D double
#define I insert
#define ull unsigned long long
#define ui unsigned int
#define ld lon... | [
"assignment.change"
] | 250,466 | 250,467 | u300466404 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, mod = 1e9 + 7, ans = 0;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a = (a * 10) % mod;
b = (b * 9) % mod;
c = (c * 8) % mod;
}
cout << (a - b - b + c + mod) % mod << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, mod = 1e9 + 7, ans = 0;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a = (a * 10) % mod;
b = (b * 9) % mod;
c = (c * 8) % mod;
}
cout << ((a - b - b + c) % mod + mod) % mod << endl;
} | [
"expression.operation.binary.add"
] | 250,468 | 250,469 | u501130777 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, mod = 1e9 + 7, ans = 0;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a = (a * 10) % mod;
b = (b * 9) % mod;
c = (c * 8) % mod;
}
cout << (a - b - b + c) % mod << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, mod = 1e9 + 7, ans = 0;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a = (a * 10) % mod;
b = (b * 9) % mod;
c = (c * 8) % mod;
}
cout << ((a - b - b + c) % mod + mod) % mod << endl;
} | [
"expression.operation.binary.add"
] | 250,470 | 250,469 | u501130777 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl "\n... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl "\n... | [
"expression.operation.binary.add"
] | 250,473 | 250,474 | u299720910 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define M 1000000007
ll powll(ll x, ll y) {
ll re = 1;
rep(i, y) { re = re * x % M; }
return re;
}
int main() {
int n;
cin >> n;
ll out = 0;
ll total = 0;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define M 1000000007
ll powll(ll x, ll y) {
ll re = 1;
rep(i, y) { re = re * x % M; }
return re;
}
int main() {
int n;
cin >> n;
ll out = 0;
ll total = 0;
... | [
"assignment.add"
] | 250,478 | 250,479 | u381491108 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define ff first
#define ss second
#define rsz resize
#define ins insert
#define mp make_pair
#define pf push_front
#define pb push_back
#define eb emplace_back
#define ft front()
#define bk back()
#define sz(x) (int)(x).size()
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define ff first
#define ss second
#define rsz resize
#define ins insert
#define mp make_pair
#define pf push_front
#define pb push_back
#define eb emplace_back
#define ft front()
#define bk back()
#define sz(x) (int)(x).size()
... | [
"control_flow.branch.if.condition.change"
] | 250,482 | 250,483 | u779663511 | cpp |
p02554 | #include <bits/stdc++.h>
#define lli long long
using namespace std;
long long mod = 1e9 + 7;
lli power(lli x, lli y, lli m = mod) {
lli res = 1;
while (y > 0) {
if (y & 1)
res = (res * x) % m;
y = y >> 1;
x = (x * x) % m;
}
if (res < 0)
res += m;
return res;
}
// lli fact[2000009];
// l... | #include <bits/stdc++.h>
#define lli long long
using namespace std;
long long mod = 1e9 + 7;
lli power(lli x, lli y, lli m = mod) {
lli res = 1;
while (y > 0) {
if (y & 1)
res = (res * x) % m;
y = y >> 1;
x = (x * x) % m;
}
if (res < 0)
res += m;
return res;
}
// lli fact[2000009];
// l... | [
"assignment.change"
] | 250,490 | 250,491 | u624171666 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
long long pow_mod(int a, long x) {
long long ret = a;
for (long i = x; i > 1; i--) {
ret = ret * a % 1000000007;
}
return ret;
}
int main() {
long n;
cin >> n;
if (n == 1) {
cout << 0;
return 0;
}
cout << (pow_mod(10, n) + pow_mod(8, n) - 2... | #include <bits/stdc++.h>
using namespace std;
long long pow_mod(int a, long x) {
long long ret = a;
for (long i = x; i > 1; i--) {
ret = ret * a % 1000000007;
}
return ret;
}
int main() {
long n;
cin >> n;
if (n == 1) {
cout << 0;
return 0;
}
cout << ((pow_mod(10, n) + pow_mod(8, n) - ... | [
"expression.operation.binary.add"
] | 250,492 | 250,493 | u577027209 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
long long pow_mod(int a, long x) {
long long ret = a;
for (long i = x; i > 1; i--) {
ret = ret * a % 1000000007;
}
return ret;
}
int main() {
long n;
cin >> n;
if (n == 1) {
cout << 0;
return 0;
}
cout << (pow_mod(10, n) + pow_mod(8, n) - 2... | #include <bits/stdc++.h>
using namespace std;
long long pow_mod(int a, long x) {
long long ret = a;
for (long i = x; i > 1; i--) {
ret = ret * a % 1000000007;
}
return ret;
}
int main() {
long n;
cin >> n;
if (n == 1) {
cout << 0;
return 0;
}
cout << ((pow_mod(10, n) + pow_mod(8, n) - ... | [
"expression.operation.binary.add"
] | 250,494 | 250,493 | u577027209 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0);
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0);
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i... | [
"expression.operation.binary.add"
] | 250,498 | 250,499 | u330661451 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0);
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0);
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i... | [
"expression.operation.binary.add"
] | 250,500 | 250,499 | u330661451 | cpp |
p02554 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <queue>
#define MM 1000000007
using namespace std;
int main(void) {
long long a, b, c, x;
int n, i;
scanf("%d", &n);
a = 1;
b = 1;
c = 1;
for (i = 0; i < n; i++) {
a = a * 10;
a = a % MM;
b = b * 9;
b ... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <queue>
#define MM 1000000007
using namespace std;
int main(void) {
long long a, b, c, x;
int n, i;
scanf("%d", &n);
a = 1;
b = 1;
c = 1;
for (i = 0; i < n; i++) {
a = a * 10;
a = a % MM;
b = b * 9;
b ... | [] | 250,509 | 250,508 | u296610335 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long powmod(long long x, long long y) {
long long ret = 1;
while (y--) {
ret *= x;
ret %= mod;
}
return ret;
}
int main() {
long long N;
cin >> N;
long long all = powmod(10, N);
long long no0 = powmod(9, N);
l... | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long powmod(long long x, long long y) {
long long ret = 1;
while (y--) {
ret *= x;
ret %= mod;
}
return ret;
}
int main() {
long long N;
cin >> N;
long long all = powmod(10, N);
long long no0 = powmod(9, N);
l... | [
"assignment.change"
] | 250,510 | 250,511 | u339389464 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long powmod(long long x, long long y) {
long long ret = 1;
while (y--) {
ret *= x;
ret %= mod;
}
return ret;
}
int main() {
long long N;
cin >> N;
long long all = powmod(10, N);
long long no0 = powmod(9, N);
l... | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long powmod(long long x, long long y) {
long long ret = 1;
while (y--) {
ret *= x;
ret %= mod;
}
return ret;
}
int main() {
long long N;
cin >> N;
long long all = powmod(10, N);
long long no0 = powmod(9, N);
l... | [
"assignment.change"
] | 250,510 | 250,513 | u339389464 | cpp |
p02554 | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
using namespace std;
typedef long long ll;
ll N;
ll MOD = 1000000007;
ll a = 10;
ll b = 9;
ll c = 8;
int main() {
cin >> N;
rep(i, N - 1) {
a = ... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
using namespace std;
typedef long long ll;
ll N;
ll MOD = 1000000007;
ll a = 10;
ll b = 9;
ll c = 8;
int main() {
cin >> N;
rep(i, N - 1) {
a = ... | [
"assignment.change"
] | 250,527 | 250,528 | u805392425 | cpp |
p02554 | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
using namespace std;
typedef long long ll;
ll N;
ll MOD = 1000000007;
ll a = 10;
ll b = 9;
ll c = 8;
int main() {
cin >> N;
rep(i, N - 1) {
a = ... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
using namespace std;
typedef long long ll;
ll N;
ll MOD = 1000000007;
ll a = 10;
ll b = 9;
ll c = 8;
int main() {
cin >> N;
rep(i, N - 1) {
a = ... | [
"assignment.add"
] | 250,527 | 250,529 | u805392425 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int mod = 1000000007;
ll powMod(ll x, ll n) {
ll res = 1;
for (ll i = 0; i < n; i++) {
res = res * 10 % mod;
}
return res;
}
int main() {
int n;
cin >> n;
ll res = powMod(10, n) - powMod(9, n) * 2 + powMod(8, n);
res = (res % mod... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int mod = 1000000007;
ll powMod(ll x, ll n) {
ll res = 1;
for (ll i = 0; i < n; i++) {
res = res * x % mod;
}
return res;
}
int main() {
int n;
cin >> n;
ll res = powMod(10, n) - powMod(9, n) * 2 + powMod(8, n);
res = (res % mod ... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 250,530 | 250,531 | u985625318 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
ll modpow(ll a, ll n, ll mod) {
ll res = 1;
while (n > 0) {
if (n & 1)
res = res * a % mod;
a = a * a % mod;
n >>= 1;
}
return res;
}
int main() {
ll n;
cin >> n;
ll ans = modpow(10, n, mod) - m... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
ll modpow(ll a, ll n, ll mod) {
ll res = 1;
while (n > 0) {
if (n & 1)
res = res * a % mod;
a = a * a % mod;
n >>= 1;
}
return res;
}
int main() {
ll n;
cin >> n;
ll ans = modpow(10, n, mod) - m... | [
"assignment.add"
] | 250,536 | 250,537 | u531631168 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int m = 1e9 + 7;
int main() {
int n;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; ++i) {
a = a * 10 % m;
b = b * 9 % m;
c = c * 8 % m;
}
cout << (a - 2 * b + c) % m << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int m = 1e9 + 7;
int main() {
int n;
cin >> n;
ll a = 1, b = 1, c = 1;
for (int i = 0; i < n; ++i) {
a = a * 10 % m;
b = b * 9 % m;
c = c * 8 % m;
}
cout << (a - 2 * b + c + 2 * m) % m << endl;
}
| [
"expression.operation.binary.add"
] | 250,538 | 250,539 | u721652634 | cpp |
p02554 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
long int N, Q = 1000000007, n10 = 1, n9 = 1, n8 = 1;
cin >> N;
for (int i = 0; i < N; i++) {
n10 = n10 * 10 % Q;
n9 = n9 * 9 % Q;
n8 = n8 * 8 % Q;
}
cout << (n10 + n8 - 2 * n9) % Q << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
long int N, Q = 1000000007, n10 = 1, n9 = 1, n8 = 1;
cin >> N;
for (int i = 0; i < N; i++) {
n10 = n10 * 10 % Q;
n9 = n9 * 9 % Q;
n8 = n8 * 8 % Q;
}
cout << (2 * Q + n10 + n8 - 2 * n9) % Q << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 250,544 | 250,545 | u490295622 | cpp |
p02554 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define IOS \
ios::sync_with_stdio(0); \
cin.... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define IOS \
ios::sync_with_stdio(0); \
cin.... | [
"assignment.change"
] | 250,550 | 250,551 | u055367538 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
const ll mod = 1000000007;
ll n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
return 0;
}
if (n == 2) {
cout << 2 << endl;
return 0;
}
ll tmp10 = 1;
ll tmp9 = 1;
ll tmp8 = 1;
ll m = n;
while (m--) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
const ll mod = 1000000007;
ll n;
cin >> n;
if (n == 1) {
cout << 0 << endl;
return 0;
}
if (n == 2) {
cout << 2 << endl;
return 0;
}
ll tmp10 = 1;
ll tmp9 = 1;
ll tmp8 = 1;
ll m = n;
while (m--) {
... | [
"assignment.add"
] | 250,558 | 250,559 | u221391729 | cpp |
p02554 | // Author: howso
#include <algorithm>
#include <assert.h>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <ti... | // Author: howso
#include <algorithm>
#include <assert.h>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <ti... | [] | 250,560 | 250,561 | u652423305 | cpp |
p02554 | #include <bits/stdc++.h>
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;
cin >> n;
ll ans = powmod(10, n) - 2 * powmod(9, n) + powmod(8, n);
ans = (ans + ... | #include <bits/stdc++.h>
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;
cin >> n;
ll ans = powmod(10, n) - 2 * powmod(9, n) + powmod(8, n);
ans = ans % m... | [
"assignment.add"
] | 250,566 | 250,567 | u593392188 | cpp |
p02554 | #include <iostream>
using namespace std;
const int MOD = 1e9 + 7;
int pow(int x, int n) {
long long ret = 1;
for (int i = 0; i < n; ++i) {
ret = (ret * n) % MOD;
}
return ret;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
long long ret = pow(10, N);... | #include <iostream>
using namespace std;
const int MOD = 1e9 + 7;
int pow(int x, int n) {
long long ret = 1;
for (int i = 0; i < n; ++i) {
ret = (ret * x) % MOD;
}
return ret;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
long long ret = pow(10, N);... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 250,568 | 250,569 | u382309379 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const i64 mod = 1e9 + 7;
int main() {
i64 n, ans = 0, a = 1, b = 1, c = 1;
cin >> n;
if (n == 1) {
cout << 0 << endl;
return 0;
}
for (i64 i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c ... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const i64 mod = 1e9 + 7;
int main() {
i64 n, ans = 0, a = 1, b = 1, c = 1;
cin >> n;
if (n == 1) {
cout << 0 << endl;
return 0;
}
for (i64 i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c ... | [] | 250,587 | 250,588 | u558599545 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const i64 mod = 1e9 + 7;
int main() {
i64 n, ans = 0, a = 1, b = 1, c = 1;
cin >> n;
if (n == 1) {
cout << 2 << endl;
return 0;
}
for (i64 i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c ... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const i64 mod = 1e9 + 7;
int main() {
i64 n, ans = 0, a = 1, b = 1, c = 1;
cin >> n;
if (n == 1) {
cout << 0 << endl;
return 0;
}
for (i64 i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c ... | [
"literal.number.change",
"io.output.change"
] | 250,589 | 250,590 | u558599545 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
re... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 250,591 | 250,592 | u188332959 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
re... | [
"assignment.add"
] | 250,593 | 250,594 | u188332959 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define sz(v) (int)v.size()
#define all(v) v.begin(), v.end()
void dbg_out() { cerr << "\b\b]\n"; }
template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) {
cerr << H << ", ";
dbg_out(T...);
}
#define watch(...)... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define sz(v) (int)v.size()
#define all(v) v.begin(), v.end()
void dbg_out() { cerr << "\b\b]\n"; }
template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) {
cerr << H << ", ";
dbg_out(T...);
}
#define watch(...)... | [
"assignment.change"
] | 250,595 | 250,596 | u111577663 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define sz(v) (int)v.size()
#define all(v) v.begin(), v.end()
void dbg_out() { cerr << "\b\b]\n"; }
template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) {
cerr << H << ", ";
dbg_out(T...);
}
#define watch(...)... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define sz(v) (int)v.size()
#define all(v) v.begin(), v.end()
void dbg_out() { cerr << "\b\b]\n"; }
template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) {
cerr << H << ", ";
dbg_out(T...);
}
#define watch(...)... | [
"assignment.change"
] | 250,595 | 250,597 | u111577663 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
int power(int n, int k) {
int res = 1;
while (k) {
if (k % 2)
res = (res * 1LL * n) % MOD;
n = (n * 1LL * n) % MOD;
k /= 2;
}
return res;
}
int main() {
int n;
cin >> n... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
int power(int n, int k) {
int res = 1;
while (k) {
if (k % 2)
res = (res * 1LL * n) % MOD;
n = (n * 1LL * n) % MOD;
k /= 2;
}
return res;
}
int main() {
int n;
cin >> n... | [] | 250,598 | 250,599 | u834714395 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int64_t ans;
int64_t a = 1;
int64_t b = 1;
int64_t c = 1;
for (int i = 0; i < N; i++) {
a = a * 10 % 1000000007;
b = b * 9 % 1000000007;
c = c * 8 % 1000000007;
}
ans = (a - (((b + b) % 1000000007) - c) % 100000... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int64_t ans;
int64_t a = 1;
int64_t b = 1;
int64_t c = 1;
for (int i = 0; i < N; i++) {
a = a * 10 % 1000000007;
b = b * 9 % 1000000007;
c = c * 8 % 1000000007;
}
ans =
(a + 1000000007 - (((b + b) % 100000... | [
"assignment.change"
] | 250,606 | 250,607 | u615620401 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const ll MOD = 1e9 + 7;
void solve() {
ll N;
cin >> N;
// total number of sequences = 10^N
// total number of sequences without 0 = 9^N;
// total number of sequences without 9 = 9^N;
// total number of sequences witho... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const ll MOD = 1e9 + 7;
void solve() {
ll N;
cin >> N;
// total number of sequences = 10^N
// total number of sequences without 0 = 9^N;
// total number of sequences without 9 = 9^N;
// total number of sequences witho... | [
"assignment.change"
] | 250,608 | 250,609 | u412960991 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const ll MOD = 1e9 + 7;
void solve() {
ll N;
cin >> N;
// total number of sequences = 10^N
// total number of sequences without 0 = 9^N;
// total number of sequences without 9 = 9^N;
// total number of sequences witho... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const ll MOD = 1e9 + 7;
void solve() {
ll N;
cin >> N;
// total number of sequences = 10^N
// total number of sequences without 0 = 9^N;
// total number of sequences without 9 = 9^N;
// total number of sequences witho... | [
"assignment.change"
] | 250,611 | 250,609 | u412960991 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mod 1000000007
ll exp(ll a, ll b) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll R = exp(a, b / 2);
if (b & 1) {
ll p = ((R % mod) * (R % mod)) % mod;
p = ((a % mod) * p) % mod;
return p;
}
else
return ((... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mod 1000000007
ll exp(ll a, ll b) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll R = exp(a, b / 2);
if (b & 1) {
ll p = ((R % mod) * (R % mod)) % mod;
p = ((a % mod) * p) % mod;
return p;
}
else
return ((... | [
"variable_declaration.type.change",
"assignment.add"
] | 250,614 | 250,615 | u302240043 | cpp |
p02554 | #include <iostream>
using namespace std;
long long N; //输入序列长度
int const maxn = 1e9 + 7; //求模的数
int main() {
long long a1 = 1, a2 = 1, a3 = 1, sum;
cin >> N;
for (int i = 1; i <= N; i++) {
a1 = (a1 * 10) % maxn;
a2 = (a2 * 9) % maxn;
a3 = (a3 * 8) % maxn;
}
sum = (a1 - ((2 * a2) % max... | #include <iostream>
using namespace std;
long long N; //输入序列长度
int const maxn = 1e9 + 7; //求模的数
int main() {
long long a1 = 1, a2 = 1, a3 = 1, sum;
cin >> N;
for (int i = 1; i <= N; i++) {
a1 = (a1 * 10) % maxn;
a2 = (a2 * 9) % maxn;
a3 = (a3 * 8) % maxn;
}
sum = ((a1 - ((2 * a2) % ma... | [
"assignment.change"
] | 250,616 | 250,617 | u002845682 | cpp |
p02554 | // noob
#include <bits/stdc++.h>
using namespace std;
#define fori(x) for (int i = 0; i < x; i++)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define ll long long int
#define ld long double
#define ull unsigned long long int
#define pi acos(-1)
#define test() ... | // noob
#include <bits/stdc++.h>
using namespace std;
#define fori(x) for (int i = 0; i < x; i++)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define ll long long int
#define ld long double
#define ull unsigned long long int
#define pi acos(-1)
#define test() ... | [
"preprocessor.define.value.change",
"literal.integer.change",
"expression.operation.binary.remove"
] | 250,625 | 250,626 | u145948129 | cpp |
p02554 | // God's Grace
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utilit... | // God's Grace
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utilit... | [
"expression.operation.binary.add"
] | 250,627 | 250,628 | u951552552 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
long long n, x = 1, y = 1, z = 1;
cin >> n;
for (int i = 0; i < n; i++) {
z = (z * 8) % mod;
y = (y * 9) % mod;
x = (x * 10) % mod;
}
y = (y * 2) % mod;
co... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
long long n, x = 1, y = 1, z = 1;
cin >> n;
for (int i = 0; i < n; i++) {
z = (z * 8) % mod;
y = (y * 9) % mod;
x = (x * 10) % mod;
}
y = (y * 2) % mod;
co... | [
"expression.operation.binary.add"
] | 250,629 | 250,630 | u417147392 | cpp |
p02554 | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | [
"literal.number.change",
"io.output.change"
] | 250,631 | 250,632 | u025193796 | cpp |
p02554 | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | [
"expression.operation.binary.add"
] | 250,633 | 250,632 | u025193796 | cpp |
p02554 | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
typedef long long ll;
ll ppow(ll b, ll a) {
ll ans = 1;
ll base = b;
while (a) {
if (a % 2 == 1) {
ans = ans * base;
ans = ans % mod;
}
base = base * base;
base = base % mod;
a = a / 2;
}
return ans % mod;
}
int ... | [
"expression.operation.binary.add"
] | 250,634 | 250,632 | u025193796 | cpp |
p02554 | /////////////////////////////////////////
/// Please Give Me AC!!!!! ///
/////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define forin(in) \
for (int i = 0; ... | /////////////////////////////////////////
/// Please Give Me AC!!!!! ///
/////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define forin(in) \
for (int i = 0; ... | [] | 250,642 | 250,643 | u060116081 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define IOS \
std::ios::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
typedef long ... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
std::ios::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
typedef long ... | [
"expression.operation.binary.remove"
] | 250,644 | 250,645 | u772018432 | cpp |
p02554 | #include <iostream>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll result = 1;
for (ll i = 0; i < y; i++) {
result = result * x % mod;
}
return result;
}
int main(void) {
ll N, A;
cin >> N;
A = powmod(9, N);
ll ans = (powmod(10, N) - A - A + powmo... | #include <iostream>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
ll powmod(ll x, ll y) {
ll result = 1;
for (ll i = 0; i < y; i++) {
result = result * x % mod;
}
return result;
}
int main(void) {
ll N, A;
cin >> N;
A = powmod(9, N);
ll ans = (powmod(10, N) - A - A + powmo... | [
"expression.operation.binary.add"
] | 250,646 | 250,647 | u218216885 | cpp |
p02554 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long tolong;
const tolong mo = 1000000007;
tolong modd(tolong i, tolong N) {
tolong ans = 1;
for (tolong j = 0; j < N; j++) {
ans = ans * i % mo;
}
return ans;
}
int main() {
tolong N;
tolong Ans;
cin >> N;
Ans = modd(10,... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long tolong;
const tolong mo = 1000000007;
tolong modd(tolong i, tolong N) {
tolong ans = 1;
for (tolong j = 0; j < N; j++) {
ans = ans * i % mo;
}
return ans;
}
int main() {
tolong N;
tolong Ans;
cin >> N;
Ans = modd(10,... | [
"assignment.add"
] | 250,650 | 250,651 | u529114225 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
... | #include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
... | [
"assignment.change"
] | 250,656 | 250,657 | u697199105 | cpp |
p02554 | //#include <tourist>
#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
// using namespace atcoder;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0... | //#include <tourist>
#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
// using namespace atcoder;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0... | [
"assignment.change"
] | 250,660 | 250,661 | u155416173 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define mod 1e9 + 7
#define INF 1 << 30
#define MAX (1 << 20)
#define NINF (-(1 << 30))
#define triplet pair<pair<int, int>, int>
ll power(ll base, ll p, ll pr) {
ll ans = 1;
if (base == 1)
return 1;
if (base... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define mod 1e9 + 7
#define INF 1 << 30
#define MAX (1 << 20)
#define NINF (-(1 << 30))
#define triplet pair<pair<int, int>, int>
ll power(ll base, ll p, ll pr) {
ll ans = 1;
if (base == 1)
return 1;
if (base... | [] | 250,662 | 250,663 | u334121100 | 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<int, null_type, less<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<int, null_type, less<int>, rb_tree_tag, \
... | [
"assignment.change"
] | 250,664 | 250,665 | u835426975 | cpp |
p02554 | /* / \ */
/* /*****\ */
/* Jai Shree Mataji / \ |\| |_| $ |-| K */
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <... | /* / \ */
/* /*****\ */
/* Jai Shree Mataji / \ |\| |_| $ |-| K */
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <... | [
"literal.number.change",
"io.output.change"
] | 250,666 | 250,667 | u441744624 | cpp |
p02554 | #include <iostream>
#include <vector>
using namespace std;
long long pow(long long x, long long a) {
long long ans = 1;
for (int i = 0; i < a; i++) {
ans *= x;
ans %= 1000000007;
}
return ans;
}
int main() {
long long N;
cin >> N;
long long sum = 0;
long long non9, non0, non0_9;
non9 = pow(9,... | #include <iostream>
#include <vector>
using namespace std;
long long pow(long long x, long long a) {
long long ans = 1;
for (int i = 0; i < a; i++) {
ans *= x;
ans %= 1000000007;
}
return ans;
}
int main() {
long long N;
cin >> N;
long long sum = 0;
long long non9, non0, non0_9;
non9 = pow(9,... | [
"assignment.add"
] | 250,670 | 250,671 | u912451998 | cpp |
p02554 | #include <algorithm>
#include <iostream>
using namespace std;
const int MD = 1000000007;
int power(int n, int k) {
if (k == 0)
return 1;
int p = power(n, k >> 1);
p = (long long)p * p % MD;
if (k & 1)
p = (long long)p * n % MD;
return p;
}
int main() {
int n;
cin >> n;
cout << (power(10, n) ... | #include <algorithm>
#include <iostream>
using namespace std;
const int MD = 1000000007;
int power(int n, int k) {
if (k == 0)
return 1;
int p = power(n, k >> 1);
p = (long long)p * p % MD;
if (k & 1)
p = (long long)p * n % MD;
return p;
}
int main() {
int n;
cin >> n;
cout << ((power(10, n)... | [
"expression.operation.binary.add"
] | 250,674 | 250,675 | u000120715 | cpp |
p02554 | #include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
const long long MOD = 1e9 + 7;
long long fp(long long base, long long n) {
long long ret = 1;
for (long long i = 0; i < n; i++) {
ret = ret * b... | #include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
const long long MOD = 1e9 + 7;
long long fp(long long base, long long n) {
long long ret = 1;
for (long long i = 0; i < n; i++) {
ret = ret * b... | [
"assignment.value.change",
"expression.operation.binary.remove"
] | 250,680 | 250,681 | u487641373 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long mod = 1000000007;
long long a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c %= mod;
}
long long ans = a - b - b + c;
ans = (ans + mod) % mod;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long mod = 1000000007;
long long a = 1, b = 1, c = 1;
for (int i = 0; i < n; i++) {
a *= 10;
b *= 9;
c *= 8;
a %= mod;
b %= mod;
c %= mod;
}
long long ans = (a - b - b + c) % mod;
ans = (ans + mod) ... | [
"assignment.change"
] | 250,682 | 250,683 | u094191970 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FIO \
ios_base::sync_with_stdio(0); \
cin.tie(0);
const int N = 2e5 + 5, M = 1e6 + 6, OO = 0x3f3f3f3f, MOD = 1e9 + 7;
int tc;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FIO \
ios_base::sync_with_stdio(0); \
cin.tie(0);
const int N = 2e5 + 5, M = 1e6 + 6, OO = 0x3f3f3f3f, MOD = 1e9 + 7;
int tc;... | [
"expression.operation.binary.add"
] | 250,684 | 250,685 | u363627559 | cpp |
p02554 | /*
author : nit1n
created : 14/09/2020 22:55:08
*/
#include <bits/stdc++.h>
#define int long long
using namespace std;
int mod = 1e9 + 7;
int power(int a, int b) {
int ans = 1;
while (b) {
if (b & 1) {
ans *= a;
ans %= mod;
}
a *= a;
a %= mod;
b >>= 1;
}
return ans;
}
signed m... | /*
author : nit1n
created : 14/09/2020 22:55:08
*/
#include <bits/stdc++.h>
#define int long long
using namespace std;
int mod = 1e9 + 7;
int power(int a, int b) {
int ans = 1;
while (b) {
if (b & 1) {
ans *= a;
ans %= mod;
}
a *= a;
a %= mod;
b >>= 1;
}
return ans;
}
signed m... | [
"assignment.change"
] | 250,686 | 250,687 | u264510298 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
// a^n mod を計算する
long long modpow(long long a, long long n, long long mod) {
long long res = 1;
while (n > 0) {
if (n & 1)
res = res * a % mod;
a = a * a % mod;
n >>= 1;
}
return res;
}
int main() {
int n;
cin >> n;
int mod = 1e9 + 7;
lo... | #include <bits/stdc++.h>
using namespace std;
// a^n mod を計算する
long long modpow(long long a, long long n, long long mod) {
long long res = 1;
while (n > 0) {
if (n & 1)
res = res * a % mod;
a = a * a % mod;
n >>= 1;
}
return res;
}
int main() {
int n;
cin >> n;
int mod = 1e9 + 7;
lo... | [
"expression.operation.binary.add"
] | 250,692 | 250,693 | u552331659 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll qpow(ll x, ll k) {
ll res = 1;
while (k) {
if (k & 1)
res = res * x % mod;
x = x % mod;
k /= 2;
}
return res;
}
int main() {
ll n;
cin >> n;
ll ans = qpow(10, n) - 2 * qpow(9, n) + qpow(8, n... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll qpow(ll x, ll k) {
ll res = 1;
while (k) {
if (k & 1)
res = res * x % mod;
x = x * x % mod;
k /= 2;
}
return res;
}
int main() {
ll n;
cin >> n;
ll ans = qpow(10, n) - 2 * qpow(9, n) + qpow(... | [
"assignment.change"
] | 250,696 | 250,697 | u222613738 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const int MAX = 1e6;
const int MOD = 1e9 + 7;
long int expmod(long int n, long int p) {
if (p == 0) {
return 1;
} else if (p % 2 == 0) {
long int t = expmod(n, p / 2);
return (t * t) % MOD;
} else {
return (n * expmod(n, p - 1)) % MOD;
}
}
int mai... | #include <bits/stdc++.h>
using namespace std;
const int MAX = 1e6;
const int MOD = 1e9 + 7;
long int expmod(long int n, long int p) {
if (p == 0) {
return 1;
} else if (p % 2 == 0) {
long int t = expmod(n, p / 2);
return (t * t) % MOD;
} else {
return (n * expmod(n, p - 1)) % MOD;
}
}
int mai... | [
"expression.operation.binary.add"
] | 250,700 | 250,701 | u798665594 | cpp |
p02554 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define reps(i, a, b) for (int i = a; i < b; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
ll f(ll a) {
a %= mod;
if (a < 0)
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define reps(i, a, b) for (int i = a; i < b; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
ll f(ll a) {
a %= mod;
if (a < 0)
... | [] | 250,702 | 250,703 | u423665486 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define pqb priority_queue<int>
#define pqs priority_queue<int, vi, greater<int>>
#define setbits(... | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define pqb priority_queue<int>
#define pqs priority_queue<int, vi, greater<int>>
#define setbits(... | [
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 250,710 | 250,711 | u190754941 | cpp |
p02554 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <vector>
#define INF 0x3f3f3f3f3f
using namespace std;
typedef long long ll;
const int maxn = 1e6 + 10;
const int c = 1e9 + 7;
long long pow_mod(ll a, ll b) {
long ... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <vector>
#define INF 0x3f3f3f3f3f
using namespace std;
typedef long long ll;
const int maxn = 1e6 + 10;
const int c = 1e9 + 7;
long long pow_mod(ll a, ll b) {
long ... | [
"expression.operation.binary.add"
] | 250,712 | 250,713 | u321938079 | cpp |
p02554 |
/*
Created on 14-09-20 12:20
@author: roastedcoder
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int mod = 1e9 + 7;
const int INF = INT_MAX;
#define endl "\n"
#define pb push_back
#define roastedcoder ... |
/*
Created on 14-09-20 12:20
@author: roastedcoder
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int mod = 1e9 + 7;
const int INF = INT_MAX;
#define endl "\n"
#define pb push_back
#define roastedcoder ... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 250,714 | 250,715 | u078505805 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
#define each(i, mp) for (auto &i : mp)
const int INF = 1001001001;
const ll MOD = 1000000007;
int main() {
int n;
ci... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
#define each(i, mp) for (auto &i : mp)
const int INF = 1001001001;
const ll MOD = 1000000007;
int main() {
int n;
ci... | [
"variable_declaration.type.change"
] | 250,722 | 250,723 | u344014102 | cpp |
p02554 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | [
"assignment.change"
] | 250,724 | 250,725 | u454814816 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
const int M = 1e9 + 7;
ll mul(ll a, ll b) { return (a * b) % M; }
ll mod_pow(ll a, ll b) {
ll r = 1;
while (b) {
if (b & 1)
r = mul(r, a);
b >>= 1;
a ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
const int M = 1e9 + 7;
ll mul(ll a, ll b) { return (a * b) % M; }
ll mod_pow(ll a, ll b) {
ll r = 1;
while (b) {
if (b & 1)
r = mul(r, a);
b >>= 1;
a ... | [
"assignment.change"
] | 250,729 | 250,730 | u227188449 | cpp |
p02554 | #include <iostream>
int main() {
int N = 0;
scanf("%d", &N);
long long abc = 1;
for (int a = 0; a < N; a++) {
abc = abc * 10;
abc = abc % 1000000007;
}
long long def = 1;
for (int a = 0; a < N; a++) {
def = def * 8;
def = def % 1000000007;
}
long long ghi = 1;
for (int a = 0; a < N; ... | #include <iostream>
int main() {
int N = 0;
scanf("%d", &N);
long long abc = 1;
for (int a = 0; a < N; a++) {
abc = abc * 10;
abc = abc % 1000000007;
}
long long def = 1;
for (int a = 0; a < N; a++) {
def = def * 8;
def = def % 1000000007;
}
long long ghi = 1;
for (int a = 0; a < N; ... | [] | 250,731 | 250,732 | u604266742 | cpp |
p02554 | /*
* Project: AtCoder Beginners Contest 178 C - Ubiquity
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/09/13
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdint>
#include <cst... | /*
* Project: AtCoder Beginners Contest 178 C - Ubiquity
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/09/13
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdint>
#include <cst... | [
"variable_declaration.type.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 250,740 | 250,741 | u781458283 | cpp |
p02554 | // In the Name of Allah Most Gracious, Most Merciful//
/*If you want something you've never had, you have to do something you never
* did.*/
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define M 100007
#define INF 1e9
#d... | // In the Name of Allah Most Gracious, Most Merciful//
/*If you want something you've never had, you have to do something you never
* did.*/
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define M 100007
#define INF 1e9
#d... | [
"assignment.change"
] | 250,742 | 250,743 | u127819326 | cpp |
p02554 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 250,751 | 250,752 | u191665873 | cpp |
p02554 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 250,753 | 250,752 | u191665873 | cpp |
p02554 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 250,754 | 250,752 | u191665873 | cpp |
p02554 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define black_tree \
tree<ll, null_type, less_equal<ll>, rb_tree_tag, \
tree_order_statist... | [
"literal.number.type.widen.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 250,755 | 250,752 | u191665873 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#include <map>
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REPR(i, n) for (ll i = n; i >= 0; i--)
#define FOR(i, m, n) for (ll i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using Graph = vector<vec... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#include <map>
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REPR(i, n) for (ll i = n; i >= 0; i--)
#define FOR(i, m, n) for (ll i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using Graph = vector<vec... | [
"expression.operation.binary.add"
] | 250,769 | 250,770 | u579355226 | cpp |
p02554 | #include <bits/stdc++.h>
#define newl "\n"
using namespace std;
using lli = long long int;
using vvint = vector<vector<int>>;
const int mod = 1e9 + 7;
const int N = 2e5 + 1;
void solve() {
lli n;
cin >> n;
lli ten = 1, nine = 1, eight = 1;
for (int i = n; i >= 1; --i) {
ten = ten * 10 % mod;
nine = ni... | #include <bits/stdc++.h>
#define newl "\n"
using namespace std;
using lli = long long int;
using vvint = vector<vector<int>>;
const int mod = 1e9 + 7;
const int N = 2e5 + 1;
void solve() {
lli n;
cin >> n;
lli ten = 1, nine = 1, eight = 1;
for (int i = n; i >= 1; --i) {
ten = ten * 10 % mod;
nine = ni... | [
"expression.operation.binary.add"
] | 250,774 | 250,775 | u798359674 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
long long getPower(long long base, long long power) {
if (power == 0) {
return 1;
}
long long x = getPower(base, power / 2);
x = (x * x) % MOD;
if (power % 2) {
return (base * x) % MOD;
} else {
return (x) % MOD;
}... | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
long long getPower(long long base, long long power) {
if (power == 0) {
return 1;
}
long long x = getPower(base, power / 2);
x = (x * x) % MOD;
if (power % 2) {
return (base * x) % MOD;
} else {
return (x) % MOD;
}... | [
"expression.operation.binary.add"
] | 250,780 | 250,781 | u882130438 | cpp |
p02554 | #include <bits/stdc++.h>
#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 500005
#define all(x) x.begin(), x.end()
#define endl '\n'
#define IOS \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 500005
#define all(x) x.begin(), x.end()
#define endl '\n'
#define IOS \
ios::sync_with_stdio(0); ... | [
"assignment.change"
] | 250,782 | 250,783 | u915287802 | cpp |
p02554 |
#include <algorithm>
#include <climits>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
#define mod 1000000007
using namespace std;
#define ll long long int
#define mod 1000000007
ll power(ll a, ll n) {
ll res = 1;
... |
#include <algorithm>
#include <climits>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
#define mod 1000000007
using namespace std;
#define ll long long int
#define mod 1000000007
ll power(ll a, ll n) {
ll res = 1;
... | [
"expression.operation.binary.add"
] | 250,798 | 250,799 | u744671242 | cpp |
p02554 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
ll aa = 1, pp = 1, qq = 1, ww = 1;
for (int i = 0; i < n; i++) {
aa *= 10;
pp *= 9;
qq *= 9;
ww *= 8;
aa %= 1000000007;
pp %= 1000000007;
qq %= 1000000007;
ww %= 1000000007;
}
cou... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
ll aa = 1, pp = 1, qq = 1, ww = 1;
for (int i = 0; i < n; i++) {
aa *= 10;
pp *= 9;
qq *= 9;
ww *= 8;
aa %= 1000000007;
pp %= 1000000007;
qq %= 1000000007;
ww %= 1000000007;
}
cou... | [
"expression.operation.binary.add"
] | 250,805 | 250,806 | u645283130 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.