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 |
|---|---|---|---|---|---|---|---|
p02614 | // H and V
#include <bits/stdc++.h>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
// Your code here!
int h, w, k;
cin >> h >> w >> k;
char c[h][w];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> c[h][w];
}
}
... | // H and V
#include <bits/stdc++.h>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
// Your code here!
int h, w, k;
cin >> h >> w >> k;
char c[h][w];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> c[i][j];
}
}
... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,204 | 323,205 | u452154326 | cpp |
p02614 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
ll inf = 1000000007;
int main(void) {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
int ans... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
ll inf = 1000000007;
int main(void) {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
int ans... | [
"control_flow.branch.else.add"
] | 323,206 | 323,207 | u077051605 | cpp |
p02614 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++)
cin >> s[i];
int ans = 0;
for (int x = 0; x < (1 << h); x++) {
for (int y = 0; y < (1 << w); y++) {
vector<string> t = s... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++)
cin >> s[i];
int ans = 0;
for (int x = 0; x < (1 << h); x++) {
for (int y = 0; y < (1 << w); y++) {
vector<string> t = s... | [
"assignment.variable.change",
"control_flow.branch.if.condition.change"
] | 323,208 | 323,209 | u110383054 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> c(h);
int ans = 0;
rep(i, h) cin >> c[i];
rep(i0, 1 << h) {
rep(j0, 1 << w) {
int count = 0;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> c(h);
int ans = 0;
rep(i, h) cin >> c[i];
rep(i0, 1 << h) {
rep(j0, 1 << w) {
int count = 0;
... | [
"control_flow.branch.if.condition.change"
] | 323,221 | 323,222 | u963343620 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k, ans = 0;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
for (int is = 0; is < (1 << h); is++) {
for (int js = 0; js < (1 << w); js++) {
int cnt = 0;
for (int i = 0; i < h; i++)... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k, ans = 0;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
for (int is = 0; is < (1 << h); is++) {
for (int js = 0; js < (1 << w); js++) {
int cnt = 0;
for (int i = 0; i < h; i++)... | [] | 323,223 | 323,224 | u081162298 | cpp |
p02614 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<string> s(H);
for (int i = 0; i < H; i++) {
cin >> s[i];
}
int ans = 0;
for (int is = 0; is < 1 << H; is++) {
for (int js = 0; js < 1 << W; js++) {
int cnt = 0;... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<string> s(H);
for (int i = 0; i < H; i++) {
cin >> s[i];
}
int ans = 0;
for (int is = 0; is < 1 << H; is++) {
for (int js = 0; js < 1 << W; js++) {
int cnt = 0;... | [
"control_flow.branch.if.condition.change",
"literal.string.change"
] | 323,225 | 323,226 | u618263300 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
using llong = long long int;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define stl_rep(itr, x) for (auto itr = x.begin(); itr != x.end(); ++itr)
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
const static int MOD = 1000000007;
const static in... | #include <bits/stdc++.h>
using namespace std;
using llong = long long int;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define stl_rep(itr, x) for (auto itr = x.begin(); itr != x.end(); ++itr)
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
const static int MOD = 1000000007;
const static in... | [
"control_flow.branch.if.condition.change"
] | 323,233 | 323,234 | u943004959 | cpp |
p02614 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
int main() {
int H, W, K;
std::cin >> H >> W >> K;
std::vector<std::vector<int>> M(H, std::vector<int>(W));
for (auto i{0}; i < H; ++i)
for (auto j{0}; j < W; ++j)
std::cin >> M[i][j];
int ans = 0;
for (int bit_h = 0; bi... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
int main() {
int H, W, K;
std::cin >> H >> W >> K;
std::vector<std::vector<char>> M(H, std::vector<char>(W));
for (auto i{0}; i < H; ++i)
for (auto j{0}; j < W; ++j)
std::cin >> M[i][j];
int ans = 0;
for (int bit_h = 0; ... | [
"variable_declaration.type.primitive.change"
] | 323,236 | 323,237 | u917678406 | cpp |
p02614 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int c(int h, int w, int k, vector<string> cc) {
int res = 0;
for (int i = 0; i < (1 << h); i++) {
for (int j = 0; j < (1 << w); j++) {
// cout << i << " " << j << endl;
int count = 0;
for (int a = 0; a < h; a++) {
for... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int c(int h, int w, int k, vector<string> cc) {
int res = 0;
for (int i = 0; i < (1 << h); i++) {
for (int j = 0; j < (1 << w); j++) {
// cout << i << " " << j << endl;
int count = 0;
for (int a = 0; a < h; a++) {
for... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 323,240 | 323,241 | u570229212 | cpp |
p02614 | //ビット全探索
#include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void) {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
rep(i, H) cin >> c[i];
int ... | //ビット全探索
#include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void) {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
rep(i, H) cin >> c[i];
int ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 323,242 | 323,243 | u437633151 | cpp |
p02614 | //ビット全探索
#include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void) {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
rep(i, H) cin >> c[i];
int ... | //ビット全探索
#include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void) {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
rep(i, H) cin >> c[i];
int ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 323,244 | 323,243 | u437633151 | cpp |
p02614 | #include <cstdio>
#include <iostream>
using namespace std;
const int N = 8;
int n, m, w, ans;
char g[N][N];
int main() {
scanf("%d%d%d", &n, &m, &w);
for (int i = 0; i < n; i++)
scanf("%s", g[i]);
for (int i = 0, cnt; i < 1 << n; i++)
for (int j = 0; j < 1 << m; j++) {
cnt = 0;
for (int a ... | #include <cstdio>
#include <iostream>
using namespace std;
const int N = 8;
int n, m, w, ans;
char g[N][N];
int main() {
scanf("%d%d%d", &n, &m, &w);
for (int i = 0; i < n; i++)
scanf("%s", g[i]);
for (int i = 0, cnt; i < 1 << n; i++)
for (int j = 0; j < 1 << m; j++) {
cnt = 0;
for (int a ... | [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operation.unary.add"
] | 323,260 | 323,261 | u486795229 | cpp |
p02614 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
ll n, m, k;
char a[6][6];
bool check(ll r, ll c) {
ll cont = 0;
for (ll i = 0; i < n; i++)
for (ll j = 0; j < m; j++) {
if (1 & (1 << i) || 1 & (1 << j))
continue;
else if (a[i][j] == '#')
cont++;
}
if (cont... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
ll n, m, k;
char a[6][6];
bool check(ll r, ll c) {
ll cont = 0;
for (ll i = 0; i < n; i++)
for (ll j = 0; j < m; j++) {
if (r & (1 << i) || c & (1 << j))
continue;
else if (a[i][j] == '#')
cont++;
}
if (cont... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 323,264 | 323,265 | u451936793 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main(int argc, char const *argv[]) {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(0);
int h, w, k;
cin >> h >> w >> k;
string grid[h];
for (int i = 0; i < h; i++)
cin >> grid[i];
int res = 0;
for (int mask = 0; mask <... | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main(int argc, char const *argv[]) {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(0);
int h, w, k;
cin >> h >> w >> k;
string grid[h];
for (int i = 0; i < h; i++)
cin >> grid[i];
int res = 0;
for (int mask = 0; mask <... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 323,275 | 323,276 | u528941312 | cpp |
p02614 | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
vector<string> st2;
int bk = 0;
int res;
int main() {
int h, w, kk;
cin >> h >> w >> kk;
for (int i = 0; i < h; i++) {
string ww;
cin >> ww;
for (int i = 0; i < ww.size(); i++) {
if (ww[i] == '#')
bk++;
... | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
vector<string> st2;
int bk = 0;
int res;
int main() {
int h, w, kk;
cin >> h >> w >> kk;
for (int i = 0; i < h; i++) {
string ww;
cin >> ww;
for (int j = 0; j < ww.size(); j++) {
if (ww[j] == '#')
bk++;
... | [
"variable_declaration.name.change",
"identifier.change",
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operation.compare.replac... | 323,277 | 323,278 | u485770546 | cpp |
p02614 | #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--) //逆ループ
//型名省略
typedef long long ll;
//値
static const ll MX = 100005;
static const ll MX_ll = 1e18;
using namespace std;
//#include "./lib/generic/search.h"
int... | #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--) //逆ループ
//型名省略
typedef long long ll;
//値
static const ll MX = 100005;
static const ll MX_ll = 1e18;
using namespace std;
//#include "./lib/generic/search.h"
int... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 323,283 | 323,284 | u432795166 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define start \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define f(i, a, n... | #include <bits/stdc++.h>
using namespace std;
#define start \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define f(i, a, n... | [] | 323,285 | 323,286 | u736097195 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define start \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define f(i, a, n... | #include <bits/stdc++.h>
using namespace std;
#define start \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define f(i, a, n... | [
"call.add"
] | 323,287 | 323,286 | u736097195 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
#define repi(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, a) repi(i, 0, a)
#define rrep(i, a) for (ll i = a - 1; i >= 0; i--)
#define MOD 1000000007
// debug
#define debug(arr) ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
#define repi(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, a) repi(i, 0, a)
#define rrep(i, a) for (ll i = a - 1; i >= 0; i--)
#define MOD 1000000007
// debug
#define debug(arr) ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 323,288 | 323,289 | u336721073 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
r... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
r... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 323,296 | 323,297 | u608492334 | cpp |
p02614 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
char C[H][W];
for (int i = 0; i < H; i++)
for (int j = 0; j < W; j++)
cin >> C[i][j];
int res = 0;
for (int bit = 0; bit < (1 << H); bit++) {
for (int bit2 = 0; bit < (1 << W); bit++) {
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
char C[H][W];
for (int i = 0; i < H; i++)
for (int j = 0; j < W; j++)
cin >> C[i][j];
int res = 0;
for (int bit = 0; bit < (1 << H); bit++) {
for (int bit2 = 0; bit2 < (1 << W); bit2++) {... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 323,306 | 323,307 | u054016199 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
using Graph = vector<vector<int>>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
using Graph = vector<vector<int>>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h)... | [
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 323,318 | 323,319 | u820341516 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
char g[10][10];
bool visx[10], visy[10];
for (int i = 0; i < H; ++i)
scanf("%s", g[i]);
int ans = 0;
for (int mask = 1; mask < (1 << (H + W)); ++mask) {
memset(visx, 0, sizeof(visx));
memset(visy, 0, ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
char g[10][10];
bool visx[10], visy[10];
for (int i = 0; i < H; ++i)
scanf("%s", g[i]);
int ans = 0;
for (int mask = 0; mask < (1 << (H + W)); ++mask) {
memset(visx, 0, sizeof(visx));
memset(visy, 0, ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 323,320 | 323,321 | u138715738 | cpp |
p02614 | #include <bits/stdc++.h>
#ifndef ONLINE_JUDGE
#define W(x, y) cerr << "\033[31m" << #x << " = " << x << "\033[0m" << y;
#else
#define W(x, y)
#endif
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vii vector<pii>
#define vl vector<ll>
#define vll vector<pll>
// ... | #include <bits/stdc++.h>
#ifndef ONLINE_JUDGE
#define W(x, y) cerr << "\033[31m" << #x << " = " << x << "\033[0m" << y;
#else
#define W(x, y)
#endif
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vii vector<pii>
#define vl vector<ll>
#define vll vector<pll>
// ... | [] | 323,322 | 323,323 | u218547786 | cpp |
p02614 | //*****Jai Mata di*****//
#include <bits/stdc++.h>
using namespace std;
#define Nitroboost \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
co... | //*****Jai Mata di*****//
#include <bits/stdc++.h>
using namespace std;
#define Nitroboost \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
co... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 323,330 | 323,331 | u441141775 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef set<int> se;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define Fn 1.618033987
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef set<int> se;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define Fn 1.618033987
... | [] | 323,332 | 323,333 | u243612751 | cpp |
p02614 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define ld long double
#define endl '\n'
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vpii vector<pii>
#define gr vector<vpii>
#define str string
#define mask ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define ld long double
#define endl '\n'
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vpii vector<pii>
#define gr vector<vpii>
#define str string
#define mask ... | [
"control_flow.branch.if.condition.change"
] | 323,341 | 323,342 | u877884213 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, h) rep(j, w) {
if... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, h) rep(j, w) {
if... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 323,349 | 323,350 | u436660228 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, h) rep(j, w) {
if... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, h) rep(j, w) {
if... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 323,351 | 323,350 | u436660228 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int n, m, k;
string grid[10];
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
cin >> n >> m >> k;
for (int i = 0; i < n; i++)
cin >> grid[i];
int res = 0;
int la = (1 << n), lb = (1 << m);
for (int r = 0; r < la; r++) {
for (int c = 0; c < ... | #include <bits/stdc++.h>
using namespace std;
int n, m, k;
string grid[10];
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
cin >> n >> m >> k;
for (int i = 0; i < n; i++)
cin >> grid[i];
int res = 0;
int la = (1 << n), lb = (1 << m);
for (int r = 0; r < la; r++) {
for (int c = 0; c < ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,360 | 323,361 | u880576099 | cpp |
p02614 | #include <bits/stdc++.h>
#define pii pair<int, int>
#define fi first
#define se second
#define int long long
#define pb push_back
#define mod 1000000007
#define pll pair<long long, long long>
using namespace std;
long long power(long long a, long long b) {
long long ans = 1;
while (b > 0) {
if (b & 1) {
a... | #include <bits/stdc++.h>
#define pii pair<int, int>
#define fi first
#define se second
#define int long long
#define pb push_back
#define mod 1000000007
#define pll pair<long long, long long>
using namespace std;
long long power(long long a, long long b) {
long long ans = 1;
while (b > 0) {
if (b & 1) {
a... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,367 | 323,368 | u828869971 | cpp |
p02614 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
r... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
r... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 323,369 | 323,370 | u541567517 | cpp |
p02614 | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
bool isRed(int i, int j, int bitw, int bith) {
if (((1 << i) & bith) || ((1 << j) & bitw))
return true;
else
return false;
}
int main() {
cin.tie(0);
ios::sync_with_std... | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
bool isRed(int i, int j, int bith, int bitw) {
if (((1 << i) & bith) || ((1 << j) & bitw))
return true;
else
return false;
}
int main() {
cin.tie(0);
ios::sync_with_std... | [
"identifier.change"
] | 323,371 | 323,372 | u083190434 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int h, w, k, black = 0;
char arr[6][6];
char brr[6][6];
void copy_array() {
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
brr[i][j] = arr[i][j];
}
}
}
bool check_array(int i, int j) {
for (int x = 0; x < h; x++) {
if (i & (1 << x)) {
... | #include <bits/stdc++.h>
using namespace std;
int h, w, k, black = 0;
char arr[6][6];
char brr[6][6];
void copy_array() {
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
brr[i][j] = arr[i][j];
}
}
}
bool check_array(int i, int j) {
for (int x = 0; x < h; x++) {
if (i & (1 << x)) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 323,376 | 323,377 | u208768692 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
int ans = 0;
for (int is = 0; is < 1 << h; is++) {
for (int js = 0; js < 1 << w; js++) {
int cnt = 0;
for (int i = 0; i < h... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
int ans = 0;
for (int is = 0; is < 1 << h; is++) {
for (int js = 0; js < 1 << w; js++) {
int cnt = 0;
for (int i = 0; i < h... | [] | 323,390 | 323,391 | u286427658 | cpp |
p02614 | #include <bits/stdc++.h>
// #define int long long
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repa(i, s, n) for (int i = s; i < (int)n; i++)
using namespace std;
using ll = long long;
typedef vector<int> vi;
signed main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep... | #include <bits/stdc++.h>
// #define int long long
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repa(i, s, n) for (int i = s; i < (int)n; i++)
using namespace std;
using ll = long long;
typedef vector<int> vi;
signed main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,394 | 323,395 | u510749912 | cpp |
p02614 | #include <bits/stdc++.h>
// #define int long long
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repa(i, s, n) for (int i = s; i < (int)n; i++)
using namespace std;
using ll = long long;
typedef vector<int> vi;
signed main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep... | #include <bits/stdc++.h>
// #define int long long
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repa(i, s, n) for (int i = s; i < (int)n; i++)
using namespace std;
using ll = long long;
typedef vector<int> vi;
signed main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep... | [
"control_flow.branch.if.condition.change"
] | 323,396 | 323,395 | u510749912 | cpp |
p02614 | /* Simplicity and Goodness */
#include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
// typedef tree<int, null_type, less<int>, rb_tree_tag,
// tree_order_statistics_node_update> indexed_set;
void my... | /* Simplicity and Goodness */
#include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
// typedef tree<int, null_type, less<int>, rb_tree_tag,
// tree_order_statistics_node_update> indexed_set;
void my... | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 323,399 | 323,400 | u777549027 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
using i64 = int_fast64_t;
#define INF (i64)1e18
#define MOD (i64)(1e9 + 7)
#define REP(i, n) for (i64 i = 0; i < n; i++)
#define RANGE(i, a, b) for (i64 i = a; i < b; i++)
#define EACH(v, e, p) for_each(v.begin(), v.end(), [](auto &e) p)
int main() {
int h, w, k;
cin ... | #include <bits/stdc++.h>
using namespace std;
using i64 = int_fast64_t;
#define INF (i64)1e18
#define MOD (i64)(1e9 + 7)
#define REP(i, n) for (i64 i = 0; i < n; i++)
#define RANGE(i, a, b) for (i64 i = a; i < b; i++)
#define EACH(v, e, p) for_each(v.begin(), v.end(), [](auto &e) p)
int main() {
int h, w, k;
cin ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 323,401 | 323,402 | u880126159 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n, k;
cin >> m >> n >> k;
vector<vector<char>> grid(m, vector<char>(n));
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
cin >> grid[i][j];
}
}
int ans = 0;
for (int markM = 0; markM < (1 << m); markM++) {
fo... | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n, k;
cin >> m >> n >> k;
vector<vector<char>> grid(m, vector<char>(n));
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
cin >> grid[i][j];
}
}
int ans = 0;
for (int markM = 0; markM < (1 << m); markM++) {
fo... | [
"expression.operation.binary.remove",
"io.output.newline.add"
] | 323,403 | 323,404 | u158713288 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int h, w, k;
cin >> h >> w >> k;
char c[h][w];
for (ll i = 0; i < h; i++) {
for (ll j = 0; j < w; j++) {
cin >> c[i][j];
}
}
int res = 0;
for (int bit1 = 0; bit1 < (1 << h); bit1++) {
for (int bit2 = 0; bit... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int h, w, k;
cin >> h >> w >> k;
char c[h][w];
for (ll i = 0; i < h; i++) {
for (ll j = 0; j < w; j++) {
cin >> c[i][j];
}
}
int res = 0;
for (int bit1 = 0; bit1 < (1 << h); bit1++) {
for (int bit2 = 0; bit... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 323,412 | 323,413 | u955282280 | cpp |
p02614 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
// typedef int ll;
typedef long double ld;
//#define int ll
#define pb push_back
#define __bp __builtin_popcount
using vint = vector<int>;
using pii = pair<int, int>;
using pdd = pair<ld, ld>;
using vpii = vector<pii>;
#define F first
#define S second
... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
// typedef int ll;
typedef long double ld;
//#define int ll
#define pb push_back
#define __bp __builtin_popcount
using vint = vector<int>;
using pii = pair<int, int>;
using pdd = pair<ld, ld>;
using vpii = vector<pii>;
#define F first
#define S second
... | [
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 323,425 | 323,426 | u761382225 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int h, w, k;
int ans = 0;
char a[10][10];
bool check(int s1, int s2) {
bool f[10][10] = {};
int i, j, tot = 0;
for (i = 0; i < h; i++)
if ((s1 >> i) & 1)
for (j = 1; j <= w; j++)
f[i + 1][j] = true;
for (i = 0; i < w; i++)
if ((s2 >> i) & ... | #include <bits/stdc++.h>
using namespace std;
int h, w, k;
int ans = 0;
char a[10][10];
bool check(int s1, int s2) {
bool f[10][10] = {};
int i, j, tot = 0;
for (i = 0; i < h; i++)
if ((s1 >> i) & 1)
for (j = 1; j <= w; j++)
f[i + 1][j] = true;
for (i = 0; i < w; i++)
if ((s2 >> i) & ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,442 | 323,443 | u538472092 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int h, w, k;
int ans = 1;
char a[10][10];
bool check(int s1, int s2) {
bool f[10][10] = {};
int i, j, tot = 0;
for (i = 0; i < h; i++)
if ((s1 >> i) & 1)
for (j = 1; j <= w; j++)
f[i + 1][j] = true;
for (i = 0; i < w; i++)
if ((s2 >> i) & ... | #include <bits/stdc++.h>
using namespace std;
int h, w, k;
int ans = 0;
char a[10][10];
bool check(int s1, int s2) {
bool f[10][10] = {};
int i, j, tot = 0;
for (i = 0; i < h; i++)
if ((s1 >> i) & 1)
for (j = 1; j <= w; j++)
f[i + 1][j] = true;
for (i = 0; i < w; i++)
if ((s2 >> i) & ... | [
"literal.number.change",
"variable_declaration.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,444 | 323,443 | u538472092 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int n, m, k;
#define sc(x) scanf("%d", &(x))
string mp[6];
bool check(int x) {
int t = 0;
for (int i = 0; i < n; i++) {
if ((x >> i) & 1)
continue;
for (int j = 0; j < m; j++) {
if ((x >> (j + n)) & 1)
continue;
if (mp[i][j] == '#')
... | #include <bits/stdc++.h>
using namespace std;
int n, m, k;
#define sc(x) scanf("%d", &(x))
string mp[6];
bool check(int x) {
int t = 0;
for (int i = 0; i < n; i++) {
if ((x >> i) & 1)
continue;
for (int j = 0; j < m; j++) {
if ((x >> (j + n)) & 1)
continue;
if (mp[i][j] == '#')
... | [
"expression.operation.binary.change"
] | 323,452 | 323,453 | u014289849 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;
using Graph = vector<vector<int>>;
const double PI = acos(-1);
int H, W, K;
int count(int h, int w, vector<vector<int>> arr) {
int sum = 0;
rep(i, H) {
rep(j, W) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;
using Graph = vector<vector<int>>;
const double PI = acos(-1);
int H, W, K;
int count(int h, int w, vector<vector<int>> arr) {
int sum = 0;
rep(i, H) {
rep(j, W) ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 323,454 | 323,455 | u929996201 | cpp |
p02614 | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//---------------------... | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//---------------------... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,456 | 323,457 | u825601908 | cpp |
p02614 | #include <bits/stdc++.h>
#define pb push_back
#define Int int64_t
using namespace std;
const int MAXN = 7;
int main() {
char board[MAXN][MAXN];
Int n, m, K;
cin >> n >> m >> K;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
cin >> board[i][j];
}
}
Int ans = 0;
for (int mask = 0;... | #include <bits/stdc++.h>
#define pb push_back
#define Int int64_t
using namespace std;
const int MAXN = 7;
int main() {
char board[MAXN][MAXN];
Int n, m, K;
cin >> n >> m >> K;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
cin >> board[i][j];
}
}
Int ans = 0;
for (int mask = 0;... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 323,460 | 323,461 | u212948109 | cpp |
p02614 | #include <bits/stdc++.h>
typedef long long lint;
using namespace std;
lint gcd(lint x, lint y) {
if (x == 0) {
return y;
} else {
return gcd(y % x, x);
}
}
lint lcm(lint x, lint y) { return x / gcd(x, y) * y; }
lint C(lint n, lint k) {
if (n == k) {
return 1;
} else if (n < k) {
return 0;
... | #include <bits/stdc++.h>
typedef long long lint;
using namespace std;
lint gcd(lint x, lint y) {
if (x == 0) {
return y;
} else {
return gcd(y % x, x);
}
}
lint lcm(lint x, lint y) { return x / gcd(x, y) * y; }
lint C(lint n, lint k) {
if (n == k) {
return 1;
} else if (n < k) {
return 0;
... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"control_flow.branch.if.add"
] | 323,464 | 323,465 | u692704469 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
// using namespace arma;
#define ll long long
#define ld long double
// int ans(vector < vector<int > > xx)
// {
// return 0;
// }
int main() {
ll h, w, k;
cin >> h >> w >> k;
char arr[h][w];
ll bk = 0;
for (ll i = 0; i < h; i++) {
for (ll j = 0; j < w; j++... | #include <bits/stdc++.h>
using namespace std;
// using namespace arma;
#define ll long long
#define ld long double
// int ans(vector < vector<int > > xx)
// {
// return 0;
// }
int main() {
ll h, w, k;
cin >> h >> w >> k;
char arr[h][w];
ll bk = 0;
for (ll i = 0; i < h; i++) {
for (ll j = 0; j < w; j++... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 323,466 | 323,467 | u965384934 | cpp |
p02614 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define ll long long
#define fi first
#define se second
#define pb push_back
#define me memse... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define ll long long
#define fi first
#define se second
#define pb push_back
#define me memse... | [
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 323,472 | 323,473 | u805304731 | cpp |
p02614 | #include <algorithm>
#include <bitset>
#include <complex>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include ... | #include <algorithm>
#include <bitset>
#include <complex>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operation.unary.add"
] | 323,484 | 323,485 | u008229752 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
rep(i, h) cin >> s[i];
int ans = 0;
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
rep(i, ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,494 | 323,495 | u585480517 | cpp |
p02614 | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#ifdef OJ
#define debug(x) \
do { ... | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#ifdef OJ
#define debug(x) \
do { ... | [
"identifier.change",
"call.arguments.change"
] | 323,512 | 323,513 | u066478371 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep(i, h) cin >> s[i];
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> s(h);
int ans = 0;
rep(i, h) cin >> s[i];
rep(is, 1 << h) rep(js, 1 << w) {
int cnt = 0;
re... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,533 | 323,534 | u861141787 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
using ll = long long;
const int INF = 2147483647;
const ll MOD = 1000000007;
// const ll INF = 1000000000000000000LL;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> grid(w + 1);
rep(i, h) {
string... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
using ll = long long;
const int INF = 2147483647;
const ll MOD = 1000000007;
// const ll INF = 1000000000000000000LL;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> grid(h);
rep(i, h) {
string in;... | [
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 323,537 | 323,538 | u489603283 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
using ll = long long;
const int INF = 2147483647;
const ll MOD = 1000000007;
// const ll INF = 1000000000000000000LL;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> grid(w);
rep(i, h) {
string in;... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
using ll = long long;
const int INF = 2147483647;
const ll MOD = 1000000007;
// const ll INF = 1000000000000000000LL;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<string> grid(h);
rep(i, h) {
string in;... | [] | 323,539 | 323,538 | u489603283 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int h, w, k, ans;
cin >> h >> w >> k;
char c[h][w];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> c[i][j];
}
}
for (int i = 0; i < 1 << h; i++) {
for (int j = 0; j < 1 << w; j++) {
i... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int h, w, k, ans = 0;
cin >> h >> w >> k;
char c[h][w];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> c[i][j];
}
}
for (int i = 0; i < 1 << h; i++) {
for (int j = 0; j < 1 << w; j++) {
... | [
"variable_declaration.value.change"
] | 323,542 | 323,543 | u968876625 | cpp |
p02614 | #include <iostream>
#include <string>
using namespace std;
int main() {
int H, W, K;
scanf("%d%d%d", &H, &W, &K);
string m[H];
for (int i = 0; i < H; i++) {
cin >> m[i];
}
int count = 0;
for (int b = 0; b < 1 << (H + W); b++) {
int black = 0;
for (int i = 0; i < H * W; i++) {
if (b >> ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int H, W, K;
scanf("%d%d%d", &H, &W, &K);
string m[H];
for (int i = 0; i < H; i++) {
cin >> m[i];
}
int count = 0;
for (int b = 0; b < 1 << (H + W); b++) {
int black = 0;
for (int i = 0; i < H * W; i++) {
if (b >> ... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"variable_access.subscript.index.change"
] | 323,544 | 323,545 | u613912106 | cpp |
p02614 | #pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include... | #pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 323,589 | 323,590 | u811004127 | cpp |
p02614 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
typedef long long int ll;
#define FOR(i, a, b) for (int i = (a); i ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
typedef long long int ll;
#define FOR(i, a, b) for (int i = (a); i ... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change"
] | 323,595 | 323,596 | u549743442 | cpp |
p02614 | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
const long long int INF = 1e18;
const long long int mod = 1e9 + 7;
typedef pair<ll, ll> pairs;
typedef vector<pairs> p;
struct edge {
ll to, cost;
};
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
ret... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
const long long int INF = 1e18;
const long long int mod = 1e9 + 7;
typedef pair<ll, ll> pairs;
typedef vector<pairs> p;
struct edge {
ll to, cost;
};
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
ret... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,597 | 323,598 | u473023730 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
using namespace std;
using Graph = vector<vector<int>>;
typedef pair<int, int> P;
typedef long long ll;
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> g(h);
rep(i, h) { cin >> g[i]; }
v... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
using namespace std;
using Graph = vector<vector<int>>;
typedef pair<int, int> P;
typedef long long ll;
int main() {
ll h, w, k;
cin >> h >> w >> k;
vector<string> g(h);
rep(i, h) { cin >> g[i]; }
... | [
"control_flow.branch.if.condition.change"
] | 323,599 | 323,600 | u454081619 | cpp |
p02614 | #include <cstdio>
using namespace std;
int n, m, cnt, p, o;
char a[10][10];
int main() {
scanf("%d%d%d", &n, &m, &p);
for (int i = 1; i <= n; ++i) {
scanf("%s", a[i] + 1);
}
for (int i = 0; i < (1 << n); ++i) {
for (int j = 0; j < (1 << m); ++j) {
bool b[10][10] = {false};
o = i;
for (... | #include <cstdio>
using namespace std;
int n, m, cnt, p, o;
char a[10][10];
int main() {
scanf("%d%d%d", &n, &m, &p);
for (int i = 1; i <= n; ++i) {
scanf("%s", a[i] + 1);
}
for (int i = 0; i < (1 << n); ++i) {
for (int j = 0; j < (1 << m); ++j) {
bool b[10][10] = {false};
o = i;
for (... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 323,601 | 323,602 | u899432638 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, need;
long long ans = 0;
cin >> h >> w >> need;
vector<string> s(w);
for (int i = 0; i < w; i++) {
cin >> s[i];
}
for (int i = 0; i < (1 << h); i++) {
for (int j = 0; j < (1 << w); j++) {
int bl = 0;
for (int k = 0; k... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, need;
long long ans = 0;
cin >> h >> w >> need;
vector<string> s(h);
for (int i = 0; i < h; i++) {
cin >> s[i];
}
for (int i = 0; i < (1 << h); i++) {
for (int j = 0; j < (1 << w); j++) {
int bl = 0;
for (int k = 0; k... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,605 | 323,606 | u623759422 | cpp |
p02614 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
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 RREP(i, n) for (ll i = (ll)(n - 1); i >= 0; i--)
#define ALL(vector) vector.begin(), vector.end()
int main() {
cin.... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
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 RREP(i, n) for (ll i = (ll)(n - 1); i >= 0; i--)
#define ALL(vector) vector.begin(), vector.end()
int main() {
cin.... | [
"variable_declaration.value.change"
] | 323,607 | 323,608 | u499578155 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | [] | 323,617 | 323,618 | u322177979 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<vector<char>> c(h, vector<char>(w));
for (int i = 0; i < h; ++i) {
for (int j = 0; j < w; ++j) {
cin >> c[i][j];
}
}
int hmask_max = 1 << h;
int wmask_max = 1 << w;
int count;
for (int h... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<vector<char>> c(h, vector<char>(w));
for (int i = 0; i < h; ++i) {
for (int j = 0; j < w; ++j) {
cin >> c[i][j];
}
}
int hmask_max = 1 << h;
int wmask_max = 1 << w;
int count = 0;
for (i... | [
"variable_declaration.value.change"
] | 323,621 | 323,622 | u553159739 | cpp |
p02614 | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = (int)(a); i < (int)(b); ++i)
using namespace std;
using ll = unsigned long long;
using p = pair<int, int>;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<vector<int>> m(W, vector<int>(H));
const int black = 1;
rep(y, 0, H) {
string s;
... | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = (int)(a); i < (int)(b); ++i)
using namespace std;
using ll = unsigned long long;
using p = pair<int, int>;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<vector<int>> m(H, vector<int>(W));
const int black = 1;
rep(y, 0, H) {
string s;
... | [] | 323,625 | 323,626 | u472064753 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int mod = 1e9 + 7;
const int N = 2e5 + 100;
int a[N];
char s[10][10];
char ss[10][10];
int n, m, k;
bool check() {
int sum = 0;
for (int i = 1; i <= n; i++)
for (int j = 1; j <= m; j++)
if (ss[i][j] == '#')
sum++;
if (sum == k)
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int mod = 1e9 + 7;
const int N = 2e5 + 100;
int a[N];
char s[10][10];
char ss[10][10];
int n, m, k;
bool check() {
int sum = 0;
for (int i = 1; i <= n; i++)
for (int j = 1; j <= m; j++)
if (ss[i][j] == '#')
sum++;
if (sum == k)
... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 323,629 | 323,630 | u722928342 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define pb push_back
#define mp make_pair
typedef vector<int> vi;
typedef long long ll;
#define MOD 1000000007;
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// #endif
... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define pb push_back
#define mp make_pair
typedef vector<int> vi;
typedef long long ll;
#define MOD 1000000007;
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// #endif
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 323,631 | 323,632 | u999832451 | cpp |
p02614 | #include <bits/stdc++.h>
#define dalao main
#define ll long long
#define debug(x) \
{ cerr << #x << " = " << (x) << endl; }
using namespace std;
int m, n, k, black = 0, cha;
int s[10][10] = {0}, blackm[10] = {0}, blackn[10] = {0};
bool used[10][10] = {0};
... | #include <bits/stdc++.h>
#define dalao main
#define ll long long
#define debug(x) \
{ cerr << #x << " = " << (x) << endl; }
using namespace std;
int m, n, k, black = 0, cha;
int s[10][10] = {0}, blackm[10] = {0}, blackn[10] = {0};
bool used[10][10] = {0};
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"io.output.change"
] | 323,640 | 323,641 | u235840636 | cpp |
p02614 | #ifndef BZ
#pragma GCC optimize "-O3"
#endif
#include <bits/stdc++.h>
#define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define rep(i, l, r) for (ll i = (l); i < (r); ++i)
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
#define pii pair<ll, ll>
#define pll pair<ll, ... | #ifndef BZ
#pragma GCC optimize "-O3"
#endif
#include <bits/stdc++.h>
#define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define rep(i, l, r) for (ll i = (l); i < (r); ++i)
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
#define pii pair<ll, ll>
#define pll pair<ll, ... | [
"identifier.change",
"variable_declaration.array_dimensions.change"
] | 323,642 | 323,643 | u100869561 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
int H, W, K;
vector<string> g0;
ll solve() {
int res = 0;
for (int s = 0; s < (1 << (H + W)); s++) {
set<int> rs, cs;
for (int i = 0; i < H; i++) {
if (s & (1 << i))
rs.... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
int H, W, K;
vector<string> g0;
ll solve() {
int res = 0;
for (int s = 0; s < (1 << (H + W)); s++) {
set<int> rs, cs;
for (int i = 0; i < H; i++) {
if (s & (1 << i))
rs.... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 323,648 | 323,649 | u455911711 | cpp |
p02614 | // Author: wlzhouzhuan
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define rint register int
#define rep(i, l, r) for (rint i = l; i <= r; i++)
#define per(i, l, r) for (rint i = l; i >= r; i--)
#define mset(s, _) mem... | // Author: wlzhouzhuan
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define rint register int
#define rep(i, l, r) for (rint i = l; i <= r; i++)
#define per(i, l, r) for (rint i = l; i >= r; i--)
#define mset(s, _) mem... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,650 | 323,651 | u016187156 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
string S[10];
int main() {
int N, M, K;
cin >> N >> M >> K;
for (int i = 0; i < N; i++)
cin >> S[i];
int Ans = 0;
for (int S1 = 0; S1 < (1 << N); S1++)
for (int S2 = 0; S2 < (1 << M); S2++) {
int Cnt = 0;
for (int i = 0; i < N; i++)
if ... | #include <bits/stdc++.h>
using namespace std;
string S[10];
int main() {
int N, M, K;
cin >> N >> M >> K;
for (int i = 0; i < N; i++)
cin >> S[i];
int Ans = 0;
for (int S1 = 0; S1 < (1 << N); S1++)
for (int S2 = 0; S2 < (1 << M); S2++) {
int Cnt = 0;
for (int i = 0; i < N; i++)
if ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,652 | 323,653 | u538921909 | cpp |
p02614 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define MOD 998244353
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define MOD 998244353
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 323,660 | 323,661 | u273928723 | cpp |
p02615 | // KNOW NOTHING!
#include <bits/stdc++.h>
#define ll long long int
#define F(i, j, k, in) for (int i = j; i < k; i += in)
#define DF(i, j, k, in) for (int i = j; i >= k; i -= in)
#define feach(it, l) for (auto it = l.begin(); it != l.end(); ++it)
#define fall(a) a.begin(), a.end()
#define sz(x) (int)x.size()
#define sz... | // KNOW NOTHING!
#include <bits/stdc++.h>
#define ll long long int
#define F(i, j, k, in) for (int i = j; i < k; i += in)
#define DF(i, j, k, in) for (int i = j; i >= k; i -= in)
#define feach(it, l) for (auto it = l.begin(); it != l.end(); ++it)
#define fall(a) a.begin(), a.end()
#define sz(x) (int)x.size()
#define sz... | [
"variable_declaration.value.change",
"assignment.change"
] | 323,674 | 323,673 | u921568052 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll N, i, ans;
ll A[222222];
cin >> N;
for (i = 0; i <= N - 1; i++)
cin >> A[i];
sort(A, A + N, greater<int>());
ans = A[0];
for (i = 0; i <= N - 3; i++)
ans += A[i / 2 + 2];
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll N, i, ans;
ll A[222222];
cin >> N;
for (i = 0; i <= N - 1; i++)
cin >> A[i];
sort(A, A + N, greater<int>());
ans = A[0];
for (i = 0; i <= N - 3; i++)
ans += A[i / 2 + 1];
cout << ans << endl;
} | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,675 | 323,676 | u362444129 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
// cout << fixed << setprecision(8) << a << endl;
#define Fast_Input \
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
#define pb push_back
#define mem(a, b) memset(a, b, s... | #include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
// cout << fixed << setprecision(8) << a << endl;
#define Fast_Input \
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
#define pb push_back
#define mem(a, b) memset(a, b, s... | [
"expression.unary.arithmetic.add"
] | 323,688 | 323,689 | u421893566 | cpp |
p02615 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
vector<ll> a(n);
rep(i, n) cin >> a[i];
sort(a.rbegin(), a.rend());
ll sum = a[0];
for (int i = 1; i < n / 2; i++) {
sum += 2 * a[... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
vector<ll> a(n);
rep(i, n) cin >> a[i];
sort(a.rbegin(), a.rend());
ll sum = a[0];
for (int i = 1; i < n / 2; i++) {
sum += 2 * a[... | [
"expression.operation.binary.remove"
] | 323,720 | 323,721 | u686878489 | cpp |
p02615 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main(void) {
int n;
cin >> n;
vector<ll> v(n);
rep(i, n) { cin >> v[i]; }
sort(v.begin(), v.end(), greater<ll>());
int now = 0;
ll ans = 0;
rep(i, n - 1) {
ans += v[now];
if (... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main(void) {
int n;
cin >> n;
vector<ll> v(n);
rep(i, n) { cin >> v[i]; }
sort(v.begin(), v.end(), greater<ll>());
int now = 0;
ll ans = 0;
rep(i, n - 1) {
ans += v[now];
if (... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 323,736 | 323,737 | u247576416 | cpp |
p02615 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
int n;
long long ans = 0;
long long a[200002];
bool b = false;
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
}
sort(a + 1, a + 1 + n);
ans += a[n];
int tot = (n - 2)... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
int n;
long long ans = 0;
long long a[200002];
bool b = false;
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
}
sort(a + 1, a + 1 + n);
ans += a[n];
int tot = (n - 2)... | [
"expression.operation.binary.remove",
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,748 | 323,749 | u082720840 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
sort(a.begin(), a.end());
long ans = a[n - 1];
int cnt = 2;
for (int i = 2; i < n; i++) {
ans += a[n - cnt];
// cout << a[n-cnt] << endl;
if (i ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
sort(a.begin(), a.end());
long ans = a[n - 1];
int cnt = 2;
for (int i = 2; i < n; i++) {
ans += a[n - cnt];
// cout << a[n-cnt] << endl;
if (i ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 323,758 | 323,759 | u593433974 | cpp |
p02615 | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#defin... | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#defin... | [
"assignment.value.change",
"expression.operation.unary.remove"
] | 323,764 | 323,765 | u155416173 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n, sum = 0;
cin >> n;
int a[n];
for (int i = 0; i < n; i++)
cin >> a[i];
sort(a, a + n);
reverse(a, a + n);
for (int i = 0; i < n - 1; i++)
sum += a[i];
cout << sum << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n, sum = 0;
cin >> n;
int a[n];
for (int i = 0; i < n; i++)
cin >> a[i];
sort(a, a + n);
reverse(a, a + n);
for (int i = 1; i < n; i++)
sum += a[i / 2];
cout << sum << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.change"
] | 323,768 | 323,769 | u351148423 | cpp |
p02615 | /*
URL https://
SCORE 0
AC false
WA false
TLE false
MLE false
TASK_TYPE
FAILURE_TYPE
NOTES
*/
#include <algorithm>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#inc... | /*
URL https://
SCORE 0
AC false
WA false
TLE false
MLE false
TASK_TYPE
FAILURE_TYPE
NOTES
*/
#include <algorithm>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#inc... | [] | 323,772 | 323,773 | u071730284 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> pii;
priority_queue<pii> q;
bool cmp(int a, int b) { return a > b; }
int n, a[200020];
ll res;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for (int i = 1... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> pii;
priority_queue<pii> q;
bool cmp(int a, int b) { return a > b; }
int n, a[200020];
ll res;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for (int i = 1... | [
"call.add"
] | 323,788 | 323,789 | u880572983 | cpp |
p02615 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using name... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using name... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,790 | 323,791 | u758223800 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
int main() {
int n;
cin >> n;
vector<ll> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
sort(a.begin(), a.end());
ll res = a[n - 1];
for (int i = 0; i ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
int main() {
int n;
cin >> n;
vector<ll> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
sort(a.begin(), a.end());
ll res = a[n - 1];
for (int i = 0; i ... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,798 | 323,799 | u743124029 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
sort(a.begin(), a.end());
int res = a[n - 1];
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
int main() {
int n;
cin >> n;
vector<ll> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
sort(a.begin(), a.end());
ll res = a[n - 1];
for (int i = 0; i ... | [
"variable_declaration.type.change",
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,800 | 323,799 | u743124029 | cpp |
p02615 | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)
#define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i ... | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)
#define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 323,801 | 323,802 | u179778090 | cpp |
p02615 | #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 mod 1000000007
#define pi 3.141592653589793
typedef vector<ll> vcl;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b)... | #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 mod 1000000007
#define pi 3.141592653589793
typedef vector<ll> vcl;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b)... | [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 323,818 | 323,819 | u613945234 | cpp |
p02615 | #include <algorithm>
#include <bitset>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> data(n);
for (int i = 0; i < n; i++)
cin >> data[i];
sort(data.begin(), data.end(), greater<int>());
long sum = 0;
if (n > 1)
sum = data... | #include <algorithm>
#include <bitset>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> data(n);
for (int i = 0; i < n; i++)
cin >> data[i];
sort(data.begin(), data.end(), greater<int>());
long sum = 0;
if (n > 1)
sum = data... | [] | 323,824 | 323,825 | u831207037 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<ll> a(n);
for (int i = 0; i < n; ++i)
cin >> a[i];
sort(a.rbegin(), a.rend()... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<ll> a(n);
for (int i = 0; i < n; ++i)
cin >> a[i];
sort(a.rbegin(), a.rend()... | [
"assignment.add"
] | 323,843 | 323,844 | u652929764 | cpp |
p02615 | //デバッグ用オプション:-fsanitize=undefined,address
//コンパイラ最適化
#pragma GCC optimize("Ofast")
//インクルードなど
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
// vector set 等
#include <map>
#include <set>
#include <vector>
//マクロ
// forループ
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)... | //デバッグ用オプション:-fsanitize=undefined,address
//コンパイラ最適化
#pragma GCC optimize("Ofast")
//インクルードなど
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
// vector set 等
#include <map>
#include <set>
#include <vector>
//マクロ
// forループ
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)... | [
"variable_declaration.type.widen.change",
"variable_declaration.type.primitive.change"
] | 323,851 | 323,849 | u239368018 | cpp |
p02615 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int n;
cin >> n;
vector<ll> comfort;
for (int i = 0; i < n; i++) {
ll a;
cin >> a;
comfort.push_back(a);
}
sort(comfort.begin(), comfort.end(), greater<ll>());
ll ans = 0;
for (int... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int n;
cin >> n;
vector<ll> comfort;
for (int i = 0; i < n; i++) {
ll a;
cin >> a;
comfort.push_back(a);
}
sort(comfort.begin(), comfort.end(), greater<ll>());
ll ans = 0;
for (int... | [
"expression.operation.binary.remove"
] | 323,852 | 323,853 | u320267096 | cpp |
p02615 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define r... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define r... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 323,854 | 323,855 | u860546679 | cpp |
p02615 | #include <algorithm> // sort
#include <cstring>
#include <fstream>
#include <iostream>
#include <math.h>
#include <queue>
#include <vector>
#define DEBUG 0
#define REP(i, n) for (long long i = 0; i < (n); i++)
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
// 9999... | #include <algorithm> // sort
#include <cstring>
#include <fstream>
#include <iostream>
#include <math.h>
#include <queue>
#include <vector>
#define DEBUG 0
#define REP(i, n) for (long long i = 0; i < (n); i++)
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
// 9999... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.change"
] | 323,865 | 323,863 | u485731913 | cpp |
p02615 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
vector<long long> vec(n);
for (long long i = 0; i < n; i++) {
cin >> vec.at(i);
}
sort(vec.begin(), vec.end());
reverse(vec.begin(), vec.end());
if (n == 2) {
cout << vec.at(0) << endl;
return 0;
}
if (n ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
vector<long long> vec(n);
for (long long i = 0; i < n; i++) {
cin >> vec.at(i);
}
sort(vec.begin(), vec.end());
reverse(vec.begin(), vec.end());
if (n == 2) {
cout << vec.at(0) << endl;
return 0;
}
if (n ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 323,868 | 323,869 | u625745764 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.