Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02397
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a >> b; while (a != 0 && b != 0) { if (a < b) cout << a << " " << b << "\n"; else cout << b << " " << a << "\n"; cin >> a >> b; } return 0; }
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a >> b; while (a != 0 || b != 0) { if (a < b) cout << a << " " << b << "\n"; else cout << b << " " << a << "\n"; cin >> a >> b; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,620
177,621
u340914015
cpp
p02397
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0 || y != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
[ "control_flow.loop.condition.change" ]
177,622
177,623
u542110891
cpp
p02397
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0 && y != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0 || y != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,624
177,623
u542110891
cpp
p02397
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0 & y != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int i, x, y; cin >> x >> y; i = 0; while (x != 0 || y != 0) { i++; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } }
[ "control_flow.loop.condition.change" ]
177,625
177,623
u542110891
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << y << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
[ "io.output.change" ]
177,626
177,627
u117673497
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x; k++) { if (data1[k] > data2[k]) { cout << data1[k] << " " << ...
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x; k++) { if (data1[k] > data2[k]) { cout << data2[k] << " " <<...
[ "control_flow.branch.else.add" ]
177,628
177,629
u354867116
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x + 1; k++) { if (data1[k] > data2[k]) { cout << data1[k] << " "...
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x; k++) { if (data1[k] > data2[k]) { cout << data2[k] << " " <<...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.else.add" ]
177,631
177,629
u354867116
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x - 1; k++) { if (data1[k] > data2[k]) { cout << data1[k] << " "...
#include <iostream> using namespace std; int main() { int x = 0; int data1[3000], data2[3000]; while (1) { cin >> data1[x] >> data2[x]; if (data1[x] == 0 && data2[x] == 0) { break; } x++; } for (int k = 0; k < x; k++) { if (data1[k] > data2[k]) { cout << data2[k] << " " <<...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.else.add" ]
177,632
177,629
u354867116
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { swap(x, y); } } cout << x << " " << y << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { swap(x, y); } cout << x << " " << y << endl; } return 0; }
[]
177,633
177,634
u877529639
cpp
p02397
#include <iostream> using namespace std; int main() { for (int i = 1;; i++) { int x, y; cin >> x >> y; if (x == 0) break; if (x > y) { swap(x, y); } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { for (int i = 1;; i++) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { swap(x, y); } cout << x << " " << y << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,635
177,636
u704184522
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { swap(x, y); } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { swap(x, y); } cout << y << " " << x << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
177,637
177,638
u063048537
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << "" << y << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
177,639
177,640
u361167253
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> y; if (x == 0 | y == 0) break; if (x >= y) { cout << y << " " << x << endl; } if (x < y) { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) { cout << y << " " << x << endl; } if (x < y) { cout << x << " " << y << endl; } } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,643
177,644
u107706910
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 | y == 0) break; if (x >= y) { cout << y << " " << x << endl; } if (x < y) { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) { cout << y << " " << x << endl; } if (x < y) { cout << x << " " << y << endl; } } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,646
177,644
u107706910
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; } if (x > y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x <= y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,647
177,648
u643938168
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; }; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x <= y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,649
177,648
u643938168
cpp
p02397
#include <cstdio> int main(void) { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a > b) printf("%d %d\n", b, a); else printf("%d %d\n", b, a); scanf("%d %d", &a, &b); } return 0; }
#include <cstdio> int main(void) { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a > b) printf("%d %d\n", b, a); else printf("%d %d\n", a, b); scanf("%d %d", &a, &b); } return 0; }
[ "call.arguments.change", "call.arguments.add" ]
177,650
177,651
u199259534
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, a; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { a = x; x = y; y = a; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, a; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { a = x; x = y; y = a; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,654
177,655
u796103607
cpp
p02397
#include <iostream> #include <string> using namespace std; int main() { while (true) { int n1, n2; cin >> n1 >> n2; if (n1 > 0 && n2 > 0) { if (n1 < n2) cout << n1 << " " << n2 << endl; else cout << n2 << " " << n1 << endl; } else break; } }
#include <iostream> #include <string> using namespace std; int main() { while (true) { int n1, n2; cin >> n1 >> n2; if (n1 > 0 || n2 > 0) { if (n1 < n2) cout << n1 << " " << n2 << endl; else cout << n2 << " " << n1 << endl; } else break; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,659
177,660
u905714506
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int x, y, i = 0; int result[6000]; while (true) { scanf("%d %d", &x, &y); if (x == 0 || y == 0) { break; } else if (x < y) { result[i] = x; result[i + 1] = y; i += 2; } else { result[i] = y; result[i ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y, i = 0; int result[6000]; while (true) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else if (x < y) { result[i] = x; result[i + 1] = y; i += 2; } else { result[i] = y; result[i ...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,662
177,663
u803657704
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int x, y; cin >> x >> y; if (x == y) break; if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,665
177,666
u960552158
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x <= y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,676
177,675
u136295375
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << y << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "io.output.change" ]
177,680
177,681
u670839915
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << y << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "io.output.change" ]
177,682
177,681
u670839915
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y, i; i = 1; while (i = 1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
[ "io.output.change" ]
177,684
177,681
u670839915
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z = 1; while (z = 1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z = 1; while (z = 1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
[ "control_flow.branch.else.add" ]
177,685
177,686
u824483998
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3001; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } return 0; }...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,694
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3001; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y, x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } re...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,697
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3001; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y, x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } ret...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,698
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 10001; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y, x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } re...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,699
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 10000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y, x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } re...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,700
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y, x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } ret...
#include <iostream> using namespace std; int main(void) { int x, y, i; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y || x == y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } } r...
[ "control_flow.branch.if.condition.change" ]
177,702
177,695
u814824348
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, tmp; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x < y) { tmp = x; x = y; y = tmp; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, tmp; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x > y) { tmp = x; x = y; y = tmp; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,708
177,709
u846580842
cpp
p02397
#include <stdio.h> int main(void) { int i, x, y; for (i = 1; i <= 3000; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
#include <stdio.h> int main(void) { int i, x, y; for (i = 1; i <= 3000; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,710
177,711
u480981048
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int x, y; scanf("%d %d", &x, &y); while (x && y) { x <= y ? printf("%d %d\n", x, y) : printf("%d %d\n", y, x); scanf("%d %d", &x, &y); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; scanf("%d %d", &x, &y); while (x || y) { x <= y ? printf("%d %d\n", x, y) : printf("%d %d\n", y, x); scanf("%d %d", &x, &y); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,714
177,713
u471796195
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; int i = 0; while (i < 3000) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } i++; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; int i = 0; while (i < 3000) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } i++; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,715
177,716
u187945030
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 || y == 0) { break; } cout << x << ' ' << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 && y == 0) break; cout << x << ' ' << y << endl; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,717
177,718
u506686860
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 || y == 0) { break; } cout << x << ' ' << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 && y == 0) break; cout << x << ' ' << y << endl; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,719
177,718
u506686860
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 || y == 0) break; cout << x << ' ' << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x > y) { swap(x, y); } if (x == 0 && y == 0) break; cout << x << ' ' << y << endl; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,720
177,718
u506686860
cpp
p02397
#include <iostream> using namespace std; int main() { for (int x, y, i = 0;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << y << " " << x << endl; if (x < y) cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { for (int x, y, i = 0;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; } return 0; }
[ "control_flow.loop.for.condition.change" ]
177,723
177,724
u572908819
cpp
p02397
#include <iostream> using namespace std; int main() { for (int x, y, i = 0;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << y << " " << x << endl; if (x < y) cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { for (int x, y, i = 0;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; } return 0; }
[ "control_flow.loop.for.condition.change" ]
177,723
177,728
u572908819
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, k; while (1) { cin >> x >> y; if (x * y == 0) { break; } if (x > y) { k = y; y = x; x = k; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, k; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { k = y; y = x; x = k; } cout << x << " " << y << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,734
177,735
u563400950
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; for (int i = 0; i < 3000; i++) { cin >> a >> b; if (a <= b) { cout << a << " " << b << endl; } else if ((a == 0) && (b == 0)) { break; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b; for (int i = 0; i < 3000; i++) { cin >> a >> b; if (a < b) { cout << a << " " << b << endl; } else if ((a == 0) && (b == 0)) { break; } else if (a >= b) { cout << b << " " << a << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,738
177,739
u692182465
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; for (int i = 0; i < 3000; i++) { cin >> a >> b; if (a <= b) { cout << a << " " << b << endl; } else if ((a == 0) && (b == 0)) { break; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b; for (int i = 0; i < 3000; i++) { cin >> a >> b; if (a < b) { cout << a << " " << b << endl; } else if ((a == 0) && (b == 0)) { break; } else if (a >= b) { cout << b << " " << a << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,740
177,739
u692182465
cpp
p02397
#include <iostream> using namespace std; int main() { // insert code here... int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << ' ' << b << endl; } else { cout << b << ' ' << a << endl; } cout << endl; } return 0; }
#include <iostream> using namespace std; int main() { // insert code here... int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << ' ' << b << endl; } else { cout << b << ' ' << a << endl; } } return 0; }
[]
177,741
177,742
u681100671
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (true) { cin >> a >> b; if (a == 0 && b == 0) break; if (a != b) cout << b << " " << a << endl; else cout << a << " " << b << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (true) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) cout << b << " " << a << endl; else cout << a << " " << b << endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,743
177,744
u694546441
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << y << x << endl; } else { cout << x << " " << y << endl; } } }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1;; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } }
[ "io.output.change" ]
177,745
177,746
u011910449
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, temp; int testX[3000]; int testY[3000]; for (int i = 1; i < 3000; i++) { cin >> x >> y; testX[i] = x; testY[i] = y; if (testX[i] > testY[i]) { temp = testX[i]; testX[i] = testY[i]; testY[i] = temp; } ...
#include <iostream> using namespace std; int main(void) { int x, y, temp; int testX[3000]; int testY[3000]; for (int i = 1; i < 3000; i++) { cin >> x >> y; testX[i] = x; testY[i] = y; if (testX[i] > testY[i]) { temp = testX[i]; testX[i] = testY[i]; testY[i] = temp; } ...
[ "literal.string.change", "io.output.change" ]
177,749
177,750
u237800109
cpp
p02397
#include <iostream> using namespace std; int main(void) { int x, y, temp; int testX[3000]; int testY[3000]; for (int i = 1; i < 3000; i++) { cin >> x >> y; testX[i] = x; testY[i] = y; if (testX[i] > testY[i]) { temp = testX[i]; testX[i] = testY[i]; testY[i] = temp; } ...
#include <iostream> using namespace std; int main(void) { int x, y, temp; int testX[3000]; int testY[3000]; for (int i = 1; i < 3000; i++) { cin >> x >> y; testX[i] = x; testY[i] = y; if (testX[i] > testY[i]) { temp = testX[i]; testX[i] = testY[i]; testY[i] = temp; } ...
[ "literal.string.change", "io.output.change" ]
177,751
177,750
u237800109
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int n, m; while (true) { cin >> n >> m; if (n == 0 && m == 0) { break; } else if (n <= m) { cout << m << " " << n << endl; } else { cout << n << " " << m << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int n, m; while (true) { cin >> n >> m; if (n == 0 && m == 0) { break; } else if (n <= m) { cout << n << " " << m << endl; } else { cout << m << " " << n << endl; } } }
[ "control_flow.branch.else.add" ]
177,753
177,754
u635106154
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; int buf; for (int i = 0; i < 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { buf = x; x = y; y = buf; } cout << x << ' ' << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; int buf; for (int i = 0; i < 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { buf = x; x = y; y = buf; } cout << x << ' ' << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,755
177,756
u220050324
cpp
p02397
#include <cstdio> int main() { int x, y; for (;;) { scanf("%d %d", &x, &y); if (x != 0 && y != 0) { if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } else { break; } } return 0; }
#include <cstdio> int main() { int x, y; for (;;) { scanf("%d %d", &x, &y); if (x != 0 || y != 0) { if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } else { break; } } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,757
177,758
u228144846
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int a = 1, b = 1; while (a != 0 && b != 0) { cin >> a >> b; if (a != 0 && b != 0) { if (a > b) swap(a, b); cout << a << " " << b << endl; } } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int a = 1, b = 1; while (a != 0 || b != 0) { cin >> a >> b; if (a != 0 || b != 0) { if (a > b) swap(a, b); cout << a << " " << b << endl; } } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "control_flow.branch.if.condition.change" ]
177,759
177,760
u635974820
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0) break; if (x < y) { } else { swap(x, y); } printf("%d %d\n", x, y); } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { } else { swap(x, y); } printf("%d %d\n", x, y); } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,761
177,762
u232476938
cpp
p02397
#include <algorithm> #include <iostream> #include <stdio.h> using namespace std; int main() { int a[] = {-1, -1}; int i = 1; while (true) { scanf("%d %d", &a[0], &a[1]); if (a[0] == 0 && a[0] == 0) break; sort(a, a + 2); cout << a[0] << " " << a[1] << endl; i++; } }
#include <algorithm> #include <iostream> #include <stdio.h> using namespace std; int main() { int a[] = {-1, -1}; int i = 1; while (true) { scanf("%d %d", &a[0], &a[1]); if (a[0] == 0 && a[1] == 0) break; sort(a, a + 2); cout << a[0] << " " << a[1] << endl; i++; } }
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
177,763
177,764
u738585848
cpp
p02397
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if ((a == 0) && (b == 0)) break; if (a < b) printf("%d %d\n", a, b); if (a > b) printf("%d %d\n", b, a); } return 0; }
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if ((a == 0) && (b == 0)) break; if (a <= b) printf("%d %d\n", a, b); if (a > b) printf("%d %d\n", b, a); } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,765
177,766
u554218944
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, tmp; cin >> x >> y; while ((x != 0) && (y != 0)) { if (x < y) { tmp = x; x = y; y = tmp; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, tmp; cin >> x >> y; while ((x != 0) || (y != 0)) { if (x > y) { tmp = x; x = y; y = tmp; } cout << x << ' ' << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
177,767
177,768
u423758855
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, tmp; cin >> x >> y; while ((x != 0) && (y != 0)) { if (x > y) { tmp = x; x = y; y = tmp; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, tmp; cin >> x >> y; while ((x != 0) || (y != 0)) { if (x > y) { tmp = x; x = y; y = tmp; } cout << x << ' ' << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "literal.string.change", "io.output.change" ]
177,769
177,768
u423758855
cpp
p02397
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (!x && !y) break; if (x < y) std::cout << y << ' ' << x << std::endl; else std::cout << x << ' ' << y << std::endl; } return 0; }
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (!x && !y) break; if (x > y) std::cout << y << ' ' << x << std::endl; else std::cout << x << ' ' << y << std::endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,772
177,773
u648595971
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a && b) { if (a > b) swap(a, b); cout << a << " " << b << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a || b) { if (a > b) swap(a, b); cout << a << " " << b << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,774
177,775
u527975163
cpp
p02397
#include <cstdio> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } return 0; } }
#include <cstdio> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[]
177,778
177,779
u791924778
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x) { cin >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x) { cin >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[ "io.output.change" ]
177,781
177,782
u618847812
cpp
p02397
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, x && y) { std::cout << ((x < y) ? x : y) << " " << ((x < y) ? y : x) << std::endl; } }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, x || y) { std::cout << ((x < y) ? x : y) << " " << ((x < y) ? y : x) << std::endl; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,783
177,784
u301021544
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, tmp; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "variable_declaration.remove", "misc.opposites", "control_flow.loop.condition.change" ]
177,785
177,786
u410384951
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,787
177,786
u410384951
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if ((x != 0) && (y != 0)) { if (y < x) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } else break; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if ((x != 0) || (y != 0)) { if (y < x) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } else break; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,789
177,790
u921613373
cpp
p02397
#include <iostream> using namespace std; int x, y; int main() { cin >> x >> y; while (x != 0 && y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } }
#include <iostream> using namespace std; int x, y; int main() { cin >> x >> y; while (x != 0 || y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,791
177,792
u416632581
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, z; z = 1; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { z++; } } cout << z << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, z; z = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { z++; } } cout << z << endl; return 0; }
[ "literal.number.change", "assignment.value.change" ]
179,780
179,781
u431726425
cpp
p02398
#include <iostream> using namespace std; #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_(i, 0, (n)) #define rrep(i, n) rfor_(i, 0, (n)) int a, b, c; int main() { cin.tie(0); cin >> a >> b >> c; int d = 0; for_(i, a, b) {...
#include <iostream> using namespace std; #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_(i, 0, (n)) #define rrep(i, n) rfor_(i, 0, (n)) int a, b, c; int main() { cin.tie(0); cin >> a >> b >> c; int d = 0; for_(i, a, b + ...
[ "expression.operation.binary.add" ]
179,788
179,789
u851513436
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, z; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c / i == 0) z++; } cout << z << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, z = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) z++; } cout << z << endl; return 0; }
[ "variable_declaration.value.change", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
179,790
179,791
u572908819
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, z = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c / i == 0) z++; } cout << z << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, z = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) z++; } cout << z << endl; return 0; }
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
179,792
179,791
u572908819
cpp
p02398
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D&lang=jp #include <iostream> using namespace std; int main() { int a, b, c; int yakusuunokosuu = 0; cin >> a >> b >> c; for (int i = 0; i <= 10000; i = i + 1) { if ((a + i) >= b) { break; } else { if (c % (a + i) == 0) ...
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D&lang=jp #include <iostream> using namespace std; int main() { int a, b, c; int yakusuunokosuu = 0; cin >> a >> b >> c; for (int i = 0; i <= 10000; i = i + 1) { if ((a + i) > b) { break; } else { if (c % (a + i) == 0) /...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
179,793
179,794
u053643559
cpp
p02398
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D&lang=jp #include <iostream> using namespace std; int main() { int a, b, c; int yakusuunokosuu = 0; cin >> a >> b >> c; for (int i = 0; i <= 10001; i = i + 1) { if ((a + i) >= b) { break; } else { if (c % (a + i) == 0) ...
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D&lang=jp #include <iostream> using namespace std; int main() { int a, b, c; int yakusuunokosuu = 0; cin >> a >> b >> c; for (int i = 0; i <= 10000; i = i + 1) { if ((a + i) > b) { break; } else { if (c % (a + i) == 0) /...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
179,795
179,794
u053643559
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, count = 0; cin >> a >> b >> c; for (; a == b; a++) { if (c % a == 0) count++; } cout << count << endl; }
#include <iostream> using namespace std; int main() { int a, b, c, count = 0; cin >> a >> b >> c; for (; a < b + 1; a++) { if (c % a == 0) count++; } cout << count << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
179,796
179,797
u608580712
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, counter; counter = 0; cin >> a >> b >> c; for (int i = a; i <= 10; i++) { if (c % i == 0) { counter++; } } cout << counter << endl; }
#include <iostream> using namespace std; int main() { int a, b, c, counter; counter = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { counter++; } } cout << counter << endl; }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
179,799
179,800
u982214285
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, i, ans = 0; cin >> a >> b >> c; for (i = a; i < b; i++) { if (c % i == 0) { ans++; } } cout << ans << '\n'; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, i, ans = 0; cin >> a >> b >> c; for (i = a; i <= b; i++) { if (c % i == 0) { ans++; } } cout << ans << '\n'; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,801
179,802
u897357479
cpp
p02398
#include <stdio.h> int main() { int a = 0; int b = 0; int c = 0; scanf("%d", a); scanf("%d", b); scanf("%d", c); int num_of_divisor = 0; int i = 0; for (i = a; i < b + 1; i++) { if (c % i == 0) num_of_divisor++; } printf("%d", num_of_divisor); return 0; }
#include <stdio.h> int main() { int a = 0; int b = 0; int c = 0; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); int num_of_divisor = 0; int i = 0; for (i = a; i < b + 1; i++) { if (c % i == 0) num_of_divisor++; } printf("%d\n", num_of_divisor); return 0; }
[ "expression.operation.unary.reference.add", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
179,803
179,804
u586872114
cpp
p02398
// class point の練習(クラスの高度な実装) #include <iostream> using namespace std; int main() { int a, b, c; int cnt = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c / i == 0) cnt++; } cout << cnt << endl; return 0; }
// class point の練習(クラスの高度な実装) #include <iostream> using namespace std; int main() { int a, b, c; int cnt = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) cnt++; } cout << cnt << endl; return 0; }
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
179,807
179,808
u331071112
cpp
p02398
// class point の練習(クラスの高度な実装) #include <iostream> using namespace std; int main() { int a, b, c; int cnt = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c / i % 0) cnt++; } cout << cnt << endl; return 0; }
// class point の練習(クラスの高度な実装) #include <iostream> using namespace std; int main() { int a, b, c; int cnt = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) cnt++; } cout << cnt << endl; return 0; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
179,809
179,808
u331071112
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; int count = 0; int i; cin >> a >> b >> c; for (i = 0; i < b - a; i++) { if (c % (a + i) == 0) { count += 1; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; int count = 0; int i; cin >> a >> b >> c; for (i = 0; i <= b - a; i++) { if (c % (a + i) == 0) { count += 1; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,810
179,811
u820666857
cpp
p02398
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, i, j; cin >> a >> b >> c; i = 0; for (j = a; j < b; j++) { if (c % a == 0) { i++; } a++; } if (a == 1 && b == 1) { cout << 1 << endl; } else { cout << i << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, i, j; cin >> a >> b >> c; i = 0; for (j = a; j < b + 1; j++) { if (c % a == 0) { i++; } a++; } if (a == 0 && b == 0) { cout << 0 << endl; } else { cout << i << endl; } return 0; }
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "literal.number.change", "control_flow.branch.if.condition.change", "io.output.change" ]
179,815
179,816
u164081752
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, counter = 0; cin >> a >> b >> c; for (; a < b; a++) { if (c % a == 0) counter++; else continue; } cout << counter << endl; }
#include <iostream> using namespace std; int main() { int a, b, c, counter = 0; cin >> a >> b >> c; for (a; a <= b; a++) { if (c % a == 0) counter++; else continue; } cout << counter << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.return.add", "control_flow.return.0.add" ]
179,817
179,818
u011621222
cpp
p02398
#include <stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); d = 0; for (a; a < b; a++) { if (a % c == 0) { d++; } } printf("%d\n", d); }
#include <stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); d = 0; for (a; a <= b; a++) { if (c % a == 0) { d++; } } printf("%d\n", d); }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
179,819
179,820
u274280055
cpp
p02398
#include <iostream> int main() { int a, b, c; int count = 0; std::cin >> a, b, c; for (int i = a; i <= b; i++) { if (c % i == 0) { count++; } } std::cout << count << std::endl; }
#include <iostream> int main() { int a, b, c; int count = 0; std::cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { count++; } } std::cout << count << std::endl; }
[]
179,823
179,824
u600654568
cpp
p02398
#include <iostream> int main() { int a, b, c; int count = 0; std::cin >> a, b, c; for (int i = a; i <= b; i++) { if (c % i == 0) { count++; } } std::cout << 3 << std::endl; }
#include <iostream> int main() { int a, b, c; int count = 0; std::cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { count++; } } std::cout << count << std::endl; }
[ "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change" ]
179,825
179,824
u600654568
cpp
p02398
#include <iostream> using namespace std; #define MAX 2 int main(void) { int a, b, c; int i; int cnt = 0; cin >> a; cin >> b; cin >> c; for (i = a; i < b; i++) { if ((c % i) == 0) { cnt++; } } cout << cnt << endl; return 0; }
#include <iostream> using namespace std; #define MAX 2 int main(void) { int a, b, c; int i; int cnt = 0; cin >> a; cin >> b; cin >> c; for (i = a; i <= b; i++) { if ((c % i) == 0) { cnt++; } } cout << cnt << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,830
179,831
u188112283
cpp
p02398
#include <stdio.h> int main() { int a, b, c; int counter = 0; scanf("%d%d%d", &a, &b, &c); for (int i = 5; i <= b; i++) { if (c % i == 0) counter++; } printf("%d\n", counter); }
#include <stdio.h> int main() { int a, b, c; int counter = 0; scanf("%d%d%d", &a, &b, &c); for (int i = a; i <= b; i++) { if (c % i == 0) counter++; } printf("%d\n", counter); }
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.initializer.change" ]
179,834
179,835
u339190104
cpp
p02398
#include <iostream> using namespace std; int main(void) { int a, b, c; int x = 0; cin >> a >> b >> c; for (int i = a; i < b; i++) { if (c % i == 0) { x++; } } cout << x << endl; }
#include <iostream> using namespace std; int main(void) { int a, b, c; int x = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) { x++; } } cout << x << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,847
179,848
u777425674
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i < b + 1; i += 1) { if (c % i == 0) { count += 1; } cout << count << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i <= b; i += 1) { if (c % i == 0) { count += 1; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
179,856
179,857
u847729949
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a - 1; i <= b; i += 1) { if (c % i == 0) { count += 1; } cout << count << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i <= b; i += 1) { if (c % i == 0) { count += 1; } } cout << count << endl; return 0; }
[ "control_flow.loop.for.initializer.change", "expression.operation.binary.remove" ]
179,858
179,857
u847729949
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i < b; i += 1) { if (c % i == 0) { count += 1; } cout << count << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i <= b; i += 1) { if (c % i == 0) { count += 1; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,859
179,857
u847729949
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i < b; i += 1) { if (c % i == 0) { count += 1; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, i, count = 0; cin >> a >> b >> c; for (i = a; i <= b; i += 1) { if (c % i == 0) { count += 1; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
179,860
179,857
u847729949
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a, b, c; int i = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { i = i + 1; } } cout << i << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int i = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { i = i + 1; } } cout << i << endl; return 0; }
[]
179,861
179,862
u236518840
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a, b, c; int i; for (int x = a; x <= b; x++) { if (c % x == 0) { i = i + 1; } } cout << i << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int i = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { i = i + 1; } } cout << i << endl; return 0; }
[ "variable_declaration.value.change" ]
179,863
179,862
u236518840
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, ai, count = 0; cin >> a >> b >> c; for (ai = a; ai == b; ai++) { if (c % ai == 0) { count++; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, ai, count = 0; cin >> a >> b >> c; for (ai = a; ai <= b; ai++) { if (c % ai == 0) { count++; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
179,869
179,868
u645636715
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c, ai, count = 0; cin >> a >> b >> c; for (ai = a; ai == b + 1; ai++) { if (c % ai == 0) { count++; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, ai, count = 0; cin >> a >> b >> c; for (ai = a; ai <= b; ai++) { if (c % ai == 0) { count++; } } cout << count << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
179,870
179,868
u645636715
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; int n = 0; cin >> a, b, c; for (int i = a; i <= b; i++) { if (c % i == 0) n += 1; else continue; } cout << n << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; int n = 0; cin >> a >> b >> c; for (int i = a; i <= b; i++) { if (c % i == 0) n += 1; else continue; } cout << n << endl; return 0; }
[]
179,873
179,874
u622439120
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (x % a == 0) { count++; } else { continue; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { count++; } else { continue; } } cout << count << endl; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
179,882
179,883
u377653525
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (x % a == 0) { count++; } else { continue; } cout << count << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { count++; } else { continue; } } cout << count << endl; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
179,884
179,883
u377653525
cpp
p02398
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (c % a == 0) { count++; } else { continue; } } cout << count << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; for (int x = a; x <= b; x++) { if (c % x == 0) { count++; } else { continue; } } cout << count << endl; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
179,886
179,883
u377653525
cpp