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 |
|---|---|---|---|---|---|---|---|
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a... | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a... | [
"assignment.add",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 109,535 | 109,536 | u178313254 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <string>
#define len 1500;
using namespace std;
struct A {
char name[100];
int time;
};
int head, tail, N, interval;
A a[1000];
A dequeue() {
A x = a[head++];
head = head % len;
return x;
}
void enqueue(A m) {
a[tail] = m;
tail = (tail + 1) % len;
}
int... | #include <cstdio>
#include <iostream>
#include <string>
#define len 150000
using namespace std;
struct A {
char name[100];
int time;
};
int head, tail, N, interval;
A a[len];
A dequeue() {
A x = a[head++];
head = head % len;
return x;
}
void enqueue(A m) {
a[tail] = m;
tail = (tail + 1) % len;
}
int... | [
"preprocessor.define.value.change",
"literal.integer.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_declaration.array_dimensions.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,542 | 109,543 | u356390697 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <string>
#define len 150000;
using namespace std;
struct A {
char name[100];
int time;
};
int head, tail, N, interval;
A a[1000];
A dequeue() {
A x = a[head++];
head = head % len;
return x;
}
void enqueue(A m) {
a[tail] = m;
tail = (tail + 1) % len;
}
i... | #include <cstdio>
#include <iostream>
#include <string>
#define len 150000
using namespace std;
struct A {
char name[100];
int time;
};
int head, tail, N, interval;
A a[len];
A dequeue() {
A x = a[head++];
head = head % len;
return x;
}
void enqueue(A m) {
a[tail] = m;
tail = (tail + 1) % len;
}
int... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_declaration.array_dimensions.change"
] | 109,545 | 109,543 | u356390697 | cpp |
p02264 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdlib.h>
#include <string>
#define Lens 105
#define Nil -1
using namespace std;
struct work {
string s;
int key;
};
int N, limit;
queue<work> Q;
int main() {
cin >> N >> limit;
for (int i = 0; i < N; i++) ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdlib.h>
#include <string>
#define Lens 105
#define Nil -1
using namespace std;
struct work {
string s;
int key;
};
int N, limit;
queue<work> Q;
int main() {
cin >> N >> limit;
for (int i = 0; i < N; i++) ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,546 | 109,547 | u356390697 | cpp |
p02264 | #include <iostream>
#include <string>
#include <vector>
struct Que {
int head, tail;
std::vector<int> time;
std::vector<std::string> name;
};
int initialize(Que &q, int n) {
int qt;
std::cin >> qt;
for (int i = 0; i < n; i++) {
int time;
std::string name;
std::cin >> name;
std::cin >> time... | #include <iostream>
#include <string>
#include <vector>
struct Que {
int head, tail;
std::vector<int> time;
std::vector<std::string> name;
};
int initialize(Que &q, int n) {
int qt;
std::cin >> qt;
for (int i = 0; i < n; i++) {
int time;
std::string name;
std::cin >> name;
std::cin >> time... | [
"literal.number.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change",
"function.return_value.change"
] | 109,573 | 109,574 | u843517396 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
struct task {
string name;
int time;
};
int main() {
queue<task> que;
task t, t1;
string name;
int n, q, time, cnt_time;
cnt_time = 0;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> time;
... | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
struct task {
string name;
int time;
};
int main() {
queue<task> que;
task t, t1;
string name;
int n, q, time, cnt_time;
cnt_time = 0;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> time;
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 109,575 | 109,576 | u098170735 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using std::begin;
using std::end;
int main() {
int n, q;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> queue;
for (int i{0}; i < n; ++i) {
std::string name;
int t;
std::cin >> name >> t;
queue.emplace(name, t);
}
int tim... | #include <iostream>
#include <queue>
#include <string>
using std::begin;
using std::end;
int main() {
int n, q;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> queue;
for (int i{0}; i < n; ++i) {
std::string name;
int t;
std::cin >> name >> t;
queue.emplace(name, t);
}
int tim... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,579 | 109,580 | u155316634 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main(int argc, char **argv) {
int n, q, t;
int total_time;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main(int argc, char **argv) {
int n, q, t;
int total_time = 0;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
... | [
"variable_declaration.value.change"
] | 109,584 | 109,585 | u267522292 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <vector>
using namespace std;
const int N_MAX = 1000000;
void round_robin_scheduling(queue<pair<string, int>> q, int quantum) {
int cur_time = 0;
pair<string, int> p_i;
while (!q.empty()) {
p_i = q.front();... | #include <cstdio>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <vector>
using namespace std;
const int N_MAX = 1000000;
void round_robin_scheduling(queue<pair<string, int>> q, int quantum) {
int cur_time = 0;
pair<string, int> p_i;
while (!q.empty()) {
p_i = q.front();... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,599 | 109,600 | u766183517 | cpp |
p02264 | #include <bits/stdc++.h>
#include <queue>
using namespace std;
struct process {
int time;
string name;
};
using namespace std;
int main() {
queue<struct process> a;
int num, limit, time = 0;
cin >> num >> limit;
struct process n, m;
for (int i = 0; i < num; i++) {
cin >> n.name >> n.time;
a.push(... | #include <bits/stdc++.h>
#include <queue>
using namespace std;
struct process {
int time;
string name;
};
using namespace std;
int main() {
queue<struct process> a;
int num, limit, time = 0;
cin >> num >> limit;
struct process n, m;
for (int i = 0; i < num; i++) {
cin >> n.name >> n.time;
a.push(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,601 | 109,602 | u694546441 | cpp |
p02264 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typedef struct _q {
string name;
int time;
} que;
int n;
int head = 1, tail;
que qar[100003];
void enq(que q) {
if (tail < n + 2)
tail++;
else
tail ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typedef struct _q {
string name;
int time;
} que;
int n;
int head = 1, tail;
que qar[100003];
void enq(que q) {
if (tail < n + 2)
tail++;
else
tail ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,603 | 109,604 | u829558692 | cpp |
p02264 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
struct node {
string name;
int time;
};
queue<node> Q;
int main() {
int n, q;
scanf("%d %d", &n, &q);
node ns;
for (int i = 0; i < n; i++) {
cin >> ns.name >> ns.time;
Q.push(ns);
... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
struct node {
string name;
int time;
};
queue<node> Q;
int main() {
int n, q;
scanf("%d %d", &n, &q);
node ns;
for (int i = 0; i < n; i++) {
cin >> ns.name >> ns.time;
Q.push(ns);
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,609 | 109,610 | u981267635 | cpp |
p02264 | #include <cstdlib>
#include <iostream>
#include <string>
#define N 1000
using namespace std;
class Queue {
private:
int num[N];
int head;
int tail;
public:
Queue() {
head = 0;
tail = 0;
}
// add to head position
void push(int x) {
num[tail] = x;
tail++;
}
// delete head position
... | #include <cstdlib>
#include <iostream>
#include <string>
#define N 100000
using namespace std;
class Queue {
private:
int num[N];
int head;
int tail;
public:
Queue() {
head = 0;
tail = 0;
}
// add to head position
void push(int x) {
num[tail] = x;
tail++;
}
// delete head position
... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 109,611 | 109,612 | u575882803 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
class State {
public:
string s;
int rem;
State() {}
State(string s, int rem) : s(s), rem(rem) {}
};
int main() {
int n, q;
queue<State> que;
while (cin >> n >> q) {
for (int i = 0; i < n; i++) {
string name;
int rem;
cin >... | #include <iostream>
#include <queue>
using namespace std;
class State {
public:
string s;
int rem;
State() {}
State(string s, int rem) : s(s), rem(rem) {}
};
int main() {
int n, q;
queue<State> que;
while (cin >> n >> q) {
for (int i = 0; i < n; i++) {
string name;
int rem;
cin >... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,614 | 109,615 | u642549559 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string> //これがないと、cinでstring型が使えないという謎発見
using namespace std;
//わざわざクラス作るの大変なので構造体(別のファイルにできないし)
// using namespace std; よりも前に書いちゃうと、stringとかにstd::string
// とかわざわざ指定しないと使えないので注意
typedef struct Process_temp {
int time_slot;
string quantum;
} Process;
int main() {
in... | #include <iostream>
#include <queue>
#include <string> //これがないと、cinでstring型が使えないという謎発見
using namespace std;
//わざわざクラス作るの大変なので構造体(別のファイルにできないし)
// using namespace std; よりも前に書いちゃうと、stringとかにstd::string
// とかわざわざ指定しないと使えないので注意
typedef struct Process_temp {
int time_slot;
string quantum;
} Process;
int main() {
in... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 109,616 | 109,617 | u708195431 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main(void) {
int n, q;
int inp;
string inp2;
queue<pair<string, int>> pro;
int now = 0;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> inp2 >> inp;
pro.push(pair<string, i... | #include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main(void) {
int n, q;
int inp;
string inp2;
queue<pair<string, int>> pro;
int now = 0;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> inp2 >> inp;
pro.push(pair<string, i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,618 | 109,619 | u118157225 | cpp |
p02264 | #include <iostream>
#define SIZE 200000
using namespace std;
struct Queue {
int table[SIZE];
int tail, head;
void init() { head = tail = 0; }
bool empty() { return head == tail; }
void inqueue(int x) {
table[tail] = x;
tail++;
tail %= SIZE;
}
int dequeue() {
if (empty())
return ... | #include <iostream>
#define SIZE 200000
using namespace std;
struct Queue {
int table[SIZE];
int tail, head;
void init() { head = tail = 0; }
bool empty() { return head == tail; }
void inqueue(int x) {
table[tail] = x;
tail++;
tail %= SIZE;
}
int dequeue() {
if (empty())
return ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,620 | 109,621 | u017575647 | cpp |
p02264 | #include <iostream>
#include <stdlib.h>
#define N_MAX 1000000
using namespace std;
typedef struct _a {
char name[10];
int time;
} P;
int main() {
int i;
int n;
int q;
int head;
int tail;
int res_time = 0;
char temp[10];
P A[N_MAX];
cin >> n;
cin >> q;
for (i = 0; i < n; i++) {
cin >... | #include <iostream>
#include <stdlib.h>
#define N_MAX 99999
using namespace std;
typedef struct _a {
char name[10];
int time;
} P;
int main() {
int i;
int n;
int q;
int head;
int tail;
int res_time = 0;
char temp[10];
P A[N_MAX];
cin >> n;
cin >> q;
for (i = 0; i < n; i++) {
cin >> ... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 109,964 | 109,963 | u323463806 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
long n;
int q;
cin >> n >> q;
queue<string> name;
queue<long> t;
for (long i = 0; i < n; i++) {
string stc;
cin >> stc;
name.push(stc);
long lin;
cin >> lin;
t.push(lin);
}
long total = ... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
long n;
int q;
cin >> n >> q;
queue<string> name;
queue<long> t;
for (long i = 0; i < n; i++) {
string stc;
cin >> stc;
name.push(stc);
long lin;
cin >> lin;
t.push(lin);
}
long total = ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 109,975 | 109,976 | u078387585 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <string>
#define LEN 100000
using namespace std;
class Pro {
public:
string name;
int time;
};
class Que {
Pro p[LEN];
public:
int head = 0, tail = 0, n;
void enqueue(Pro x) {
p[tail] = x;
tail = (tail + 1) % LEN;
}
Pro dequeue() {
Pro x =... | #include <algorithm>
#include <iostream>
#include <string>
#define LEN 100000
using namespace std;
class Pro {
public:
string name;
int time;
};
class Que {
Pro p[100000];
public:
int head = 0, tail = 0, n;
void enqueue(Pro x) {
p[tail] = x;
tail = (tail + 1) % LEN;
}
Pro dequeue() {
Pro ... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_declaration.array_dimensions.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 109,981 | 109,982 | u825264062 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <string>
#define LEN 1000
using namespace std;
class Pro {
public:
string name;
int time;
};
class Que {
Pro p[1000];
public:
int head = 0, tail = 0, n;
void enqueue(Pro x) {
p[tail] = x;
tail = (tail + 1) % LEN;
}
Pro dequeue() {
Pro x = ... | #include <algorithm>
#include <iostream>
#include <string>
#define LEN 100000
using namespace std;
class Pro {
public:
string name;
int time;
};
class Que {
Pro p[100000];
public:
int head = 0, tail = 0, n;
void enqueue(Pro x) {
p[tail] = x;
tail = (tail + 1) % LEN;
}
Pro dequeue() {
Pro ... | [
"preprocessor.define.value.change",
"literal.integer.change",
"literal.number.change",
"variable_declaration.array_dimensions.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 109,983 | 109,982 | u825264062 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#define LEN 100005
using namespace std;
//?????????????????¨????§???????
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P ret = Q[head];
head = (head + 1) % LE... | #include <algorithm>
#include <iostream>
#define LEN 100005
using namespace std;
//?????????????????¨????§???????
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P ret = Q[head];
head = (head + 1) % LE... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"assignment.value.change",
"io.output.change"
] | 109,986 | 109,987 | u825264062 | cpp |
p02264 | #include <bits/stdc++.h>
using namespace std;
typedef struct {
string name;
int time;
} P;
int main() {
int n, t;
queue<P> que; //キュー♂♂♂♂♂♂♂♂♂♂
string name;
int time;
cin >> n >> t;
for (int i = 0; i < n; i++) {
cin >> name >> time;
que.push((P){name, time});
}
int cnt = 0;
while (!que.em... | #include <bits/stdc++.h>
using namespace std;
typedef struct {
string name;
int time;
} P;
int main() {
int n, t;
queue<P> que; //キュー♂♂♂♂♂♂♂♂♂♂
string name;
int time;
cin >> n >> t;
for (int i = 0; i < n; i++) {
cin >> name >> time;
que.push((P){name, time});
}
int cnt = 0;
while (!que.em... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 109,988 | 109,989 | u748663083 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int a, b, d, cou, c;
queue<int> t;
queue<string> n;
string g;
char h;
cin >> a >> b;
for (int i = 0; i < a; i++) {
cin >> g >> d;
n.push(g);
t.push(d);
}
cou = 0;
while (!t.empty()... | #include <cstdio>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int a, b, d, cou, c;
queue<int> t;
queue<string> n;
string g;
char h;
cin >> a >> b;
for (int i = 0; i < a; i++) {
cin >> g >> d;
n.push(g);
t.push(d);
}
cou = 0;
while (!t.empty()... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change"
] | 109,990 | 109,991 | u784626891 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
queue<int> qi;
queue<string> qs;
int n, q, t;
string s;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> s >> t;
qs.push(s);
qi.push(t);
}
t = 0;
while (qi.size()) {
if (qi.front() > q) {
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
queue<int> qi;
queue<string> qs;
int n, q, t;
string s;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> s >> t;
qs.push(s);
qi.push(t);
}
t = 0;
while (qi.size()) {
if (qi.front() > q) {
... | [
"call.add"
] | 109,993 | 109,994 | u784626891 | cpp |
p02264 | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define LEN 100005
using namespa... | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define LEN 100005
using namespa... | [
"io.output.change"
] | 110,003 | 110,002 | u661495829 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
#define MAX_TASK_SIZE 100000
struct Task {
char name[100];
int time;
};
Task *Q[MAX_TASK_SIZE + 1];
int head, tail, n;
int elaps = 0;
void enqueue(Task *x) {
Q[tail] = x;
tail = (tail + 1) % MAX_TASK_SIZE;... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
#define MAX_TASK_SIZE 100000
struct Task {
char name[100];
int time;
};
Task *Q[MAX_TASK_SIZE + 1];
int head, tail, n;
int elaps = 0;
void enqueue(Task *x) {
Q[tail] = x;
tail = (tail + 1) % MAX_TASK_SIZE;... | [
"function.parameters.parameter.add",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 110,004 | 110,005 | u379744035 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
int main() {
int n, q;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> Q;
for (int i = 0; i < n; ++i) {
std::string s;
int v;
std::cin >> s >> v;
Q.push(std::make_pair(s, v));
}
int time = 0;
while (!Q.empty()) {
... | #include <iostream>
#include <queue>
#include <string>
int main() {
int n, q;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> Q;
for (int i = 0; i < n; ++i) {
std::string s;
int v;
std::cin >> s >> v;
Q.push(std::make_pair(s, v));
}
int time = 0;
while (!Q.empty()) {
... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 110,010 | 110,011 | u574853191 | cpp |
p02264 | #include <iostream>
typedef struct {
int time;
char name[10];
} process;
const int q_size = 100000;
process queues[q_size];
using namespace std;
int head = 0;
int tail = 0;
bool isEmpty() {
if (head == tail)
return true;
return false;
}
bool isFull() {
if (head == ((tail + 1) % q_size))
return t... | #include <iostream>
typedef struct {
int time;
char name[10];
} process;
const int q_size = 100000;
process queues[q_size];
using namespace std;
int head = 0;
int tail = 0;
bool isEmpty() {
if (head == tail)
return true;
return false;
}
bool isFull() {
if (head == ((tail + 1) % q_size))
return t... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 110,022 | 110,023 | u432957752 | cpp |
p02264 | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef struct {
char name[100];
int time;
} Px;
Px Q[100000];
int min(int a, int b) { return a < b ? a : b; }
int head, tail;
void enqueue(Px x) {
Q[tail] = x;
tail = (tail + 1) % 100000;
}
Px dequeue() {
Px x = Q[head];
... | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef struct {
char name[100];
int time;
} Px;
Px Q[100000];
int min(int a, int b) { return a < b ? a : b; }
int head, tail;
void enqueue(Px x) {
Q[tail] = x;
tail = (tail + 1) % 100000;
}
Px dequeue() {
Px x = Q[head];
... | [
"io.output.change"
] | 110,026 | 110,025 | u967088297 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
struct elem {
int time;
string name;
};
int main() {
queue<elem> que;
int n, q, curtime = 0;
cin >> n >> q;
struct elem x;
for (int i = 0; i < n; i++) {
cin >> x.name >> x.time;
que.push(x);
}
while (!que.empty()) {
x = que.front();... | #include <iostream>
#include <queue>
using namespace std;
struct elem {
int time;
string name;
};
int main() {
queue<elem> que;
int n, q, curtime = 0;
cin >> n >> q;
struct elem x;
for (int i = 0; i < n; i++) {
cin >> x.name >> x.time;
que.push(x);
}
while (!que.empty()) {
x = que.front();... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,028 | 110,029 | u872260751 | cpp |
p02264 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
const int MAX = 100000;
typedef struct process {
string name;
int time;
} Process;
int head, tail;
Process q[MAX];
void initializa() { head = tail = 0; }
bool isEmpty() { return head == tail; }
bool isFull() { retu... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
const int MAX = 100000;
typedef struct process {
string name;
int time;
} Process;
int head, tail;
Process q[MAX];
void initializa() { head = tail = 0; }
bool isEmpty() { return head == tail; }
bool isFull() { retu... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,031 | 110,032 | u295583755 | cpp |
p02264 | #include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define pb push_back
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define REP(i, n) for (int i =... | #include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define pb push_back
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define REP(i, n) for (int i =... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 110,036 | 110,037 | u172120093 | cpp |
p02264 | #include <cstdlib>
#include <iostream>
#include <queue>
#include <string>
struct gay {
std::string taskname;
int tasktime;
};
int main() {
gay gay_meme;
std::queue<gay> G;
int n, q, b, ctime = 0;
std::string fag;
std::cin >> n >> q;
for (int i = 0; i < n; i++) {
std::cin >> fag >> b;
gay_meme.ta... | #include <cstdlib>
#include <iostream>
#include <queue>
#include <string>
struct gay {
std::string taskname;
int tasktime;
};
int main() {
gay gay_meme;
std::queue<gay> G;
int n, q, b, ctime = 0;
std::string fag;
std::cin >> n >> q;
for (int i = 0; i < n; i++) {
std::cin >> fag >> b;
gay_meme.ta... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 110,038 | 110,039 | u544156467 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q;
queue<pair<string, int>> Q;
string tmp_name;
int tmp_time;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> tmp_name >> tmp_time;
Q.push(make_pair(tmp_name, tmp_time));
}
pair<string, int> ... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q;
queue<pair<string, int>> Q;
string tmp_name;
int tmp_time;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> tmp_name >> tmp_time;
Q.push(make_pair(tmp_name, tmp_time));
}
pair<string, int> ... | [
"assignment.add"
] | 110,042 | 110,043 | u756958775 | cpp |
p02264 | #include <iostream>
#include <utility>
#define MAX 1001
using namespace std;
class Queue {
pair<string, int> q[MAX];
int head = 0;
int tail = MAX - 1;
public:
bool is_empty() {
int diff = tail - head;
if (diff == -1 || diff == MAX)
return true;
return false;
}
void enqueue(pair<string, i... | #include <iostream>
#include <utility>
#define MAX 100001
using namespace std;
class Queue {
pair<string, int> q[MAX];
int head = 0;
int tail = MAX - 1;
public:
bool is_empty() {
int diff = tail - head;
if (diff == -1 || diff == MAX)
return true;
return false;
}
void enqueue(pair<string,... | [
"preprocessor.define.value.change",
"literal.integer.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,044 | 110,045 | u510526182 | cpp |
p02264 | #include <iostream>
using namespace std;
#include <algorithm>
#include <string.h>
#define MAX 100000
int head, tail;
struct Proc {
string name;
int t;
};
Proc Q[MAX];
void enqueue(Proc x) {
Q[tail] = x;
tail = (tail + 1) % MAX;
}
Proc dequeue() {
Proc x = Q[head];
head = (head + 1) % MAX;
return x;
}
... | #include <iostream>
using namespace std;
#include <algorithm>
#include <string.h>
#define MAX 100000
int head, tail;
struct Proc {
string name;
int t;
};
Proc Q[MAX];
void enqueue(Proc x) {
Q[tail] = x;
tail = (tail + 1) % MAX;
}
Proc dequeue() {
Proc x = Q[head];
head = (head + 1) % MAX;
return x;
}
... | [
"io.output.change"
] | 110,048 | 110,049 | u559945002 | cpp |
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 10005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a ... | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a... | [
"preprocessor.define.value.change",
"literal.integer.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.unary.arithmetic.remove",
"expression.operation.unary.reference.add"
] | 110,050 | 110,051 | u722526744 | cpp |
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 10005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a ... | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? a... | [
"preprocessor.define.value.change",
"literal.integer.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.unary.arithmetic.remove"
] | 110,052 | 110,051 | u722526744 | cpp |
p02264 | #include <cstdio>
#include <cstring>
#define MAX 100005
struct Data {
char name[11];
int num;
};
Data d[MAX];
int head, tail, n;
void enqueue(Data t) {
d[tail] = t;
tail = (tail + 1) % MAX;
}
Data dequeue() {
int tmp = head;
head = (head + 1) % MAX;
return d[head];
}
int isEmpty() { return tail == h... | #include <cstdio>
#include <cstring>
#define MAX 100005
struct Data {
char name[11];
int num;
};
Data d[MAX];
int head, tail, n;
void enqueue(Data t) {
d[tail] = t;
tail = (tail + 1) % MAX;
}
Data dequeue() {
int tmp = head;
head = (head + 1) % MAX;
return d[tmp];
}
int isEmpty() { return tail == he... | [
"identifier.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 110,060 | 110,061 | u460995938 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q;
int a, time = 0;
string s;
queue<int> Q;
queue<string> name;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> s >> a;
Q.push(a);
name.push(s);
}
while (Q.empty() == false) {
a = Q.front();
s = na... | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q;
int a, time = 0;
string s;
queue<int> Q;
queue<string> name;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> s >> a;
Q.push(a);
name.push(s);
}
while (Q.empty() == false) {
a = Q.front();
s = na... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,064 | 110,065 | u039368768 | cpp |
p02264 | #include <iostream>
#include <map>
#include <queue>
#include <string>
#define f first
#define s second
using namespace std;
int main() {
string x;
int y;
int n, q, i, cnt = 0;
queue<pair<string, int>> a;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> x >> y;
a.push(make_pair(x, y));
}
while (... | #include <iostream>
#include <map>
#include <queue>
#include <string>
#define f first
#define s second
using namespace std;
int main() {
string x;
int y;
int n, q, i, cnt = 0;
queue<pair<string, int>> a;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> x >> y;
a.push(make_pair(x, y));
}
while (... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 110,066 | 110,067 | u076398897 | cpp |
p02264 | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, q;
cin >> n >> q;
queue<pair<string, int>> pr;
for (int i = 0; i < n; i++) {
string p;
int Q;
cin >> p >> Q;
pr.push(pair<string, int>(p, Q));
}
int c = 0;
while (!pr.empty()) {
pair<string, in... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, q;
cin >> n >> q;
queue<pair<string, int>> pr;
for (int i = 0; i < n; i++) {
string p;
int Q;
cin >> p >> Q;
pr.push(pair<string, int>(p, Q));
}
int c = 0;
while (!pr.empty()) {
pair<string, in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 110,068 | 110,069 | u932131100 | cpp |
p02264 | #include <cstdlib>
#include <iostream>
#include <stdio.h>
using namespace std;
typedef struct {
char name[11] = "\0";
int time;
} P;
class Queue {
private:
int size;
P *queue;
int head = 0;
int tail = 0;
public:
Queue(int n);
void enqueue(P p);
void dequeue();
bool isEmpty();
P get();
void cl... | #include <cstdlib>
#include <iostream>
#include <stdio.h>
using namespace std;
typedef struct {
char name[11] = "\0";
int time;
} P;
class Queue {
private:
int size;
P *queue;
int head = 0;
int tail = 0;
public:
Queue(int n);
void enqueue(P p);
void dequeue();
bool isEmpty();
P get();
void cl... | [
"assignment.change",
"assignment.value.change",
"identifier.change"
] | 110,070 | 110,071 | u189288965 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main() {
queue<pair<string, int>> Q;
int n, q;
cin >> n >> q;
int elapsed = 0;
for (int i = 0; i < n; i++) {
string nm;
int t;
cin >> nm >> t;
Q.push(make_pair(nm, t));
}
while (Q.empty() =... | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main() {
queue<pair<string, int>> Q;
int n, q;
cin >> n >> q;
int elapsed = 0;
for (int i = 0; i < n; i++) {
string nm;
int t;
cin >> nm >> t;
Q.push(make_pair(nm, t));
}
while (Q.empty() =... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.arguments.change"
] | 110,072 | 110,073 | u014557234 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Task {
string t_name;
int t_time;
};
int main(int argc, const char *argv[]) {
int n, q;
int time_count = 0;
cin >> n >> q;
queue<Task> qt;
while (n--) {
Task t;
cin >> t.t_name >> t.t_time;
qt.push(t);
}
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Task {
string t_name;
int t_time;
};
int main(int argc, const char *argv[]) {
int n, q;
int time_count = 0;
cin >> n >> q;
queue<Task> qt;
while (n--) {
Task t;
cin >> t.t_name >> t.t_time;
qt.push(t);
}
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,074 | 110,075 | u140534897 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0;
int a = 0;
whi... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0;
int a = 0;
whi... | [
"assignment.add"
] | 110,076 | 110,077 | u873323786 | cpp |
p02264 | #define _CRT_SECURE_NO_WARNINGS
#include <cstdlib>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Process {
Process(string _name, int _time) : name(_name), time(_time) {}
int time;
string name;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
int q;
... | #define _CRT_SECURE_NO_WARNINGS
#include <cstdlib>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Process {
Process(string _name, int _time) : name(_name), time(_time) {}
int time;
string name;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
int q;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,078 | 110,079 | u222195708 | cpp |
p02264 | /*
???????????????????????????????????????¢??I
???????????????????\??????????????±??????????????????????I
*/
#define VERNIY \
st(); \
int ver = 0, niy = 0, hbk = 0
#includ... | /*
???????????????????????????????????????¢??I
???????????????????\??????????????±??????????????????????I
*/
#define VERNIY \
st(); \
int ver = 0, niy = 0, hbk = 0
#includ... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 110,080 | 110,081 | u993397917 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
main() {
queue<int> Q2;
queue<string> Q1;
int i, n, q, t, total = 0;
char st[10];
cin >> n;
cin >> q;
for (i = 0; i <= n - 1; i++) {
cin >> st;
Q1.push(st);
cin >> t;
Q2.push(t);
}
while (Q2.empty() != 1) {
if (Q2.front()... | #include <iostream>
#include <queue>
using namespace std;
main() {
queue<int> Q2;
queue<string> Q1;
int i, n, q, t, total = 0;
char st[10];
cin >> n;
cin >> q;
for (i = 0; i <= n - 1; i++) {
cin >> st;
Q1.push(st);
cin >> t;
Q2.push(t);
}
while (Q2.empty() != 1) {
if (Q2.front()... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 110,082 | 110,083 | u951145380 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
queue<string> s0;
queue<int> s1;
int n, q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string word;
int k;
cin >> word >> k;
s0.push(word);
s1.push(k);
}
int t = 0;
while (!s1.empty()) {
in... |
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
queue<string> s0;
queue<int> s1;
int n, q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string word;
int k;
cin >> word >> k;
s0.push(word);
s1.push(k);
}
int t = 0;
while (!s1.empty()) {
i... | [
"io.output.change"
] | 110,095 | 110,096 | u279401250 | cpp |
p02264 | #include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, a... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, a... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 110,097 | 110,098 | u964022203 | cpp |
p02264 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, q;
queue<string> name;
queue<int> time;
cin >> n >> q;
string ntemp;
int ttemp;
for (int i = 0; i < n; i++) {
cin >> ntemp >> ttemp;
name.push(ntemp);
time.push(ttemp);
}
vector<string> nans;
vector<int> tans;
int t ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, q;
queue<string> name;
queue<int> time;
cin >> n >> q;
string ntemp;
int ttemp;
for (int i = 0; i < n; i++) {
cin >> ntemp >> ttemp;
name.push(ntemp);
time.push(ttemp);
}
vector<string> nans;
vector<int> tans;
int t ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 110,101 | 110,102 | u120590405 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q, t;
string s;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < q; i++) {
cin >> s >> t;
Q.push(make_pair(s, t));
}
pair<string, int> u;
int ans = 0, a;
while (!Q.empty()) {
u... | #include <algorithm>
#include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q, t;
string s;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> s >> t;
Q.push(make_pair(s, t));
}
pair<string, int> u;
int ans = 0, a;
while (!Q.empty()) {
u... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 110,103 | 110,104 | u539210710 | cpp |
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
}
P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? ... | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
}
P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? ... | [
"assignment.add",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 110,106 | 110,107 | u219506271 | cpp |
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
}
P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? ... | #include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
}
P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b) { return a < b ? ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 110,108 | 110,107 | u219506271 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
class Process {
public:
string name;
int time;
Process(string n, int t) : name(n), time(t) {}
};
void output(string name, int time) {
cout << name << " " << time << endl;
return;
}
int main(void) {
// Input
int numData;
cin... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
class Process {
public:
string name;
int time;
Process(string n, int t) : name(n), time(t) {}
};
void output(string name, int time) {
cout << name << " " << time << endl;
return;
}
int main(void) {
// Input
int numData;
cin... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,111 | 110,112 | u301698331 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
class Process {
public:
string name;
int time;
Process(string n, int t) : name(n), time(t) {}
};
void output(string name, int time) {
cout << name << " " << time << endl;
return;
}
int main(void) {
// Input
int numData;
cin... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
/**
* @brief Process Class
*/
class Process {
public:
string name;
int time;
/* Constructor */
Process(string n, int t) : name(n), time(t) {}
};
/**
* @brief Result Output
* @param [in] name Process Name
* @param [in] time Proc... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,111 | 110,113 | u301698331 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
const int INF = 1001001000;
const int MOD = (int)1e9 + 7;
using ll = long long;
using namespace std;
int main() {
int n, q;
string name;
int t;
int t2 = 0;
pair<... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
const int INF = 1001001000;
const int MOD = (int)1e9 + 7;
using ll = long long;
using namespace std;
int main() {
int n, q;
string name;
int t;
int t2 = 0;
pair<... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,116 | 110,117 | u907590611 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#define LEN 100005
using namespace std;
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head;
int tail;
int n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, in... | #include <cstdio>
#include <iostream>
#define LEN 100005
using namespace std;
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head;
int tail;
int n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, in... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 110,118 | 110,119 | u354739219 | cpp |
p02264 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
using namespace std;
struct p {
char name[11];
int time;
int num;
};
int n;
int q;
queue<p> P;
p que[100000];
void solve() {
int now = 0;
while (P.size()) {
p tmp = P.front();
P.pop();
if (tmp.time <= 100) {
now +=... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
using namespace std;
struct p {
char name[11];
int time;
int num;
};
int n;
int q;
queue<p> P;
p que[100000];
void solve() {
int now = 0;
while (P.size()) {
p tmp = P.front();
P.pop();
if (tmp.time <= q) {
now += t... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 110,120 | 110,121 | u076064701 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, y, x;
string p;
int total = 0;
queue<int> myQueueNumbers;
queue<string> myQueueName;
cin >> n >> y;
for (int i = 0; i < n; i++) {
cin >> p;
cin >> x;
myQueueNumbers.push(x);
myQueueName.push(p);
}
while (!... | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, y, x;
string p;
int total = 0;
queue<int> myQueueNumbers;
queue<string> myQueueName;
cin >> n >> y;
for (int i = 0; i < n; i++) {
cin >> p;
cin >> x;
myQueueNumbers.push(x);
myQueueName.push(p);
}
while (!... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,126 | 110,127 | u261541966 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, y, x;
string p;
int total = 0;
queue<int> myQueueNumbers;
queue<string> myQueueName;
cin >> n >> y;
for (int i = 0; i <= n; i++) {
cin >> p;
cin >> x;
myQueueNumbers.push(x);
myQueueName.push(p);
}
while (... | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, y, x;
string p;
int total = 0;
queue<int> myQueueNumbers;
queue<string> myQueueName;
cin >> n >> y;
for (int i = 0; i < n; i++) {
cin >> p;
cin >> x;
myQueueNumbers.push(x);
myQueueName.push(p);
}
while (!... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 110,128 | 110,127 | u261541966 | cpp |
p02264 | #include <queue>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Process {
char name[10];
int time;
};
int main() {
int n, q;
scanf("%d", &n);
scanf("%d", &q);
Process process[n];
queue<Process> processList;
for (int i = 0; i < n; i++) {
scanf("%s", process[i].name);
scanf(... | #include <queue>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Process {
char name[10];
int time;
};
int main() {
int n, q;
scanf("%d", &n);
scanf("%d", &q);
Process process[n];
queue<Process> processList;
for (int i = 0; i < n; i++) {
scanf("%s", process[i].name);
scanf(... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 110,140 | 110,141 | u683313189 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
while (... | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t = 0;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
whi... | [
"variable_declaration.value.change",
"expression.operation.binary.remove",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 110,142 | 110,143 | u128957133 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
while (... | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t = 0;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
whi... | [
"variable_declaration.value.change"
] | 110,142 | 110,144 | u128957133 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
while (... | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t = 0;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
whi... | [
"variable_declaration.value.change",
"literal.string.change",
"expression.operation.binary.change"
] | 110,145 | 110,144 | u128957133 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
while (... | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t = 0;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
whi... | [
"variable_declaration.value.change",
"literal.string.change",
"expression.operation.binary.change"
] | 110,142 | 110,147 | u128957133 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
while (... | #include <iostream>
#include <queue>
#include <utility>
int main(int argc, char const *argv[]) {
int n, q, t = 0;
std::cin >> n >> q;
std::queue<std::pair<std::string, int>> que;
for (int i = 0; i < n; ++i) {
std::string nm;
int tm;
std::cin >> nm >> tm;
que.push(make_pair(nm, tm));
}
whi... | [
"variable_declaration.value.change"
] | 110,145 | 110,147 | u128957133 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
string name;
int i, n, q, time, elapsedt = 0;
queue<pair<string, int>> que;
vector<pair<string, int>> ans;
pair<string, int> tmp;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> name >> time;
... | #include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
string name;
int i, n, q, time, elapsedt = 0;
queue<pair<string, int>> que;
vector<pair<string, int>> ans;
pair<string, int> tmp;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> name >> time;
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 110,150 | 110,151 | u174031826 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
string name;
int i, n, q, time, elapsedt = 0;
queue<pair<string, int>> que;
vector<pair<string, int>> ans;
pair<string, int> tmp;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> name >> time;
... | #include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
string name;
int i, n, q, time, elapsedt = 0;
queue<pair<string, int>> que;
vector<pair<string, int>> ans;
pair<string, int> tmp;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> name >> time;
... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 110,152 | 110,151 | u174031826 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
#define size 100005
typedef struct pu {
int time;
string name;
} P;
P Q[size];
int head, tail, n; //先頭尻尾、要素数
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % size;
}
P dequeue() {
P x = Q[head];
head = (h... | #include <cstdio>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
#define size 100005
typedef struct pu {
int time;
string name;
} P;
P Q[size];
int head, tail, n; //先頭尻尾、要素数
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % size;
}
P dequeue() {
P x = Q[head];
head = (h... | [
"io.output.change"
] | 110,153 | 110,154 | u594988858 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
using namespace std;
struct Process {
string name;
int time;
};
static void inputProcess(queue<Process> &processQueue, int n) {
Process in;
for (int i = 0; i < n; i++) {
cin >> in.name >> in.time;
processQueue.push(in);
}
}
int main() {
i... | #include <algorithm>
#include <iostream>
#include <queue>
using namespace std;
struct Process {
string name;
int time;
};
static void inputProcess(queue<Process> &processQueue, int n) {
Process in;
for (int i = 0; i < n; i++) {
cin >> in.name >> in.time;
processQueue.push(in);
}
}
int main() {
i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 110,157 | 110,158 | u677185583 | cpp |
p02265 | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node(int x = 0) {
prev = 0;
next = 0;
data = x;
}
};
class List {
private:
Node head;
Node tail;
public:
List() {
head.prev = &head;
head.next = &tail;
tail.prev = &head;
tail.... | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node(int x = 0) {
prev = 0;
next = 0;
data = x;
}
};
class List {
private:
Node head;
Node tail;
public:
List() {
head.prev = &head;
head.next = &tail;
tail.prev = &head;
tail.... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 110,199 | 110,200 | u790645814 | cpp |
p02265 | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node(int x = 0) {
prev = 0;
next = 0;
data = x;
}
};
class List {
private:
Node head;
Node tail;
public:
List() {
head.prev = &head;
head.next = &tail;
tail.prev = &head;
tail.... | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node(int x = 0) {
prev = 0;
next = 0;
data = x;
}
};
class List {
private:
Node head;
Node tail;
public:
List() {
head.prev = &head;
head.next = &tail;
tail.prev = &head;
tail.... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 110,201 | 110,200 | u790645814 | cpp |
p02265 | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node() {
prev = 0;
next = 0;
data = 0;
}
};
class List {
private:
Node head;
public:
List() {
head.prev = &head;
head.next = &head;
}
int insert(int x);
int del(int x);
int delete... | #include <iostream>
using namespace std;
class Node {
public:
Node *prev;
Node *next;
int data;
Node() {
prev = 0;
next = 0;
data = 0;
}
};
class List {
private:
Node head;
public:
List() {
head.prev = &head;
head.next = &head;
}
int insert(int x);
int del(int x);
int delete... | [] | 110,202 | 110,203 | u518803905 | cpp |
p02265 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
Node *prev, *next;
};
Node *nil;
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next = nil;
nil->prev = nil;
}
void insert(int key) {
Node *x = (Node *)malloc(sizeof(Node));
x->key = key;
x->next = nil->next;
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
Node *prev, *next;
};
Node *nil;
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next = nil;
nil->prev = nil;
}
void insert(int key) {
Node *x = (Node *)malloc(sizeof(Node));
x->key = key;
x->next = nil->next;
... | [
"literal.string.change",
"call.arguments.change"
] | 110,208 | 110,209 | u168166878 | cpp |
p02265 | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 110,212 | 110,213 | u583863211 | cpp |
p02265 | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | [] | 110,306 | 110,307 | u684754380 | cpp |
p02265 | #include <algorithm>
#include <iostream>
#include <list>
#include <string>
int main() {
std::list<int> lst;
std::string str;
int n;
int tmp;
std::cin >> n;
for (int i = 0; i < n; i++) {
std::cin >> str;
if (str == "insert") {
std::cin >> tmp;
lst.push_front(tmp);
} else if (str == "d... | #include <algorithm>
#include <iostream>
#include <list>
#include <string>
int main() {
std::list<int> lst;
std::string str;
int n;
int tmp;
std::cin >> n;
for (int i = 0; i < n; i++) {
std::cin >> str;
if (str == "insert") {
std::cin >> tmp;
lst.push_front(tmp);
} else if (str == "d... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 110,310 | 110,311 | u142394607 | cpp |
p02265 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
using namespace std;
class mp {
public:
struct Node {
int key;
Node *prev, *next;
};
Node *nil;
mp() {
nil = (Node *)malloc(sizeof(Node));
nil->next = nil;
nil->prev = nil;
}
void insert(int key) {
Node *x = (No... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
using namespace std;
class mp {
public:
struct Node {
int key;
Node *prev, *next;
};
Node *nil;
mp() {
nil = (Node *)malloc(sizeof(Node));
nil->next = nil;
nil->prev = nil;
}
void insert(int key) {
Node *x = (No... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 110,320 | 110,321 | u170615175 | cpp |
p02265 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <... | [
"call.arguments.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 110,322 | 110,323 | u063945173 | cpp |
p02265 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 110,324 | 110,323 | u063945173 | cpp |
p02265 | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | #include <cstdio>
#include <cstdlib>
#include <cstring>
struct Node {
int key;
Node *next, *prev;
};
Node *nil;
Node *listSearch(int key) {
Node *cur = nil->next;
while (cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init() {
nil = (Node *)malloc(sizeof(Node));
nil->next ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 110,334 | 110,335 | u569803106 | cpp |
p02265 | #include <cstdio>
#include <list>
#pragma warning(disable : 4996)
using namespace std;
int main() {
int n, v;
char c[12];
list<int> l;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", c);
if (c[0] == 'i') {
scanf("%d", &v);
l.push_front(v);
} else if (c[6] == 'F') {
... | #include <cstdio>
#include <list>
#pragma warning(disable : 4996)
using namespace std;
int main() {
int n, v;
char c[12];
list<int> l;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%s", c);
if (c[0] == 'i') {
scanf("%d", &v);
l.push_front(v);
} else if (c[6] == 'F') {
... | [
"literal.string.change",
"call.arguments.change"
] | 110,347 | 110,348 | u823513038 | cpp |
p02266 | #include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main() {
string fields;
getline(cin, fields);
stack<int> st;
deque<pair<int, int>> areas;
int pool, sum = 0;
for (int i = 0; i < fields.length(); i++) {
if ('\\' == fields[i]) {
st.push(i);
} e... | #include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main() {
string fields;
getline(cin, fields);
stack<int> st;
deque<pair<int, int>> areas;
int pool, sum = 0;
for (int i = 0; i < fields.length(); i++) {
if ('\\' == fields[i]) {
st.push(i);
} e... | [
"io.output.change"
] | 110,357 | 110,358 | u604774382 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; i++) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
... | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; i++) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
... | [
"literal.string.change",
"io.output.change"
] | 110,361 | 110,362 | u215283046 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<long> S1, ans;
stack<pair<long, long>> S2;
char ch;
long sum = 0;
for (long i = 0; cin >> ch; i++) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() ... | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<long> S1, ans;
stack<pair<long, long>> S2;
char ch;
long sum = 0;
for (long i = 0; cin >> ch; i++) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() ... | [
"expression.operation.binary.remove"
] | 110,378 | 110,379 | u564420347 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
void show(vector<pair<int, int>> ponds) {
int sum = 0;
for (unsigned int i = 0; i < ponds.size(); i++) {
sum += ponds[i].first;
}
cout << sum << endl << ponds.size() << flush;
for (unsigned int i = 0; i <... | #include <algorithm>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
void show(vector<pair<int, int>> ponds) {
int sum = 0;
for (unsigned int i = 0; i < ponds.size(); i++) {
sum += ponds[i].first;
}
cout << sum << endl << ponds.size() << flush;
for (unsigned int i = 1; i <... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 110,382 | 110,383 | u505111885 | cpp |
p02266 | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
struct TPond {
int DownPoint;
int Surface;
};
void ConstructPond(vector<TPond> &PondRow, stack<int> &DownPointRow,
int InputCount) {
TPond Pond;
Pond.DownPoint = DownPointRow.top();
Pond.Surface = InputCount - Dow... | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
struct TPond {
int DownPoint;
int Surface;
};
void ConstructPond(vector<TPond> &PondRow, stack<int> &DownPointRow,
int InputCount) {
TPond Pond;
Pond.DownPoint = DownPointRow.top();
Pond.Surface = InputCount - Dow... | [
"call.function.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.condition.change",
"assignment.value.change"
] | 110,386 | 110,387 | u050511799 | cpp |
p02266 | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
struct TPond {
int DownPoint;
int Surface;
};
void ConstructPond(vector<TPond> &PondRow, stack<int> &DownPointRow,
int InputCount) {
TPond Pond;
Pond.DownPoint = DownPointRow.top();
Pond.Surface = InputCount - Dow... | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
struct TPond {
int DownPoint;
int Surface;
};
void ConstructPond(vector<TPond> &PondRow, stack<int> &DownPointRow,
int InputCount) {
TPond Pond;
Pond.DownPoint = DownPointRow.top();
Pond.Surface = InputCount - Dow... | [
"call.function.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.condition.change",
"assignment.value.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 110,388 | 110,387 | u050511799 | cpp |
p02266 | #include <iostream>
#include <stack>
#include <utility>
using namespace std;
void Output(stack<pair<int, int>> lake) {
stack<pair<int, int>> res_lake;
int lake_sum = 0;
int n = lake.size();
for (int i = 0; i < n; i++) {
lake_sum += lake.top().first;
res_lake.push(lake.top());
lake.pop();
}
co... | #include <iostream>
#include <stack>
#include <utility>
using namespace std;
void Output(stack<pair<int, int>> lake) {
stack<pair<int, int>> res_lake;
int lake_sum = 0;
int n = lake.size();
for (int i = 0; i < n; i++) {
lake_sum += lake.top().first;
res_lake.push(lake.top());
lake.pop();
}
co... | [
"identifier.change"
] | 110,389 | 110,390 | u261444710 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; ++i) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
... | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; ++i) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
... | [
"call.function.change"
] | 110,395 | 110,394 | u944777079 | cpp |
p02266 | #include "bits/stdc++.h"
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; ++i) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
int j = S1.top();
S1.pop();
sum += i - j;
int a ... | #include "bits/stdc++.h"
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char ch;
int sum = 0;
for (int i = 0; cin >> ch; ++i) {
if (ch == '\\')
S1.push(i);
else if (ch == '/' && S1.size() > 0) {
int j = S1.top();
S1.pop();
sum += i - j;
int a ... | [
"call.function.change"
] | 110,396 | 110,397 | u944777079 | cpp |
p02266 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <istream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
//--------------------... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <istream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
//--------------------... | [
"assignment.value.change"
] | 110,425 | 110,426 | u661495829 | cpp |
p02266 | #include <iostream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int main(void) {
std::string Input;
std::cin >> Input;
std::stack<int> PlaceBackSlash;
std::stack<std::pair<int, int>> Puddle_Place_Quantity;
for (unsigned int i = 0; i < Input.size(); ++i) {
if (Input[i] == '\\') ... | #include <iostream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int main(void) {
std::string Input;
std::cin >> Input;
std::stack<int> PlaceBackSlash;
std::stack<std::pair<int, int>> Puddle_Place_Quantity;
for (unsigned int i = 0; i < Input.size(); ++i) {
if (Input[i] == '\\') ... | [
"variable_declaration.type.narrow.change"
] | 110,436 | 110,437 | u933569644 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char slope;
int i = 0;
int sum = 0;
while (cin >> slope) {
if (slope == '\\') {
S1.push(i... | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char slope;
int i = 0;
int sum = 0;
while (cin >> slope) {
if (slope == '\\') {
S1.push(i... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"identifier.change",
"io.output.change"
] | 110,440 | 110,441 | u014280919 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char slope;
int i = 0;
int sum = 0;
while (cin >> slope) {
if (slope == '\\') {
S1.push(i... | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
char slope;
int i = 0;
int sum = 0;
while (cin >> slope) {
if (slope == '\\') {
S1.push(i... | [
"identifier.change",
"io.output.change"
] | 110,442 | 110,441 | u014280919 | cpp |
p02266 | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
//#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(... | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
//#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(... | [
"expression.operation.binary.remove"
] | 110,445 | 110,446 | u927516039 | cpp |
p02266 | #include <algorithm>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
string s;
int i, sum = 0;
cin >> s;
int len = s.length();
for (i = 0; i < len; i++) {
if (s[i] == '\\')
S1.push(i);
else if (s[i] == '/' && ... | #include <algorithm>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main() {
stack<int> S1;
stack<pair<int, int>> S2;
string s;
int i, sum = 0;
cin >> s;
int len = s.length();
for (i = 0; i < len; i++) {
if (s[i] == '\\')
S1.push(i);
else if (s[i] == '/' && ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 110,447 | 110,448 | u381149647 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.