Datasets:

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
p03713
#include <algorithm> #include <climits> #include <deque> #include <iostream> #include <math.h> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; #define rep(i, l, r) for (int i = l; i < r; i++) #define repb(i, r, l) for (int i = r; i > l; i--) #define ll long long #defin...
#include <algorithm> #include <climits> #include <deque> #include <iostream> #include <math.h> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; #define rep(i, l, r) for (int i = l; i < r; i++) #define repb(i, r, l) for (int i = r; i > l; i--) #define ll long long #defin...
[ "call.remove", "call.arguments.change" ]
1,380,003
1,380,004
u513064552
cpp
p03713
#include <algorithm> #include <cmath> #include <ctime> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { long long w, ...
#include <algorithm> #include <cmath> #include <ctime> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { long long w, ...
[]
1,380,011
1,380,012
u595984176
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; const ll INF = 1LL << 60; const ll mod = 1000000007; int main(void) { ll H, W; cin >> H >> W; ll ans = 1e9; if (H * W % 3 == 0) ans = 0; else { ans = min(H, W); ll a, b, c, w; a = W / 3 * H; w = W -...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; const ll INF = 1LL << 60; const ll mod = 1000000007; int main(void) { ll H, W; cin >> H >> W; ll ans; if (H * W % 3 == 0) ans = 0; else { ans = min(H, W); ll a, b, c, w; a = W / 3 * H; w = W - W / 3...
[ "variable_declaration.type.change" ]
1,380,025
1,380,026
u675509234
cpp
p03713
#include <bits/stdc++.h> #define rep(i, z, n) for (int i = z; i < n; i++) #define all(v) v.begin(), v.end() typedef long long ll; // const int INF = 1<<29; // const int MODINF = 1000000007; using namespace std; int main() { int H, W; cin >> H >> W; int64_t S_fin = H * W; rep(w, 0, W + 1) { int64_t S_1 = H ...
#include <bits/stdc++.h> #define rep(i, z, n) for (int i = z; i < n; i++) #define all(v) v.begin(), v.end() typedef long long ll; // const int INF = 1<<29; // const int MODINF = 1000000007; using namespace std; int main() { int64_t H, W; cin >> H >> W; int64_t S_fin = H * W; rep(w, 0, W + 1) { int64_t S_1 ...
[ "variable_declaration.type.primitive.change" ]
1,380,032
1,380,033
u462451018
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, r) for (long long i = (l); i < (r); ++i) #define REP(i, n) FOR(i, 0, n) #define int long long #define pb push_back #define mp make_pair const int MOD = 1e9 + 7; const int INF = 1e15; signed main() { int H, W; cin >> H >> W; int ans = min(H, W); ve...
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, r) for (long long i = (l); i < (r); ++i) #define REP(i, n) FOR(i, 0, n) #define int long long #define pb push_back #define mp make_pair const int MOD = 1e9 + 7; const int INF = 1e15; signed main() { int H, W; cin >> H >> W; int ans = min(H, W); ve...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
1,380,034
1,380,035
u342075214
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, r) for (long long i = (l); i < (r); ++i) #define REP(i, n) FOR(i, 0, n) #define int long long #define pb push_back #define mp make_pair const int MOD = 1e9 + 7; const int INF = 1e15; signed main() { int H, W; cin >> H >> W; int ans = INF; vector<i...
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, r) for (long long i = (l); i < (r); ++i) #define REP(i, n) FOR(i, 0, n) #define int long long #define pb push_back #define mp make_pair const int MOD = 1e9 + 7; const int INF = 1e15; signed main() { int H, W; cin >> H >> W; int ans = min(H, W); ve...
[ "call.arguments.add" ]
1,380,036
1,380,035
u342075214
cpp
p03713
#include <bits/stdc++.h> typedef long long ll; using namespace std; #define repr(i, a, b) for (ll i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define invrepr(i, a, b) for (int i = b - 1; i >= a; i--) #define invrep(i, n) invrepr(i, 0, n) #define repitr(itr, a) for (auto itr = a.begin(); itr != a.en...
#include <bits/stdc++.h> typedef long long ll; using namespace std; #define repr(i, a, b) for (ll i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define invrepr(i, a, b) for (int i = b - 1; i >= a; i--) #define invrep(i, n) invrepr(i, 0, n) #define repitr(itr, a) for (auto itr = a.begin(); itr != a.en...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,380,039
1,380,040
u012298376
cpp
p03713
#include <algorithm> #include <bitset> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #includ...
#include <algorithm> #include <bitset> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #includ...
[ "call.arguments.change" ]
1,380,041
1,380,042
u809967037
cpp
p03713
#include <algorithm> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; // マクロ&定数 ==============...
#include <algorithm> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; // マクロ&定数 ==============...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,380,047
1,380,048
u433195318
cpp
p03713
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <string> #include <vector> typedef long long ll; #define rep(i, a, b) for (int i = a; i < b; ++i) #define rrep(i, a, b) for (int i = a; i >= b; --i) using namespace std; using vi = vector<int>; using vll = vector<ll>; l...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <string> #include <vector> typedef long long ll; #define rep(i, a, b) for (int i = a; i < b; ++i) #define rrep(i, a, b) for (int i = a; i >= b; --i) using namespace std; using vi = vector<int>; using vll = vector<ll>; l...
[ "variable_declaration.type.change" ]
1,380,052
1,380,053
u983547593
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define dhoom \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); typedef long ...
#include <bits/stdc++.h> using namespace std; #define dhoom \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); typedef long ...
[ "variable_declaration.value.change", "identifier.change" ]
1,380,054
1,380,055
u708590262
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; int main() { ll h, w; cin >> h >> w;...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; int main() { ll h, w; cin >> h >> w;...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,058
1,380,059
u615662061
cpp
p03713
#include <iostream> using namespace std; using ll = long long; int h, w; ll solve(ll x, ll y) { ll ans = h * w; for (int i = 1; i < x; i++) { ll s1 = i * y; ll s2 = (x - i) / 2 * y; ll s3 = x * y - s1 - s2; ll smax = max(s1, max(s2, s3)); ll smin = min(s1, min(s2, s3)); ans = min(ans, smax...
#include <iostream> using namespace std; using ll = long long; ll h, w; ll solve(ll x, ll y) { ll ans = h * w; for (int i = 1; i < x; i++) { ll s1 = i * y; ll s2 = (x - i) / 2 * y; ll s3 = x * y - s1 - s2; ll smax = max(s1, max(s2, s3)); ll smin = min(s1, min(s2, s3)); ans = min(ans, smax ...
[ "variable_declaration.type.change" ]
1,380,066
1,380,067
u380412651
cpp
p03713
#include <iostream> using namespace std; using ll = long long; int h, w; ll search(ll x, ll y) { ll ans = h * w; for (int i = 1; i < x; i++) { ll s1 = i * y; ll s2 = (x - i) / 2 * y; ll s3 = x * y - s1 - s2; ll smax = max(s1, max(s2, s3)); ll smin = min(s1, min(s2, s3)); ans = min(ans, sma...
#include <iostream> using namespace std; using ll = long long; ll h, w; ll solve(ll x, ll y) { ll ans = h * w; for (int i = 1; i < x; i++) { ll s1 = i * y; ll s2 = (x - i) / 2 * y; ll s3 = x * y - s1 - s2; ll smax = max(s1, max(s2, s3)); ll smin = min(s1, min(s2, s3)); ans = min(ans, smax ...
[ "variable_declaration.type.change", "identifier.change", "call.function.change", "io.output.change" ]
1,380,068
1,380,067
u380412651
cpp
p03713
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; typedef long long ll; int h, w; int main() { cin >> h >> w; ll ans = h * w; if (h >= 3) { if (h % 3 == 0) ans = min(ans, 0LL); else { ans = min(ans, (ll)w); } } if (w >=...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; typedef long long ll; int h, w; int main() { cin >> h >> w; ll ans = (ll)h * (ll)w; if (h >= 3) { if (h % 3 == 0) ans = min(ans, 0LL); else { ans = min(ans, (ll)w); } } ...
[ "type_conversion.add" ]
1,380,071
1,380,072
u527862153
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; typedef long double ld; const int inf = 1e9 + 7; const ll longinf = 1LL << 60; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define F first #define S second const int mx = 2000...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; typedef long double ld; const int inf = 1e9 + 7; const ll longinf = 1LL << 60; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define F first #define S second const int mx = 2000...
[ "call.arguments.add" ]
1,380,079
1,380,080
u980909653
cpp
p03713
/** * Title: * Url: */ #include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; #define ll long long #define INF 1000000000 int main() { ll h, w;...
/** * Title: * Url: */ #include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; #define ll long long #define INF 1000000000 int main() { ll h, w;...
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,380,085
1,380,086
u036744414
cpp
p03713
#include <algorithm> #include <assert.h> #include <bitset> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <vector> // #include<bits/stdc++.h> using namespace std; typedef long long ll; constexpr long long int INFLL = 1001001001001001LL...
#include <algorithm> #include <assert.h> #include <bitset> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <vector> // #include<bits/stdc++.h> using namespace std; typedef long long ll; constexpr long long int INFLL = 1001001001001001LL...
[ "call.arguments.add", "control_flow.loop.for.initializer.change", "variable_declaration.type.change" ]
1,380,098
1,380,099
u550014122
cpp
p03713
#include "bits/stdc++.h" #define fi first #define se second #define all(x) x.begin(), x.end() using namespace std; using ull = unsigned long long; using ll = long long; constexpr int I_INF = INT_MAX; constexpr ll L_INF = LLONG_MAX; struct __INIT { __INIT() { cin.tie(nullptr); ios::sync_with_stdio(false); ...
#include "bits/stdc++.h" #define fi first #define se second #define all(x) x.begin(), x.end() using namespace std; using ull = unsigned long long; using ll = long long; constexpr int I_INF = INT_MAX; constexpr ll L_INF = LLONG_MAX; struct __INIT { __INIT() { cin.tie(nullptr); ios::sync_with_stdio(false); ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,115
1,380,116
u102067593
cpp
p03713
#include <iostream> #define ll long long #define INF 100000000000000 using namespace std; ll calc(ll H, ll W) { ll s1, s2, s3; ll mxs, mns; ll res = INF; for (int i = 1; i < H; i++) { s1 = i * W; s2 = (H - i) * (W / 2); s3 = (H - i) * (W - (W / 2)); mxs = max(s1, max(s2, s3)); mns = min(s...
#include <iostream> #define ll long long #define INF 100000000000000 using namespace std; ll calc(ll H, ll W) { ll s1, s2, s3; ll mxs, mns; ll res = INF; for (int i = 1; i < H; i++) { s1 = i * W; s2 = (H - i) * (W / 2); s3 = (H - i) * (W - (W / 2)); mxs = max(s1, max(s2, s3)); mns = min(s...
[ "call.arguments.add" ]
1,380,119
1,380,120
u840810569
cpp
p03713
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < n; ++i) #define rep1(i, n) for (long long i = 1; i <= n; ++i) #define ALL(v) v.begin(), v.end() #define RALL(v) v.rbegin(), v.rend() #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) using namespace std; typedef long long ll; typedef pair<ll,...
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < n; ++i) #define rep1(i, n) for (long long i = 1; i <= n; ++i) #define ALL(v) v.begin(), v.end() #define RALL(v) v.rbegin(), v.rend() #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) using namespace std; typedef long long ll; typedef pair<ll,...
[ "call.arguments.add" ]
1,380,121
1,380,122
u963903527
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; int diff(vector<int> S) { sort(S.begin(), S.end()); return S[2] - S[0]; } int main() { int H, W; cin >> H >> W; int ans = H * W; vector<int> S(3); for (int i = 1; i <= H - 1; i++) { S[0] = i * W; if (H - i >= 2) { S[1] = ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll diff(vector<ll> S) { sort(S.begin(), S.end()); return S[2] - S[0]; } int main() { ll H, W; cin >> H >> W; ll ans = H * W; vector<ll> S(3); for (int i = 1; i <= H - 1; i++) { S[0] = i * W; if (H - i >= 2) { S[1] = (H - ...
[ "variable_declaration.type.change" ]
1,380,133
1,380,134
u810388173
cpp
p03713
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; ll diff(ll h, ll w, ll x) { ll res = w * x; ll s1, s2, s3, s_min, s_max; s1 = w * x; s2 = w * ((h - x) / 2); s3 = w * h - s1 - s2; s_min = min({s1, s2, s3}); s_max = max({s1, s2, s3}); r...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; ll diff(ll h, ll w, ll x) { ll res = w * x; ll s1, s2, s3, s_min, s_max; s1 = w * x; // 2 s2 = w * ((h - x) / 2); s3 = w * h - s1 - s2; s_min = min({s1, s2, s3}); s_max = max({s1, s2, s3})...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,380,137
1,380,138
u646792990
cpp
p03713
#include <algorithm> #include <iostream> using namespace std; int main() { long long h, w; cin >> h >> w; long long res = h * w; for (long long i = 1; i < h - 1; i++) { long long a = i * w, b1 = (h - i) * (w / 2), b2 = ((h - i) / 2) * w, c1 = (h - i) * (w - (w / 2)), c2 = ((h - i) - ((h - i...
#include <algorithm> #include <iostream> using namespace std; int main() { long long h, w; cin >> h >> w; long long res = h * w; for (long long i = 1; i <= h - 1; i++) { long long a = i * w, b1 = (h - i) * (w / 2), b2 = ((h - i) / 2) * w, c1 = (h - i) * (w - (w / 2)), c2 = ((h - i) - ((h - ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,380,139
1,380,140
u185690073
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define rep(i, x, y) for (int i = x; i < y; i++) #define range(a) (a).begin(), (a).end() #define print(A, n) \ rep(i, 0, n) { cout << (i ? " " : "") << A[i]; } \ cout << endl; #define...
#include <bits/stdc++.h> using namespace std; #define rep(i, x, y) for (int i = x; i < y; i++) #define range(a) (a).begin(), (a).end() #define print(A, n) \ rep(i, 0, n) { cout << (i ? " " : "") << A[i]; } \ cout << endl; #define...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,380,143
1,380,144
u977554186
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,145
1,380,146
u340010271
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,147
1,380,146
u340010271
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < n; i++) #define FOR(i, a, b) for (ll i = a; i < b; i++) #define is(a, b) a == b #define len(v) ll(v.size()) class UnionFind { public: vector<int> par; //親の番号 vector<int> rank; //木の深さ ...
[ "identifier.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change", "call.arguments.change" ]
1,380,148
1,380,146
u340010271
cpp
p03713
#include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 998244353 #define INF 1 << 30 #define LINF (ll)1 << 62 #define MAX 510000 #define rep(i, n) for (ll i = 0; i ...
#include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 998244353 #define INF 1 << 30 #define LINF (ll)1 << 62 #define MAX 510000 #define rep(i, n) for (ll i = 0; i ...
[ "assignment.add" ]
1,380,149
1,380,150
u242679311
cpp
p03713
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; return 0; } ll ans = 1e9; for (int i = 1; i < h; ++i) { if (w % 2 == 0) ans = m...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; return 0; } ll ans = min(h, w); for (int i = 1; i < h; ++i) { if (w % 2 == 0) a...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.add" ]
1,380,161
1,380,162
u436741428
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define REP(i, a) for (int i = 0; i < (a); i++) #define ALL(a) (a).begin(), (a).end() typedef long long ll; typedef pair<int, int> P; const ll INF = 1e12; const int MOD = 1e9 + 7; signed main() { ll h, w; cin >> h >> w; ll ans = INF; REP(i, 2) { for (ll i = 0; ...
#include <bits/stdc++.h> using namespace std; #define REP(i, a) for (int i = 0; i < (a); i++) #define ALL(a) (a).begin(), (a).end() typedef long long ll; typedef pair<int, int> P; const ll INF = 1e12; const int MOD = 1e9 + 7; signed main() { ll h, w; cin >> h >> w; ll ans = INF; REP(i, 2) { for (ll i = 0; ...
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,171
1,380,172
u366398972
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, j, n) for (int i = j; i < n; i++) #define all(x) (x).begin(), (x).end() #define INF (1 << 30) #define MOD (1000000007) ///////////////////////////////////////////////////////// void chmin(int &a, int b) { if (a > b) a = b; retu...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, j, n) for (int i = j; i < n; i++) #define all(x) (x).begin(), (x).end() #define INF (1 << 30) #define MOD (1000000007) ///////////////////////////////////////////////////////// void chmin(ll &a, ll b) { if (a > b) a = b; return...
[ "variable_declaration.type.change" ]
1,380,173
1,380,174
u855985627
cpp
p03713
#include <bits/stdc++.h> using namespace std; long long solve2(long long H, long long W) { long long a, b, best = LLONG_MAX, result; a = H / 2 * W; b = H * W - a; if (abs(a - b) < best) { best = abs(a - b); result = a; } a = H * W / 2; b = H * W - a; if (abs(a - b) < best) { best = abs(a - ...
#include <bits/stdc++.h> using namespace std; long long solve2(long long H, long long W) { long long a, b, best = LLONG_MAX, result; a = (H / 2) * W; b = H * W - a; if (abs(a - b) < best) { best = abs(a - b); result = a; } a = H * (W / 2); b = H * W - a; if (abs(a - b) < best) { best = abs(...
[]
1,380,177
1,380,178
u960267905
cpp
p03713
#include <bits/stdc++.h> using namespace std; long long h, w, ans = 0x7fffffffffffffff, a, b, c, d, e, i, ans1, ans2; long long f(long long h, long long w) { for (i = 0; i <= h / 2; i++) { a = w * i; b = w / 2 * (h - i); c = (h - i) / 2 * w; d = h * w - a - b; e = h * w - a - c; ans1 = max(a, ...
#include <bits/stdc++.h> using namespace std; long long h, w, ans = 0x7fffffffffffffff, a, b, c, d, e, i, ans1, ans2; long long f(long long h, long long w) { for (i = 0; i <= h / 2; i++) { a = w * i; b = w / 2 * (h - i); c = (h - i) / 2 * w; d = h * w - a - b; e = h * w - a - c; ans1 = max(a, ...
[ "misc.opposites", "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,179
1,380,180
u226023982
cpp
p03713
#include <bits/stdc++.h> #define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++) #define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--) using ll = long long; using ld = long double; using namespace std; const ll mod = 1e9 + 7; int main() { ll h, w, ans = 0, tmp = 0; cin >> h >> w; ll a = ceil((ld)h / 3) * w, b...
#include <bits/stdc++.h> #define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++) #define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--) using ll = long long; using ld = long double; using namespace std; const ll mod = 1e9 + 7; int main() { ll h, w, ans = 0, tmp = 0; cin >> h >> w; ll a = ceil((ld)h / 3) * w, b...
[ "call.add", "call.arguments.change" ]
1,380,185
1,380,186
u499009346
cpp
p03713
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define FOR(i, a, b) for (ll i = (a); i < (ll)b; i++) #define ALL(obj) (obj).begin(), (obj).end() #define INF (1ll << 60) #define sz(x) int(x.size()) using namespace std; typedef long long ll; typedef double db; typedef string str; typedef pair<l...
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define FOR(i, a, b) for (ll i = (a); i < (ll)b; i++) #define ALL(obj) (obj).begin(), (obj).end() #define INF (1ll << 60) #define sz(x) int(x.size()) using namespace std; typedef long long ll; typedef double db; typedef string str; typedef pair<l...
[ "variable_declaration.type.change" ]
1,380,217
1,380,218
u824337972
cpp
p03713
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using ll = long long; ll solve(int h, int w) { ll mw = w / 2; ll ans = 1 << 30; for (int hi = 1; hi <= h; ++hi) { ll s1 = hi * w; ll mh = (h - hi) / 2; ll s2, s3; for (int f = 0; f < 2; ++f) { if (f == 0) { ...
#include <algorithm> #include <cmath> #include <iostream> #include <vector> // using ll = long long; using ll = long long; // なぜintじゃだめ? ll solve(ll h, ll w) { ll mw = w / 2; ll ans = 1 << 30; for (int hi = 1; hi <= h; ++hi) { ll s1 = hi * w; ll mh = (h - hi) / 2; ll s2, s3; for (int f = 0;...
[]
1,380,226
1,380,227
u871841829
cpp
p03713
#include "bits/stdc++.h" using namespace std; typedef long long ll; #define INF (1 << 30) #define INFLL (1ll << 60) typedef pair<int, int> P; typedef pair<ll, P> E; #define cost first #define from second.first #define to second.second #define MOD (1000000007ll) #define l_ength size void mul_mod(ll &a, ll b) { a *= b...
#include "bits/stdc++.h" using namespace std; typedef long long ll; #define INF (1 << 30) #define INFLL (1ll << 60) typedef pair<int, int> P; typedef pair<ll, P> E; #define cost first #define from second.first #define to second.second #define MOD (1000000007ll) #define l_ength size void mul_mod(ll &a, ll b) { a *= b...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,380,234
1,380,235
u548624367
cpp
p03713
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; using lint = long long; constexpr int MOD = 1000000007; constexpr lint LINF = 1111111111; template <class T> ostrea...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; using lint = long long; constexpr int MOD = 1000000007; constexpr lint LINF = 1111111111; template <class T> ostrea...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,238
1,380,239
u532573979
cpp
p03713
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; using lint = long long; constexpr int MOD = 1000000007; constexpr lint LINF = 1111111111; template <class T> ostrea...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; using lint = long long; constexpr int MOD = 1000000007; constexpr lint LINF = 1111111111; template <class T> ostrea...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,240
1,380,239
u532573979
cpp
p03713
#include <algorithm> #include <cmath> #include <deque> #include <functional> // std::function<void(int)> #include <iomanip> // cout<<setprecision(n) #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
#include <algorithm> #include <cmath> #include <deque> #include <functional> // std::function<void(int)> #include <iomanip> // cout<<setprecision(n) #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,380,245
1,380,246
u282228874
cpp
p03704
#include <bits/stdc++.h> using namespace std; struct fast_ios { fast_ios() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_; #define FOR(i, begin, end) for (int i = (begin); i < (end); i++) #define REP(i, n) FOR(i, 0, n) #define IFOR(i, begin, end) for (int i ...
#include <bits/stdc++.h> using namespace std; struct fast_ios { fast_ios() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_; #define FOR(i, begin, end) for (int i = (begin); i < (end); i++) #define REP(i, n) FOR(i, 0, n) #define IFOR(i, begin, end) for (int i ...
[ "assignment.change" ]
1,380,279
1,380,280
u434231045
cpp
p03704
#include <bits/stdc++.h> #define ll long long #define reg register #define rep(i, a, b) for (int i = a; i <= b; ++i) using namespace std; int d, N = 17; ll ans, a, b = 1; int main() { scanf("%d", &d); if (d % 9) { puts("0"); return 0; } d /= 9; rep(i, 1, N) { reg ll res = 1, tmp = d, all = a * 1...
#include <bits/stdc++.h> #define ll long long #define reg register #define rep(i, a, b) for (int i = a; i <= b; ++i) using namespace std; int d, N = 17; ll ans, a, b = 1; int main() { scanf("%d", &d); if (d % 9) { puts("0"); return 0; } d /= 9; rep(i, 1, N) { reg ll res = 1, Tmp = d, all = a * 1...
[ "variable_declaration.name.change", "identifier.change", "expression.operation.binary.change", "assignment.variable.change", "control_flow.branch.if.condition.change" ]
1,380,281
1,380,282
u215237678
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ALL(V) (V).begin(), (V).end() #define ALLR(V) (V).rbegin(), (V).rend() template <typename T> using V = vector<T>; template <typename T> using VV = V<V<T>>; template <typename T, typename U> using P = pair<T, U>; using ll = __int128_t; // using ll ...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ALL(V) (V).begin(), (V).end() #define ALLR(V) (V).rbegin(), (V).rend() template <typename T> using V = vector<T>; template <typename T> using VV = V<V<T>>; template <typename T, typename U> using P = pair<T, U>; using ll = __int128_t; // using ll ...
[ "call.add", "call.arguments.change", "function.return_value.change", "literal.number.change" ]
1,380,306
1,380,307
u216962796
cpp
p03704
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define all(c) (c).begin(), (c).end() #define pb push_back #define dbg(...) \ do { \ cerr << __LINE__ <<...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define all(c) (c).begin(), (c).end() #define pb push_back #define dbg(...) \ do { \ cerr << __LINE__ <<...
[ "control_flow.branch.if.condition.change", "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,380,315
1,380,316
u525288965
cpp
p03704
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define all(c) (c).begin(), (c).end() #define pb push_back #define dbg(...) \ do { \ cerr << __LINE__ <<...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define all(c) (c).begin(), (c).end() #define pb push_back #define dbg(...) \ do { \ cerr << __LINE__ <<...
[ "control_flow.branch.if.condition.change", "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,380,317
1,380,316
u525288965
cpp
p03704
#include <bits/stdc++.h> typedef long long ll; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, a) FOR(i, 0, a) using namespace std; const int MAX_D_DIG = 9; ll D; int d[MAX_D_DIG]; ll pw10[MAX_D_DIG * 2]; int hL, L; ll dfs(int i, ll sm) { ll ret = 0; if (i == hL) { if (sm == D) { ret ...
#include <bits/stdc++.h> typedef long long ll; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, a) FOR(i, 0, a) using namespace std; const int MAX_D_DIG = 9; ll D; int d[MAX_D_DIG]; ll pw10[MAX_D_DIG * 2]; int hL, L; ll dfs(int i, ll sm) { ll ret = 0; if (i == hL) { if (sm == D) { ret ...
[ "assignment.value.change" ]
1,380,325
1,380,326
u533920479
cpp
p03704
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <str...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <str...
[ "assignment.change" ]
1,380,343
1,380,344
u670220889
cpp
p03704
#include <bits/stdc++.h> using namespace std; long long d, e[18], ans; long long solve(int l, int r, long long d) { if (l >= r && d) return 0; if (l == r) return 10 - (l == 0); if (l == r + 1) return 1; int t = (10 - d % 10) % 10; return (10 - (l == 0) - t) * solve(l + 1, r - 1, (d - t ...
#include <bits/stdc++.h> using namespace std; long long d, e[18], ans; long long solve(int l, int r, long long d) { if (l >= r && d) return 0; if (l == r) return 10 - (l == 0); if (l == r + 1) return 1; int t = (10 - d % 10) % 10; return (10 - (l == 0) - t) * solve(l + 1, r - 1, abs(d -...
[ "call.add", "call.arguments.change", "function.return_value.change" ]
1,380,347
1,380,348
u812155455
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = (a); i <= (b); i++) #define re(i, a, b) for (int i = (a); i < (b); i++) #define repd(i, a, b) for (int i = (a); i >= (b); i--) #define run(a) for (int k = head[a]; k; k = e[k].ne) #define v e[k].t #define clr(a) memset(a, 0, sizeof(a)); #de...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = (a); i <= (b); i++) #define re(i, a, b) for (int i = (a); i < (b); i++) #define repd(i, a, b) for (int i = (a); i >= (b); i--) #define run(a) for (int k = head[a]; k; k = e[k].ne) #define v e[k].t #define clr(a) memset(a, 0, sizeof(a)); #de...
[ "assignment.change" ]
1,380,349
1,380,350
u767993375
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = (a); i <= (b); i++) #define re(i, a, b) for (int i = (a); i < (b); i++) #define repd(i, a, b) for (int i = (a); i >= (b); i--) #define run(a) for (int k = head[a]; k; k = e[k].ne) #define v e[k].t #define clr(a) memset(a, 0, sizeof(a)); #de...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = (a); i <= (b); i++) #define re(i, a, b) for (int i = (a); i < (b); i++) #define repd(i, a, b) for (int i = (a); i >= (b); i--) #define run(a) for (int k = head[a]; k; k = e[k].ne) #define v e[k].t #define clr(a) memset(a, 0, sizeof(a)); #de...
[ "call.arguments.change", "function.return_value.change" ]
1,380,351
1,380,350
u767993375
cpp
p03704
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; typedef long long ll; #define re_ return ll e[19]; ll DFS(ll n, ll m, char k) { // printf("%lld %lld\n", n, m); n = abs(n); if (m == -1) re_ !n; if (!m) re_ n ? 0 : 10; int i = n / e[m]; if (i > 9) re_ 0; if ((...
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; typedef long long ll; #define re_ return ll e[19]; ll DFS(ll n, ll m, char k) { // printf("%lld %lld\n", n, m); n = abs(n); if (m == -1) re_ !n; if (!m) re_ n ? 0 : 10; int i = n / e[m]; if (i > 9) re_ 0; if ((...
[ "call.add", "call.arguments.add" ]
1,380,354
1,380,355
u737202405
cpp
p03704
#include <bits/stdc++.h> #define For(i, j, k) for (int i = j; i <= k; i++) using namespace std; typedef long long LL; const int N = 20; LL Pow[N], ans; void DFS(int x, LL rem, LL ret, bool first) { if (x <= 1) { if (x == 1) ret *= 10 - first; if (!rem) ans += ret; return; } LL del =...
#include <bits/stdc++.h> #define For(i, j, k) for (int i = j; i <= k; i++) using namespace std; typedef long long LL; const int N = 20; LL Pow[N], ans; void DFS(int x, LL rem, LL ret, bool first) { if (x <= 1) { if (x == 1) ret *= 10 - first; if (!rem) ans += ret; return; } LL del =...
[ "literal.number.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
1,380,363
1,380,364
u707449608
cpp
p03704
#include <bits/stdc++.h> #define xx first #define yy second #define mp make_pair #define pb push_back #define fill(x, y) memset(x, y, sizeof x) #define copy(x, y) memcpy(x, y, sizeof x) using namespace std; typedef long long LL; typedef pair<int, int> pa; inline int read() { int sc = 0, f = 1; char ch = getchar()...
#include <bits/stdc++.h> #define xx first #define yy second #define mp make_pair #define pb push_back #define fill(x, y) memset(x, y, sizeof x) #define copy(x, y) memcpy(x, y, sizeof x) using namespace std; typedef long long LL; typedef pair<int, int> pa; inline int read() { int sc = 0, f = 1; char ch = getchar()...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
1,380,365
1,380,366
u877679608
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() #define fi first #define se second template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() #define fi first #define se second template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return...
[ "literal.number.change", "call.arguments.change", "variable_declaration.array_dimensions.change" ]
1,380,374
1,380,375
u105791541
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() #define fi first #define se second template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() #define fi first #define se second template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return...
[ "literal.number.change", "call.arguments.change", "variable_declaration.array_dimensions.change" ]
1,380,374
1,380,377
u105791541
cpp
p03704
#include <bits/stdc++.h> #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define RFOR(i, a, b) for (ll i = (b)-1; i >= (a); i--) #define rep(i, n) for (ll i = 0; i < (n); i++) #define rep1(i, n) for (ll i = 1; i <= (n); i++) #define rrep(i, n) for (ll i = (n)-1; i >= 0; i--) #define pb push_back #define mp make_p...
#include <bits/stdc++.h> #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define RFOR(i, a, b) for (ll i = (b)-1; i >= (a); i--) #define rep(i, n) for (ll i = 0; i < (n); i++) #define rep1(i, n) for (ll i = 1; i <= (n); i++) #define rrep(i, n) for (ll i = (n)-1; i >= 0; i--) #define pb push_back #define mp make_p...
[ "literal.number.change", "function.return_value.change" ]
1,380,408
1,380,409
u603303736
cpp
p03704
#include <bits/stdc++.h> using namespace std; #define int long long int MOD = 1000000007; int mypow10[19]; int dg; int count(int D, int depth) { int x = (mypow10[dg - depth] - mypow10[depth]) / 9; if (dg <= depth * 2) { if (D == 0) { if (dg == depth * 2) { return 10; } else { return...
#include <bits/stdc++.h> using namespace std; #define int long long int MOD = 1000000007; int mypow10[19]; int dg; int count(int D, int depth) { int x = (mypow10[dg - depth] - mypow10[depth]) / 9; if (dg <= depth * 2) { if (D == 0) { if (dg == depth * 2) { return 10; } else { return...
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,417
1,380,418
u864888234
cpp
p03704
// Copyright (C) 2017 __debug. // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; version 3 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; with...
// Copyright (C) 2017 __debug. // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; version 3 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; with...
[ "literal.number.change", "expression.operation.binary.change", "control_flow.loop.for.condition.change" ]
1,380,423
1,380,424
u480392922
cpp
p03705
#include <iostream> #include <stdio.h> //#include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <cstring> #include <float.h> #include <iomanip> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> ...
#include <iostream> #include <stdio.h> //#include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <cstring> #include <float.h> #include <iomanip> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> ...
[ "call.add", "call.arguments.change" ]
1,380,446
1,380,447
u516525290
cpp
p03705
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, a, b; cin >> n >> a >> b; if (b < a || n == 1) { cout << 0 << endl; return 0; } ll ans = (b - a) * (n - 1) - (b - a) + 1; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, a, b; cin >> n >> a >> b; if (b < a || n == 1 && a != b) { cout << 0 << endl; return 0; } ll ans = (b - a) * (n - 1) - (b - a) + 1; cout << ans << endl; }
[ "control_flow.branch.if.condition.change" ]
1,380,450
1,380,451
u528258842
cpp
p03705
#include <bits/stdc++.h> using namespace std; int main() { long long n, a, b, max, min; cin >> n >> a >> b; max = a + (n - 1) * b; min = (n - 1) * a + b; cout << (max > min ? (max - min + 1) : 0) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, a, b, max, min; cin >> n >> a >> b; max = a + (n - 1) * b; min = (n - 1) * a + b; cout << (max < min ? 0 : (max - min + 1)) << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "io.output.change" ]
1,380,464
1,380,465
u863370423
cpp
p03705
#include <bits/stdc++.h> using namespace std; long long N, A, B; int main() { cin >> N >> A >> B; long long totalA = A * (N - 1) + B, totalB = A + (N - 1) * B; if ((N == 1 && A != B) || A < B) { cout << 0 << '\n'; } else { cout << totalB - totalA + 1 << '\n'; } }
#include <bits/stdc++.h> using namespace std; long long N, A, B; int main() { cin >> N >> A >> B; long long totalA = A * (N - 1) + B, totalB = A + (N - 1) * B; if ((N == 1 && A != B) || A > B) { cout << 0 << '\n'; } else { cout << totalB - totalA + 1 << '\n'; } }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,380,475
1,380,476
u816631826
cpp
p03705
#include <bits/stdc++.h> #define int long long #define counter(m) for (int i = 0; i < m; i++) #define gcd __gcd #define endl "\n" #define pb emplace_back #define setbits(x) __builtin_popcountll(x) #define zrobits(x) __builtin_ctzll(x) #define mod 1000000007 #define mod2 998244353 #define maxe *max_element #define mine...
#include <bits/stdc++.h> #define int long long #define counter(m) for (int i = 0; i < m; i++) #define gcd __gcd #define endl "\n" #define pb emplace_back #define setbits(x) __builtin_popcountll(x) #define zrobits(x) __builtin_ctzll(x) #define mod 1000000007 #define mod2 998244353 #define maxe *max_element #define mine...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,380,486
1,380,487
u052649041
cpp
p03705
#include <iostream> #include <string.h> using namespace std; int main() { long long n, a, b; cin >> n >> a >> b; if (n == 1) { if (a == b) cout << a << endl; else cout << "0" << endl; return 0; } else if (n == 2) { if (a <= b) cout << a + b << endl; else cout << "0" <...
#include <iostream> #include <string.h> using namespace std; int main() { long long n, a, b; cin >> n >> a >> b; if (n == 1) { if (a == b) cout << "1" << endl; else cout << "0" << endl; return 0; } else if (n == 2) { if (a <= b) cout << a + b << endl; else cout << "0"...
[ "io.output.change" ]
1,380,494
1,380,495
u018679195
cpp
p03705
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("1"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%d", (long long)(b - a) * (n - 2) + 1); } retur...
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("0"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%lld", (long long)(b - a) * (n - 2) + 1); } ret...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,380,496
1,380,497
u018679195
cpp
p03705
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("1"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%lld", (b - a) * (n - 2) + 1); } return 0; }
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("0"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%lld", (long long)(b - a) * (n - 2) + 1); } ret...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,380,498
1,380,497
u018679195
cpp
p03705
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("1"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%d", (b - a) * (n - 2) + 1); } return 0; }
#include <cstdio> int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); if (n == 1) { if (a == b) printf("1"); else printf("0"); } else { if (a > b) printf("0"); else if (a == b) { printf("1"); } else printf("%lld", (long long)(b - a) * (n - 2) + 1); } ret...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,380,499
1,380,497
u018679195
cpp
p03713
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> using namespace std; /*--- Macro ---*/ #define rep(i, n) for (int i = 0; i < (int)...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> using namespace std; /*--- Macro ---*/ #define rep(i, n) for (int i = 0; i < (int)...
[ "expression.operation.binary.add" ]
1,380,509
1,380,510
u704630096
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) cout << 0; else { int ans = 1000000000000; for (int i = 1; i <= H; i++) { int a1 = W * i; int a2 = (H / 2) * (W - i); int a3 = H * W - a1 - a2...
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) cout << 0; else { int ans = 1000000000000; for (int i = 1; i <= H; i++) { int a1 = W * i; int a2 = (W / 2) * (H - i); int a3 = H * W - a1 - a2...
[ "identifier.change", "expression.operation.binary.change" ]
1,380,513
1,380,514
u001858868
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) cout << 0; else { int ans = 1000000000000; for (int i = 1; i <= H; i++) { int a1 = W * i; int a2 = (H / 2) * (W - i); int a3 = H * W - a1 - a2...
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) cout << 0; else { int ans = 1000000000000; for (int i = 1; i <= H; i++) { int a1 = W * i; int a2 = (W / 2) * (H - i); int a3 = H * W - a1 - a2...
[ "identifier.change", "expression.operation.binary.change" ]
1,380,513
1,380,515
u001858868
cpp
p03713
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { long h, w; cin >> h >> w; if ((h % 3) * (w % 3) == 0) { cout << 0; } else { long ret = 10000000; for (int i = 0; i < h; i++) { if (w % 2 == 0) { ret = min(ret, abs(i * w - (h - i) * w / 2)); ...
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { long h, w; cin >> h >> w; if ((h % 3) * (w % 3) == 0) { cout << 0; } else { long ret = min(h, w); for (int i = 0; i < h; i++) { if (w % 2 == 0) { ret = min(ret, abs(i * w - (h - i) * w / 2)); ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.add" ]
1,380,516
1,380,517
u809153881
cpp
p03713
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll h, w, one = 1; cin >> h >> w; // h>=Wとしてよい if (w > h) { swap(h, w); } // hが長辺 if ((h * w) % 3 == 0) { cout << 0 << endl; } else { ll ans1 = 10000000002, ans2 = 10000000002, ans3 = 10000000002; for (ll i = ma...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll h, w, one = 1; cin >> h >> w; // h>=Wとしてよい if (w > h) { swap(h, w); } // hが長辺 if ((h * w) % 3 == 0) { cout << 0 << endl; } else { ll ans1 = 10000000002, ans2 = 10000000002, ans3 = 10000000002; for (ll i = ma...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,380,531
1,380,532
u317711717
cpp
p03713
#include <bits/stdc++.h> using namespace std; using ll = long long; #define ALL(v) (v).begin(), (v).end() int main() { ll H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) { cout << 0 << endl; return 0; } ll ans = 1 << 30; for (int i = 1; i < H; ++i) { ll sa = i * W, sb = (H - i) * (W / 2), ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define ALL(v) (v).begin(), (v).end() int main() { ll H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) { cout << 0 << endl; return 0; } ll ans = min(H, W); for (int i = 1; i < H; ++i) { ll sa = i * W, sb = (H - i) * (W / 2)...
[ "call.arguments.add" ]
1,380,538
1,380,539
u318727472
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) const char sp = ' '; const char cmm = ','; const int MOD = 1000000007; using ll = long long; ll mod(ll a, ll b) { return (a % b + b) % b; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) const char sp = ' '; const char cmm = ','; const int MOD = 1000000007; using ll = long long; ll mod(ll a, ll b) { return (a % b + b) % b; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return ...
[ "variable_declaration.type.change" ]
1,380,547
1,380,548
u306142032
cpp
p03713
#include <algorithm> #include <cmath> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef int64_t ll; const ll INF = 100000000000000...
#include <algorithm> #include <cmath> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef int64_t ll; const ll INF = 100000000000000...
[ "call.arguments.change" ]
1,380,555
1,380,556
u511401499
cpp
p03713
// https://atcoder.jp/contests/abc062/tasks/arc074_a #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 FOR(i, m, n) for (int(i) = (m); (i) < (n); i++) #define INF 1e9 #define ALL(v) (v).begin(), (v).end() using namespace std; ty...
// https://atcoder.jp/contests/abc062/tasks/arc074_a #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 FOR(i, m, n) for (int(i) = (m); (i) < (n); i++) #define INF 1e9 #define ALL(v) (v).begin(), (v).end() using namespace std; ty...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,561
1,380,562
u414220724
cpp
p03713
#include "bits/stdc++.h" using namespace std; /* macro */ #define rep(i, a, b) for (int i = a; i < b; i++) #define revrep(i, a, b) for (int i = a; i > b; i--) #define int long long #define exist(s, e) ((s).find(e) != (s).end()) #define all(v) (v).begin(), (v).end() #define each(s, itr) for (auto(itr) = s.begin(); (itr...
#include "bits/stdc++.h" using namespace std; /* macro */ #define rep(i, a, b) for (int i = a; i < b; i++) #define revrep(i, a, b) for (int i = a; i > b; i--) #define int long long #define exist(s, e) ((s).find(e) != (s).end()) #define all(v) (v).begin(), (v).end() #define each(s, itr) for (auto(itr) = s.begin(); (itr...
[ "identifier.change", "function.return_value.change", "expression.operation.binary.change", "control_flow.return.add" ]
1,380,565
1,380,564
u828847847
cpp
p03713
#include <algorithm> #include <array> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long LL; const int INF = 1 << 30; const LL MOD = 1000000007; LL gcd(LL a, LL b)...
#include <algorithm> #include <array> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long LL; const LL INF = 1 << 30; const LL MOD = 1000000007; LL gcd(LL a, LL b) ...
[ "variable_declaration.type.change" ]
1,380,569
1,380,570
u999803454
cpp
p03713
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define mkp(a, b) make_pair(a, b) #define pb(t) push_back(t) #define ft first #define sc s...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define mkp(a, b) make_pair(a, b) #define pb(t) push_back(t) #define ft first #define sc s...
[]
1,380,576
1,380,577
u768152935
cpp
p03713
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef unsigned long long ull; typedef long long ll; #define mod ((ull)(1e9) + 7) int main(...
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef unsigned long long ull; typedef long long ll; #define mod ((ull)(1e9) + 7) int main(...
[ "variable_declaration.type.change", "control_flow.loop.for.initializer.change" ]
1,380,581
1,380,582
u348670055
cpp
p03713
#include <algorithm> #include <iostream> #include <vector> typedef long long i64; using namespace std; int H, W; long long int min(long long int x, long long int y) { if (x < y) { return x; } return y; } long long int calc(long long int a, long long int b, long long int c) { vector<long long int> V; V....
#include <algorithm> #include <iostream> #include <vector> typedef long long i64; using namespace std; int H, W; long long int min(long long int x, long long int y) { if (x < y) { return x; } return y; } long long int calc(long long int a, long long int b, long long int c) { vector<long long int> V; V....
[ "variable_declaration.type.widen.change" ]
1,380,595
1,380,596
u835297884
cpp
p03713
#include <bits/stdc++.h> using namespace std; #define MD 1000000007 #define INF 1000000000 #define M_INF -1000000000 typedef long long int ll; int main() { int h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; } else { ll ans = min(h, w); //縦横3等分の場合 for (int i = 1; i < h; i++)...
#include <bits/stdc++.h> using namespace std; #define MD 1000000007 #define INF 1000000000 #define M_INF -1000000000 typedef long long int ll; int main() { ll h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; } else { ll ans = min(h, w); //縦横3等分の場合 for (int i = 1; i < h; i++) ...
[ "variable_declaration.type.change" ]
1,380,603
1,380,604
u287060310
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long lint; lint ans = 1000000007; void solve(lint H, lint W) { for (lint i = 1; i <= H; i++) { lint SA = i * W; lint mid = W / 2; lint SB = (H - i) * mid; lint SC = (H - i) * (W - mid); lint Max = max(SA, SB); Max = max(Max, SC); l...
#include <bits/stdc++.h> using namespace std; typedef long long lint; lint ans = 1000000007; void solve(lint H, lint W) { for (lint i = 1; i <= H; i++) { lint SA = i * W; lint mid = W / 2; lint SB = (H - i) * mid; lint SC = (H - i) * (W - mid); lint Max = max(SA, SB); Max = max(Max, SC); l...
[ "assignment.change" ]
1,380,611
1,380,612
u756388720
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef long long lint; lint ans = 1000000007; void solve(lint H, lint W) { for (lint i = 1; i <= H / 2; i++) { lint SA = i * W; lint mid = W / 2; lint SB = (H - i) * mid; lint SC = (H - i) * (W - mid); lint Max = max(SA, SB); Max = max(Max, SC); ...
#include <bits/stdc++.h> using namespace std; typedef long long lint; lint ans = 1000000007; void solve(lint H, lint W) { for (lint i = 1; i <= H; i++) { lint SA = i * W; lint mid = W / 2; lint SB = (H - i) * mid; lint SC = (H - i) * (W - mid); lint Max = max(SA, SB); Max = max(Max, SC); l...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
1,380,613
1,380,612
u756388720
cpp
p03713
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const ll MOD = 1e9 + 7; const ll INF = 1e18; ll h, w; ll ans(ll hh, ll ww) { ll a = ww; for (ll i = 1; i < h / 2 + 1; i++) { ll p1, p2, p3; p3 = ww * i; p1 = (ww / 2) * (hh - i); p2 = (hh - i) * ww - p1; ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const ll MOD = 1e9 + 7; const ll INF = 1e18; ll h, w; ll ans(ll hh, ll ww) { ll a = ww; for (ll i = 1; i < hh; i++) { ll p1, p2, p3; p3 = ww * i; p1 = (ww / 2) * (hh - i); p2 = (hh - i) * ww - p1; a = ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
1,380,614
1,380,615
u891178744
cpp
p03713
#include <algorithm> #include <iostream> #include <vector> #define LLINF 1100000000000000000 using namespace std; typedef long long ll; ll sepChoco(ll A, ll B) { ll ret = LLINF; for (int i = 1; i < (A + 1) / 2; i++) { // 縦 ll a1 = A / 3; ll a2 = (A - a1) / 2; ll a3 = A - a1 - a2; ret = min(m...
#include <algorithm> #include <iostream> #include <vector> #define LLINF 1100000000000000000 using namespace std; typedef long long ll; ll sepChoco(ll A, ll B) { ll ret = LLINF; for (int i = 1; i <= (A + 1) / 2; i++) { // 縦 ll a1 = A / 3; ll a2 = (A - a1) / 2; ll a3 = A - a1 - a2; ret = min(...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,380,616
1,380,617
u973997867
cpp
p03713
#include <bits/stdc++.h> using namespace std; using ll = long long; ll Divide(ll h1, ll w1, ll h, ll w) { ll s1 = h1 * w1, s2 = 0, s3 = 0, min_s = h * w + h1 * w1; ll h2 = h / 2, h3 = h - h2; s2 = h2 * w; s3 = h3 * w; min_s = min(min_s, max({s1, s2, s3}) - min({s1, s2, s3})); ll w2 = w / 2, w3 = w - w2...
#include <bits/stdc++.h> using namespace std; using ll = long long; ll Divide(ll h1, ll w1, ll h, ll w) { ll s1 = h1 * w1, s2 = 0, s3 = 0, min_s = h * w + h1 * w1; ll h2 = h / 2, h3 = h - h2; s2 = h2 * w; s3 = h3 * w; min_s = min(min_s, max({s1, s2, s3}) - min({s1, s2, s3})); ll w2 = w / 2, w3 = w - w2...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,380,621
1,380,622
u090097090
cpp
p03713
#include <iostream> using namespace std; long long p(long long a, long long b, long long c) { return max(max(abs(a - b), abs(a - c)), abs(b - c)); } int main(void) { long long h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; } else { long long l = min(h, w); for (long long...
#include <iostream> using namespace std; long long p(long long a, long long b, long long c) { return max(max(abs(a - b), abs(a - c)), abs(b - c)); } int main(void) { long long h, w; cin >> h >> w; if (h % 3 == 0 || w % 3 == 0) { cout << 0 << endl; } else { long long l = min(h, w); for (long long...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,380,628
1,380,629
u024809932
cpp
p03713
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> using namespace std; const long long MAXN = 1e12; long long x, y; void Slove() { long long xx, yy, sum1, sum2, sum3, ma_x, mi_n, ans, tot = MAXN; xx = x; yy = y; for (int i = 1; i <= yy - 1; i++) { sum1 = i * xx; sum2 = (yy - i...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> using namespace std; const long long MAXN = 1e12; long long x, y; void Slove() { long long xx, yy, sum1, sum2, sum3, ma_x, mi_n, ans, tot = min(x, y); xx = x; yy = y; for (int i = 1; i <= yy - 1; i++) { sum1 = i * xx; sum2 = (y...
[ "call.arguments.add" ]
1,380,643
1,380,644
u812724608
cpp
p03713
#include <algorithm> #include <iostream> #include <vector> typedef long long int ll; using namespace std; const ll INF = 2000000; int main() { int h, w; cin >> h >> w; int goi; int ans = INF; if (h * w % 3 == 0) { cout << 0; } else { for (int i = 0; i < 2; i++) { for (int j = 0; j <= w; j++) {...
#include <algorithm> #include <iostream> #include <vector> typedef long long int ll; using namespace std; const ll INF = 2000000; int main() { long long h, w; cin >> h >> w; int goi; long long ans = INF; if (h * w % 3 == 0) { cout << 0; } else { for (int i = 0; i < 2; i++) { for (int j = 0; j ...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change" ]
1,380,649
1,380,650
u451610133
cpp
p03713
#include <algorithm> #include <iostream> using namespace std; long long H, W; long long S[3]; void solve() { long long ans = 10000000000, h1 = 0, h2 = 0, h3 = 0, w1 = 0, w2 = 0, w3 = 0; if ((H * W) % 3 == 0) { ans = 0; } else { for (long long i = 1; i <= W; i++) { w1 = i; w2 = W - w1; ...
#include <algorithm> #include <iostream> using namespace std; long long H, W; long long S[3]; void solve() { long long ans = 10000000000, h1 = 0, h2 = 0, h3 = 0, w1 = 0, w2 = 0, w3 = 0; if ((H * W) % 3 == 0) { ans = 0; } else { for (long long i = 1; i <= W; i++) { w1 = i; w2 = W - w1; ...
[ "literal.number.change", "assignment.variable.change", "variable_access.subscript.index.change" ]
1,380,665
1,380,666
u489773738
cpp
p03713
#include <algorithm> #include <cmath> #include <iostream> using namespace std; void sove(long long int h, long long int w) { long long int tem1 = 10000000000, tem2 = 10000000000, tem3 = 10000000000, tem4 = 10000000000; if (h % 3 == 0 || w % 3 == 0) { cout << '0' << endl; return; } if (h ...
#include <algorithm> #include <cmath> #include <iostream> using namespace std; void sove(long long int h, long long int w) { long long int tem1 = 10000000000, tem2 = 10000000000, tem3 = 10000000000, tem4 = 10000000000; if (h % 3 == 0 || w % 3 == 0) { cout << '0' << endl; return; } if (h ...
[ "literal.number.change", "expression.operation.binary.change", "control_flow.return.add" ]
1,380,669
1,380,670
u845268776
cpp
p03713
#include <algorithm> #include <cmath> #include <iostream> using namespace std; void sove(long long int h, long long int w) { long long int tem1 = 10000000000, tem2 = 10000000000, tem3 = 10000000000, tem4 = 10000000000; if (h % 3 == 0 || w % 3 == 0) { cout << '0' << endl; return; } if (h ...
#include <algorithm> #include <cmath> #include <iostream> using namespace std; void sove(long long int h, long long int w) { long long int tem1 = 10000000000, tem2 = 10000000000, tem3 = 10000000000, tem4 = 10000000000; if (h % 3 == 0 || w % 3 == 0) { cout << '0' << endl; return; } if (h ...
[ "literal.number.change", "expression.operation.binary.change", "control_flow.return.add" ]
1,380,671
1,380,670
u845268776
cpp
p03713
#include <cmath> #include <cstdlib> #include <iostream> using namespace std; int main() { int h, w; cin >> h >> w; long long min = w * h; for (int k = 0; k < 2; k++) { for (int i = 1; i <= w - 1; i++) { long long s1 = i * h; long long s2 = (w - i) * (h / 2); long long s3 = (w - i) * (h...
#include <cmath> #include <cstdlib> #include <iostream> using namespace std; int main() { long long h, w; cin >> h >> w; long long min = w * h; for (int k = 0; k < 2; k++) { for (int i = 1; i <= w - 1; i++) { long long s1 = i * h; long long s2 = (w - i) * (h / 2); long long s3 = (w - i...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change" ]
1,380,675
1,380,676
u358838535
cpp
p03713
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { long long H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) { cout << 0 << endl; return 0; } long long cutter; long long hoge = H *...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { long long H, W; cin >> H >> W; if (H % 3 == 0 || W % 3 == 0) { cout << 0 << endl; return 0; } long long cutter; long long hoge = H *...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
1,380,680
1,380,681
u908175941
cpp
p03713
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) typedef long long ll; int main(void) { int H, W; cin >> H >> W; ll all_area_size, first_area_size, second_area_size, third_area...
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) typedef long long ll; int main(void) { int H, W; cin >> H >> W; ll all_area_size, first_area_size, second_area_size, third_area...
[ "assignment.change", "literal.number.change", "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
1,380,687
1,380,688
u306356963
cpp
p03713
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) typedef long long ll; int main(void) { int H, W; cin >> H >> W; ll all_area_size, first_area_size, second_area_size, third_area...
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) typedef long long ll; int main(void) { int H, W; cin >> H >> W; ll all_area_size, first_area_size, second_area_size, third_area...
[ "assignment.change", "literal.number.change", "assignment.value.change", "expression.operation.binary.change" ]
1,380,689
1,380,688
u306356963
cpp
p03713
#include <algorithm> #include <bitset> #include <chrono> #include <deque> #include <iostream> #include <map> #include <vector> #define vint vector<int> #define vint2 vector<vint> #define vchar vector<char> #define vchar2 vector<vchar> #define vchar3 vector<vchar2> #define pr pair<int, int> #define vpr vector<pr> #defi...
#include <algorithm> #include <bitset> #include <chrono> #include <deque> #include <iostream> #include <map> #include <vector> #define vint vector<int> #define vint2 vector<vint> #define vchar vector<char> #define vchar2 vector<vchar> #define vchar3 vector<vchar2> #define pr pair<int, int> #define vpr vector<pr> #defi...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
1,380,692
1,380,693
u313805990
cpp
p03713
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define f first #define s second #define pb push_back #define mp make_pair #define l...
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define f first #define s second #define pb push_back #define mp make_pair #define l...
[ "call.arguments.add" ]
1,380,707
1,380,708
u680909314
cpp