problem_id
stringlengths 6
6
| language
stringclasses 2
values | original_status
stringclasses 3
values | original_src
stringlengths 19
243k
| changed_src
stringlengths 19
243k
| change
stringclasses 3
values | i1
int64 0
8.44k
| i2
int64 0
8.44k
| j1
int64 0
8.44k
| j2
int64 0
8.44k
| error
stringclasses 270
values | stderr
stringlengths 0
226k
|
---|---|---|---|---|---|---|---|---|---|---|---|
p02388
|
C++
|
Runtime Error
|
#include <cmath>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n = 0, n2 = 0;
// cin >> n;
n = atoi(argv[1]);
if (n < 1 || n > 100) {
return 1;
}
n2 = pow(n, 3.0);
cout << n2 << endl;
}
|
#include <cmath>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n = 0, n2 = 0;
cin >> n;
// n = atoi(argv[1]);
if (n < 1 || n > 100) {
return 1;
}
n2 = pow(n, 3.0);
cout << n2 << endl;
}
|
replace
| 8 | 10 | 8 | 10 |
-11
| |
p02388
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d", x);
y = x * x * x;
printf("%d\n", y);
return 0;
}
|
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d", &x);
y = x * x * x;
printf("%d\n", y);
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02388
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int i;
for (;;) {
cin >> i;
cout << i * i * i << endl;
}
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int i;
cin >> i;
cout << i * i * i << endl;
return 0;
}
|
replace
| 5 | 9 | 5 | 7 |
TLE
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b, menseki, syuu;
scanf("%d %d", a, b);
menseki = a * b;
syuu = a * 2 + b * 2;
printf("%d %d\n", menseki, syuu);
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b, menseki, syuu;
scanf("%d %d", &a, &b);
menseki = a * b;
syuu = a * 2 + b * 2;
printf("%d %d\n", menseki, syuu);
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", x, y);
printf("%d %d\n", x * y, 2 * (x + y));
return 0;
}
|
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
int s = x * y;
int l = 2 * (x + y);
printf("%d %d\n", s, l);
return 0;
}
|
replace
| 4 | 6 | 4 | 8 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int x = 0, y = 0;
scanf("%d %d", x, y);
printf("%d %d\n", x * y, x * 2 + y * 2);
return 0;
}
|
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int x = 0, y = 0;
scanf("%d %d", &x, &y);
printf("%d %d\n", x * y, x * 2 + y * 2);
return 0;
}
|
replace
| 5 | 6 | 5 | 6 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
using namespace std;
int main(void) {
// Your code here!
int a, b;
scanf("%d %d", a, b);
printf("%d %d\n", 2 * (a + b), a * b);
}
|
#include <stdio.h>
using namespace std;
int main(void) {
// Your code here!
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * (a + b));
}
|
replace
| 5 | 7 | 5 | 7 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", a, &b);
printf("%d ", (a + b) * 2);
printf("%d", a * b);
}
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d ", a * b);
printf("%d\n", (a + b) * 2);
}
|
replace
| 4 | 7 | 4 | 7 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, b);
printf("%d %d\n", a * b, a + a + b + b);
}
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, a + a + b + b);
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", a, b);
printf("%d\n", a * b);
printf("%d\n", 2 * a + 2 * b);
return 0;
}
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * a + 2 * b);
return 0;
}
|
replace
| 3 | 6 | 3 | 5 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int x, y, a, b;
scanf("%d", x);
scanf("%d", y);
a = x * y;
b = (x * 2) + (y * 2);
printf("%d %d\n", a, b);
}
|
#include <stdio.h>
int main() {
int x, y, a, b;
scanf("%d", &x);
scanf("%d", &y);
a = x * y;
b = (x * 2) + (y * 2);
printf("%d %d\n", a, b);
}
|
replace
| 6 | 8 | 6 | 8 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d", a);
scanf("%d", b);
printf("%d", a * b);
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d\n", a * b, 2 * a + 2 * b);
return 0;
}
|
replace
| 4 | 7 | 4 | 7 |
-11
| |
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int angka1, angka2;
scanf("%d %d", angka1, angka2);
printf("%d %d\n", angka1 * 3, (angka2 * 3) + 1);
return 0;
}
|
#include <stdio.h>
int main() {
int x1, x2, luas, luas1;
scanf("%d %d", &x1, &x2);
luas = x1 * x2;
luas1 = (x1 + x2) * 2;
printf("%d %d\n", luas, luas1);
return 0;
}
|
replace
| 4 | 7 | 4 | 9 |
-11
| |
p02389
|
Python
|
Runtime Error
|
a, b = [int(elem) for elem in input().split]
print(a * b, (a + b) * 2)
|
a, b = [int(elem) for elem in input().split()]
print(a * b, (a + b) * 2)
|
replace
| 0 | 1 | 0 | 1 |
TypeError: 'builtin_function_or_method' object is not iterable
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s283815234.py", line 1, in <module>
a, b = [int(elem) for elem in input().split]
TypeError: 'builtin_function_or_method' object is not iterable
|
p02389
|
C++
|
Runtime Error
|
#include <cstdio>
#include <cstdlib>
int main(int argc, char *argv[]) {
int x = atoi(argv[1]);
int y = atoi(argv[2]);
printf("%d %d\n", x * y, 2 * (x + y));
return 0;
}
|
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
printf("%d %d\n", x * y, 2 * (x + y));
return 0;
}
|
replace
| 0 | 5 | 0 | 5 |
-11
| |
p02389
|
Python
|
Runtime Error
|
nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(area + " " + perimeter)
|
nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(str(area) + " " + str(perimeter))
|
replace
| 3 | 4 | 3 | 4 |
TypeError: unsupported operand type(s) for +: 'int' and 'str'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s255812565.py", line 4, in <module>
print(area + " " + perimeter)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
|
p02389
|
Python
|
Runtime Error
|
line = int(input().split)
area = line[0] * line[1] % 2
peri = line[0] * 2 + line[1] * 2
print(area + " " + peri)
|
if __name__ == "__main__":
x = input()
a = int(x.split(" ")[0])
b = int(x.split(" ")[1])
print(a * b, (a + b) * 2)
|
replace
| 0 | 7 | 0 | 5 |
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s224773746.py", line 2, in <module>
line = int(input().split)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
p02389
|
Python
|
Runtime Error
|
nums = input().split()
x = nums[0] * nums[1]
y = nums[0] * 2 + nums[1] * 2
print(str(x) + " " + str(y))
|
nums = [int(e) for e in input().split()]
x = nums[0] * nums[1]
y = nums[0] * 2 + nums[1] * 2
print(str(x) + " " + str(y))
|
replace
| 0 | 1 | 0 | 1 |
TypeError: can't multiply sequence by non-int of type 'str'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s858282912.py", line 2, in <module>
x = nums[0] * nums[1]
TypeError: can't multiply sequence by non-int of type 'str'
|
p02389
|
Python
|
Runtime Error
|
a, b = [int(x) for x in input().split(" ")]
print("{} {}".format(a * b, 2 * a + 2 * b))
|
a, b = [int(x) for x in input().split()]
print("{} {}".format(a * b, 2 * a + 2 * b))
|
replace
| 0 | 1 | 0 | 1 |
0
| |
p02389
|
Python
|
Runtime Error
|
a, b = map(int, input().split())
print(a * b, 2(a + b))
|
a, b = map(int, input().split())
print(a * b, 2 * (a + b))
|
replace
| 1 | 2 | 1 | 2 |
TypeError: 'int' object is not callable
|
/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s046135584.py:2: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
print(a * b, 2(a + b))
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s046135584.py", line 2, in <module>
print(a * b, 2(a + b))
TypeError: 'int' object is not callable
|
p02389
|
Python
|
Runtime Error
|
x = int(input().split(" "))
a = x[0] * x[1]
b = x[0] + x[1] + x[0] + x[1]
print(str(a) + str(b))
|
x = input().split(" ")
a = int(x[0]) * int(x[1])
b = int(x[0]) + int(x[1]) + int(x[0]) + int(x[1])
print(str(a) + " " + str(b))
|
replace
| 0 | 4 | 0 | 4 |
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s525009394.py", line 1, in <module>
x = int(input().split(" "))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
|
p02389
|
Python
|
Runtime Error
|
a, b = map(int, input().splot())
print(str(a * b) + str(2 * a + 2 * b))
|
a, b = map(int, input().split())
print(str(a * b) + " " + str(2 * a + 2 * b))
|
replace
| 0 | 2 | 0 | 2 |
AttributeError: 'str' object has no attribute 'splot'. Did you mean: 'split'?
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s991335921.py", line 1, in <module>
a, b = map(int, input().splot())
AttributeError: 'str' object has no attribute 'splot'. Did you mean: 'split'?
|
p02389
|
Python
|
Runtime Error
|
n = input()
a, b = int(n.split())
x = a * b
y = 2 * (a + b)
print(x, y)
|
n = input()
a, b = n.split()
a = int(a)
b = int(b)
x = a * b
y = 2 * (a + b)
print(x, y)
|
replace
| 1 | 2 | 1 | 4 |
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s485129018.py", line 2, in <module>
a, b = int(n.split())
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
|
p02389
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int x = 0;
int y = 0;
scanf("%d %d", x, y);
printf("%d %d", x * y, 2 * (x + y));
return 0;
}
|
#include <stdio.h>
int main(void) {
int x = 0;
int y = 0;
scanf("%d %d", &x, &y);
printf("%d %d\n", x * y, 2 * x + 2 * y);
return 0;
}
|
replace
| 4 | 6 | 4 | 6 |
-11
| |
p02390
|
C++
|
Runtime Error
|
#include <iostream>
using namespace std;
int main() {
int S1, h, m, s;
cin >> S1;
h = S1 / 60 / 60;
m = h % h;
s = m % m;
cout << h << ':' << m << ':' << s << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int S1, h, m, s;
cin >> S1;
h = S1 / 3600;
m = S1 % 3600 / 60;
s = S1 % 60;
cout << h << ':' << m << ':' << s << endl;
return 0;
}
|
replace
| 5 | 8 | 5 | 8 |
0
| |
p02390
|
C++
|
Time Limit Exceeded
|
#include <iostream>
int main() {
int S, h = 0, m = 0;
std::cin >> S;
while (S / 3600 > 0) {
h++;
S = S - 3600;
}
while (S / 60 > 0) {
m++;
m = m - 60;
}
std::cout << h << ":" << m << ":" << S << std::endl;
}
|
#include <iostream>
int main() {
int S, h = 0, m = 0;
std::cin >> S;
h = S / 3600;
S = S % 3600;
m = S / 60;
S = S % 60;
std::cout << h << ":" << m << ":" << S << std::endl;
}
|
replace
| 4 | 12 | 4 | 8 |
TLE
| |
p02390
|
Python
|
Runtime Error
|
sec = int(input())
tmp = [sec // 3600, (sec // 60) % 60, sec % 60]
print(":".join(tmp))
|
sec = int(input())
tmp = map(str, [sec // 3600, (sec // 60) % 60, sec % 60])
print(":".join(tmp))
|
replace
| 1 | 2 | 1 | 2 |
TypeError: sequence item 0: expected str instance, int found
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s175016753.py", line 3, in <module>
print(':'.join(tmp))
TypeError: sequence item 0: expected str instance, int found
|
p02390
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int x, h, m, s;
scanf("%d", x);
h = x / 3600;
m = x % 3600 / 60;
s = x % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
|
#include <stdio.h>
int main() {
int x, h, m, s;
scanf("%d", &x);
h = x / 3600;
m = x % 3600 / 60;
s = x % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02390
|
Python
|
Runtime Error
|
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = (S % 3600) % 60
print(":".join[h, m, s])
|
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = (S % 3600) % 60
print(str(h) + ":" + str(m) + ":" + str(s))
|
replace
| 4 | 5 | 4 | 5 |
TypeError: 'builtin_function_or_method' object is not subscriptable
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s528957896.py", line 5, in <module>
print(':'.join[h, m, s])
TypeError: 'builtin_function_or_method' object is not subscriptable
|
p02390
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int s, m, h;
scanf("%d", s);
h = s / 3600;
m = (s - 3600 * h) / 60;
s -= 3600 * h + 60 * m;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
|
#include <stdio.h>
int main() {
int s, h, m;
scanf("%d", &s);
h = (int)s / 3600;
m = (int)(s - 3600 * h) / 60;
s = s - (int)(3600 * h + 60 * m);
printf("%d:%d:%d\n", h, m, s);
return 0;
}
|
replace
| 2 | 7 | 2 | 7 |
-11
| |
p02390
|
Python
|
Runtime Error
|
sho = int(input()) // 60
amari = int(input()) % 60
h = sho // 60
m = sho % 60
s = amari
print("{}:{}:{}".format(h, m, s))
|
sho, s = divmod(int(input()), 60)
h, m = divmod(sho, 60)
print("{}:{}:{}".format(h, m, s))
|
replace
| 0 | 7 | 0 | 2 |
EOFError: EOF when reading a line
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s320807078.py", line 2, in <module>
amari = int(input()) % 60
EOFError: EOF when reading a line
|
p02390
|
Python
|
Runtime Error
|
x = input()
s = x % 60
x //= 60
m = x % 60
x //= 60
print("{}:{}:{}".format(x, m, s))
|
x = int(input())
s = x % 60
x //= 60
m = x % 60
x //= 60
print("{}:{}:{}".format(x, m, s))
|
replace
| 0 | 1 | 0 | 1 |
TypeError: not all arguments converted during string formatting
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s450465833.py", line 2, in <module>
s = x % 60
TypeError: not all arguments converted during string formatting
|
p02390
|
C++
|
Runtime Error
|
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int h, m, s;
int main() {
cin >> s;
h = s / 3600;
m = (s % 3600) / 60;
s = s % 60;
printf("%s:%s:%s", h, m, s);
return 0;
}
|
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int h, m, s;
int main() {
cin >> s;
h = s / 3600;
m = (s % 3600) / 60;
s = s % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
|
replace
| 14 | 15 | 14 | 15 |
-11
| |
p02391
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
scanf("%d", b);
if (a < b)
printf("a < b\n");
if (a > b)
printf("a > b\n");
if (a == b)
printf("a == b\n");
return 0;
}
|
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
if (a < b)
printf("a < b\n");
if (a > b)
printf("a > b\n");
if (a == b)
printf("a == b\n");
return 0;
}
|
replace
| 6 | 7 | 6 | 7 |
-11
| |
p02391
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", a, b);
if (a < b) {
printf("a < b\n");
} else {
if (a > b) {
printf("a > b\n");
} else {
if (a == b) {
printf("a == b\n");
}
}
}
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
if (a < b) {
printf("a < b\n");
} else {
if (a > b) {
printf("a > b\n");
} else {
if (a == b) {
printf("a == b\n");
}
}
}
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02391
|
Python
|
Runtime Error
|
string = input()
a, b = input().split(" ")
if a > b:
print("a > b")
elif a < b:
print("a < b")
else:
print("a == b")
|
string = input()
a, b = map(int, (string.split(" ")))
if a > b:
print("a > b")
elif a < b:
print("a < b")
else:
print("a == b")
|
replace
| 1 | 2 | 1 | 2 |
EOFError: EOF when reading a line
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02391/Python/s667691498.py", line 2, in <module>
a, b = input().split(' ')
EOFError: EOF when reading a line
|
p02391
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", a, b);
if (a > b) {
printf("a > b\n");
}
if (a < b) {
printf("a < b\n");
}
if (a == b) {
printf("a == b\n");
}
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d\n", &a, &b);
if (a > b) {
printf("a > b\n");
}
if (a < b) {
printf("a < b\n");
}
if (a == b) {
printf("a == b\n");
}
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02391
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
char s;
if (a > b)
s = '>';
else if (a == b)
s = '=';
else
s = '<';
if (s != '=')
printf("a %s b\n", s);
else
printf("a == b\n");
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
char s;
if (a > b)
s = '>';
else if (a == b)
s = '=';
else
s = '<';
if (s != '=')
printf("a %c b\n", s);
else
printf("a == b\n");
return 0;
}
|
replace
| 13 | 14 | 13 | 14 |
-11
| |
p02391
|
C++
|
Runtime Error
|
#include <bits/stdc++.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("a %s b\n", a, (a < b) ? "<" : (a == b) ? "==" : ">", b);
}
|
#include <bits/stdc++.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("a %s b\n", (a < b) ? "<" : (a == b) ? "==" : ">");
}
|
replace
| 7 | 8 | 7 | 8 |
-11
| |
p02391
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b;
for (;;) {
cin >> a >> b;
if (a < b) {
cout << "a < b" << endl;
} else if (a > b) {
cout << "a > b" << endl;
} else if (a == b) {
cout << "a == b" << endl;
}
}
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a < b) {
cout << "a < b" << endl;
} else if (a > b) {
cout << "a > b" << endl;
} else if (a == b) {
cout << "a == b" << endl;
}
return 0;
}
|
replace
| 4 | 13 | 4 | 11 |
TLE
| |
p02391
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", a, b);
if (a > b) {
printf("a>b\n");
} else if (a < b) {
printf("a<b\n");
} else {
printf("a==b\n");
}
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
if (a >= -1000 && a <= 1000 && b >= -1000 && b <= 1000) {
if (a > b) {
printf("a > b\n");
} else if (a < b) {
printf("a < b\n");
} else {
printf("a == b\n");
}
}
return 0;
}
|
replace
| 3 | 10 | 3 | 12 |
-11
| |
p02392
|
Python
|
Runtime Error
|
a, b, c = map(int, input.split())
if a < b < c:
print("Yes")
else:
print("No")
|
a, b, c = map(int, input().split())
if a < b < c:
print("Yes")
else:
print("No")
|
replace
| 0 | 1 | 0 | 1 |
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02392/Python/s498567988.py", line 1, in <module>
a, b, c = map(int, input.split())
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
|
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && b < c)
{
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c)
{
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02392
|
Python
|
Runtime Error
|
d = input()
a, b, c = map(d.split())
if (a < b) and (b < c):
print("Yes")
else:
print("No")
|
d = input()
a, b, c = map(int, d.split())
if (a < b) and (b < c):
print("Yes")
else:
print("No")
|
replace
| 1 | 3 | 1 | 2 |
TypeError: map() must have at least two arguments.
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02392/Python/s458135705.py", line 2, in <module>
a, b, c = map(d.split())
TypeError: map() must have at least two arguments.
|
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && a < c && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && a < c && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
replace
| 5 | 6 | 5 | 6 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", a & a, &b, &c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <cstdio>
int main() {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
}
|
#include <cstdio>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d", a);
scanf("%d", b);
scanf("%d", c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
replace
| 3 | 6 | 3 | 6 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d", a);
scanf("%d", b);
scanf("%d", c);
if (a < b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
replace
| 3 | 7 | 3 | 7 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
replace
| 6 | 7 | 6 | 7 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <cstdio>
int main() {
// 入力
int a, b, c;
std::scanf("%d%d%d", a, b, c);
if (a < b && b < c) {
std::printf("Yes");
} else {
std::printf("No");
}
std::printf("\n");
return 0;
}
|
#include <cstdio>
int main() {
// 入力
int a, b, c;
std::scanf("%d%d%d", &a, &b, &c);
if (a < b && b < c) {
std::printf("Yes");
} else {
std::printf("No");
}
std::printf("\n");
return 0;
}
|
replace
| 5 | 6 | 5 | 6 |
-11
| |
p02392
|
C++
|
Runtime Error
|
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
if (a < b) {
if (b < c) {
cout << "Yes" << endl;
exit(1);
}
}
cout << "No" << endl;
return 0;
}
|
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
if (a < b) {
if (b < c) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
|
replace
| 11 | 12 | 11 | 12 |
1
| |
p02392
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", a, b, c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, tmp;
cin >> a >> b >> c;
while (!(a < b && b < c)) {
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
if (b > c) {
tmp = b;
b = c;
c = tmp;
}
}
cout << a << " " << b << " " << c << endl;
;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, tmp;
cin >> a >> b >> c;
while (!(a <= b && b <= c)) {
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
if (b > c) {
tmp = b;
b = c;
c = tmp;
}
}
cout << a << " " << b << " " << c << endl;
;
return 0;
}
|
replace
| 7 | 8 | 7 | 8 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
// ポインタ渡しによる解法
void swap(int *a, int *b);
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(&a, &b);
if (b > c)
swap(&b, &c);
if (a > b)
swap(&a, &b);
cout << a << " " << b << " " << c << endl;
while (1) {
}
return 0;
}
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
|
#include <iostream>
using namespace std;
// ポインタ渡しによる解法
void swap(int *a, int *b);
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(&a, &b);
if (b > c)
swap(&b, &c);
if (a > b)
swap(&a, &b);
cout << a << " " << b << " " << c << endl;
return 0;
}
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
|
delete
| 23 | 26 | 23 | 23 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int t = 0;
loop:;
t = 0;
if (a > b) {
t = t + 1;
swap(a, b);
}
if (b > c) {
t = t + 1;
swap(a, b);
}
if (t != 0) {
goto loop;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int t = 0;
loop:;
t = 0;
if (a > b) {
t = t + 1;
swap(a, b);
}
if (b > c) {
t = t + 1;
swap(b, c);
}
if (t != 0) {
goto loop;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
replace
| 16 | 17 | 16 | 17 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <cstdio>
int main() {
int x, y, z;
scanf("%d %d %d", &x, &y, &z);
int a[3] = {x, y, z}, buff = 0;
while (1) {
for (int i = 0; i < 3; i++) {
for (int j = i; j < 3; j++) {
if (a[i] > a[j]) {
buff = a[j];
a[j] = a[i];
a[i] = buff;
}
}
}
if (a[0] < a[1] && a[1] < a[2])
break;
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
}
|
#include <cstdio>
int main() {
int x, y, z;
scanf("%d %d %d", &x, &y, &z);
int a[3] = {x, y, z}, buff = 0;
while (1) {
for (int i = 0; i < 3; i++) {
for (int j = i; j < 3; j++) {
if (a[i] > a[j]) {
buff = a[j];
a[j] = a[i];
a[i] = buff;
}
}
}
if (a[0] <= a[1] && a[1] <= a[2])
break;
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
}
|
replace
| 18 | 19 | 18 | 19 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, temp;
cin >> a >> b >> c;
while (1) {
if (a < b && b < c)
break;
else if (b < a) {
temp = b;
b = a;
a = temp;
} else if (c < b) {
temp = c;
c = b;
b = temp;
} else if (c < a) {
temp = c;
c = a;
a = temp;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, temp;
cin >> a >> b >> c;
while (1) {
if ((a < b && b < c) || (a == b && b < c) || (a == b && b == c))
break;
else if (b < a) {
temp = b;
b = a;
a = temp;
} else if (c < b) {
temp = c;
c = b;
b = temp;
} else if (c < a) {
temp = c;
c = a;
a = temp;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
replace
| 9 | 10 | 9 | 10 |
TLE
| |
p02393
|
C++
|
Runtime Error
|
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a;
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end());
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end());
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <algorithm>
#include <iostream>
int main() {
int a[3];
for (int i = 0; i < 3; ++i) {
std::cin >> a[i];
}
std::sort(a, a + 3);
for (int i = 0; i < 3; --i) {
std::cout << a[i] << std::endl;
}
return 0;
}
|
#include <algorithm>
#include <iostream>
int main() {
int a[3];
for (int i = 0; i < 3; ++i) {
std::cin >> a[i];
}
std::sort(a, a + 3);
std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl;
return 0;
}
|
replace
| 8 | 11 | 8 | 9 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
int temp;
cin >> a >> b >> c;
while (1) {
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (a < b && b < c) {
cout << a << " " << b << " " << c << endl;
return 0;
}
}
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
int temp;
cin >> a >> b >> c;
while (1) {
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (a <= b && b <= c) {
cout << a << " " << b << " " << c << endl;
return 0;
}
}
return 0;
}
|
replace
| 25 | 26 | 25 | 26 |
TLE
| |
p02393
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int i, j, a[3];
scanf("%d %d %d", a[0], a[1], a[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (a[j - 1] > a[j]) {
int temp = a[j];
a[j] = a[j - 1];
a[j - 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
}
|
#include <stdio.h>
int main(void) {
int i, j, a[3];
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (a[j - 1] > a[j]) {
int temp = a[j];
a[j] = a[j - 1];
a[j - 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
}
|
replace
| 5 | 6 | 5 | 6 |
-11
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <stdio.h>
int main() {
int a, b, c, m;
scanf("%d%d%d", &a, &b, &c);
while (1) {
if (a < b && b < c) {
break;
}
if (a > b) {
m = b;
b = a;
a = m;
}
if (b > c) {
m = c;
c = b;
b = m;
}
if (a > c) {
m = c;
c = a;
a = m;
}
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
#include <stdio.h>
int main() {
int a, b, c, m;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
m = b;
b = a;
a = m;
}
if (b > c) {
m = c;
c = b;
b = m;
}
if (a > b) {
m = b;
b = a;
a = m;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
replace
| 6 | 25 | 6 | 20 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;
int main() {
int a[3];
for (int i = 0; i < 3; i++)
cin >> a[i];
sort(a, a + 3);
for (int e : a)
cout << e << " ";
cout << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;
int main() {
int a[3];
for (int i = 0; i < 3; i++)
cin >> a[i];
sort(a, a + 3);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}
|
replace
| 13 | 16 | 13 | 14 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c;
while (1) {
if (a < b && b < c && a < c)
break;
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a > c) {
d = a;
a = c;
c = d;
}
}
cout << a << ' ' << b << ' ' << c << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c;
while (1) {
if (a <= b && b <= c && a <= c)
break;
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a > c) {
d = a;
a = c;
c = d;
}
}
cout << a << ' ' << b << ' ' << c << endl;
return 0;
}
|
replace
| 6 | 7 | 6 | 7 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <algorithm>
#include <cctype>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
for (;;) {
if (a < b && b < c) {
break;
}
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
#include <algorithm>
#include <cctype>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
for (;;) {
if (a <= b && b <= c) {
break;
}
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
replace
| 11 | 12 | 11 | 12 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, x, y;
cin >> a >> b >> c;
while (!(a < b && b < c)) {
if (a > b) {
x = a;
y = b;
a = y;
b = x;
}
if (b > c) {
x = b;
y = c;
b = y;
c = x;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c, x, y;
cin >> a >> b >> c;
while (!(a <= b && b <= c)) {
if (a > b) {
x = a;
y = b;
a = y;
b = x;
}
if (b > c) {
x = b;
y = c;
b = y;
c = x;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
replace
| 6 | 7 | 6 | 7 |
TLE
| |
p02393
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
int temp;
cin >> a;
cin >> b;
cin >> c;
while (!(a < b && b < c)) {
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
int temp;
cin >> a;
cin >> b;
cin >> c;
while (!(a <= b && b <= c)) {
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
}
cout << a << " " << b << " " << c << endl;
return 0;
}
|
replace
| 10 | 11 | 10 | 11 |
TLE
| |
p02393
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int i, j;
int a[3];
int temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 2; j >= i; j--) {
if (a[j] < a[j - 1]) {
temp = a[j];
a[j] = a[j - 1];
a[j - 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
}
|
#include <stdio.h>
int main(void) {
int i, j;
int a[3];
int temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 2; j > i; j--) {
if (a[j] < a[j - 1]) {
temp = a[j];
a[j] = a[j - 1];
a[j - 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
}
|
replace
| 11 | 12 | 11 | 12 |
0
| |
p02393
|
Python
|
Runtime Error
|
data = [int(i) for i in input.split()]
out = " ".join([str(i) for i in sorted(data)])
print(out)
|
data = [int(i) for i in input().split()]
out = " ".join([str(i) for i in sorted(data)])
print(out)
|
replace
| 0 | 1 | 0 | 1 |
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s535290436.py", line 1, in <module>
data = [int(i) for i in input.split()]
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
|
p02393
|
Python
|
Runtime Error
|
print(*sorted.map(int, input().split()))
|
print(*sorted(map(int, input().split())))
|
replace
| 0 | 1 | 0 | 1 |
AttributeError: 'builtin_function_or_method' object has no attribute 'map'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s363098812.py", line 1, in <module>
print(*sorted.map(int, input().split()))
AttributeError: 'builtin_function_or_method' object has no attribute 'map'
|
p02393
|
Python
|
Runtime Error
|
num = list(map(int, input().split(" ")))
num.sort()
print(" ".join(map(int, num)))
|
num = list(map(int, input().split(" ")))
num.sort()
print(" ".join(map(str, num)))
|
replace
| 2 | 3 | 2 | 3 |
TypeError: sequence item 0: expected str instance, int found
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s464700171.py", line 3, in <module>
print(' '.join(map(int, num)))
TypeError: sequence item 0: expected str instance, int found
|
p02393
|
Python
|
Runtime Error
|
array = input().split().sort()
for i in array:
print(i, end="")
|
l = list(map(int, input().split()))
l.sort()
print(l[0], l[1], l[2])
|
replace
| 0 | 4 | 0 | 3 |
TypeError: 'NoneType' object is not iterable
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s939623185.py", line 3, in <module>
for i in array:
TypeError: 'NoneType' object is not iterable
|
p02393
|
Python
|
Runtime Error
|
a = list(map(int, input().split()))
[print(*i) for i in a.sort()]
|
a = list(map(int, input().split()))
a.sort()
print(" ".join(map(str, a)))
|
replace
| 1 | 2 | 1 | 3 |
TypeError: 'NoneType' object is not iterable
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s980569282.py", line 2, in <module>
[print(*i) for i in a.sort()]
TypeError: 'NoneType' object is not iterable
|
p02393
|
C++
|
Time Limit Exceeded
|
#include <cstdio>
int main() {
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
while (!(a < b && b < c)) {
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
#include <cstdio>
int main() {
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a;
a = b;
b = t;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
replace
| 6 | 17 | 6 | 20 |
TLE
| |
p02393
|
C++
|
Runtime Error
|
#include <iostream>
int main(void) {
int a, b, c, x;
scanf("%d%d%d", a, b, c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
#include <iostream>
int main(void) {
int a, b, c, x;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02393
|
Python
|
Runtime Error
|
num_sorted = list(map(int, input().split()))
print(
"{} {} {}".format(num_sorted.sort()[0], num_sorted.sort()[1], num_sorted.sort()[2])
)
|
num_sorted = list(map(int, input().split()))
num_sorted.sort()
print("{} {} {}".format(num_sorted[0], num_sorted[1], num_sorted[2]))
|
replace
| 1 | 4 | 1 | 3 |
TypeError: 'NoneType' object is not subscriptable
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s171518153.py", line 2, in <module>
print("{} {} {}".format(num_sorted.sort()[0], num_sorted.sort()[1], num_sorted.sort()[2]))
TypeError: 'NoneType' object is not subscriptable
|
p02394
|
C++
|
Runtime Error
|
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
if (w < 0 || h < 0 || r < 0)
return -1;
cin >> w >> h >> x >> y >> r;
if ((x <= (w - r)) && (x >= r) && (y <= (h - r)) && (y >= r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
|
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
// Junsang****if( w<0 || h<0 || r<0) return -1;
cin >> w >> h >> x >> y >> r;
if ((x <= (w - r)) && (x >= r) && (y <= (h - r)) && (y >= r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
|
replace
| 5 | 7 | 5 | 6 |
255
| |
p02394
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int check(int a, int b, int r) {
if (0 <= b - r && b + r <= a) {
return 1;
} else
return 0;
}
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
char flag = 0;
flag = flag + check(W, x, r) + check(H, y, r);
if (flag == 2) {
cout << "Yes";
} else {
cout << "No";
}
cout << endl;
string hoge;
while (hoge != "finir") {
cin >> hoge;
}
}
|
#include <iostream>
using namespace std;
int check(int a, int b, int r) {
if (0 <= b - r && b + r <= a) {
return 1;
} else
return 0;
}
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
char flag = 0;
flag = flag + check(W, x, r) + check(H, y, r);
if (flag == 2) {
cout << "Yes";
} else {
cout << "No";
}
cout << endl;
}
|
delete
| 21 | 26 | 21 | 21 |
TLE
| |
p02394
|
C++
|
Runtime Error
|
#include <iostream>
using namespace std;
#include <stdio.h>
int main() {
int u[100][100] = {0}, a[5] = {0}, i, o, j = 0;
for (i = 0; i < 5; i++)
cin >> a[i];
for (i = 0; i < a[0]; i++) {
for (o = 0; o < a[1]; o++) {
u[i][o] = 1;
}
}
for (i = a[2] - a[4]; i < a[2] + a[4]; i++) {
for (o = a[3] - a[4]; o < a[3] + a[4]; o++) {
u[i][o] += 1;
if (u[i][o] == 1)
j = 1;
}
}
if (j == 1)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
|
#include <iostream>
using namespace std;
#include <stdio.h>
int main() {
int u[100][100] = {0}, a[5] = {0}, i, o, j = 0;
for (i = 0; i < 5; i++)
cin >> a[i];
if (a[0] < a[4] || a[1] < a[4]) {
cout << "No" << endl;
return 0;
}
for (i = 0; i < a[0]; i++) {
for (o = 0; o < a[1]; o++) {
u[i][o] = 1;
}
}
for (i = a[2] - a[4]; i < a[2] + a[4]; i++) {
for (o = a[3] - a[4]; o < a[3] + a[4]; o++) {
u[i][o] += 1;
if (u[i][o] == 1)
j = 1;
}
}
if (j == 1)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
|
insert
| 7 | 7 | 7 | 11 |
0
| |
p02394
|
C++
|
Runtime Error
|
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
|
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02394
|
C++
|
Runtime Error
|
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (0 <= x - r && W >= x + r && 0 <= y - r && H >= y + r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 <= x - r && W >= x + r && 0 <= y - r && H >= y + r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
|
replace
| 3 | 4 | 3 | 4 |
-11
| |
p02394
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (x - r < 0 || x + r > W || y - r < 0 || y + r > H) {
printf("No\n");
} else {
printf("Yes\n");
}
}
|
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r < 0 || x + r > W || y - r < 0 || y + r > H) {
printf("No\n");
} else {
printf("Yes\n");
}
}
|
replace
| 4 | 5 | 4 | 5 |
-11
| |
p02394
|
C++
|
Runtime Error
|
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int nW, nH, nX, nY, nR;
cin >> nW >> nH >> nX >> nY >> nR;
if ((nX + nR <= nW) && (nX - nR >= 0) && (nY + nR <= nH) && (nY - nR >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
system("pause");
return 0;
}
|
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int nW, nH, nX, nY, nR;
cin >> nW >> nH >> nX >> nY >> nR;
if ((nX + nR <= nW) && (nX - nR >= 0) && (nY + nR <= nH) && (nY - nR >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
/*system("pause");*/
return 0;
}
|
replace
| 12 | 13 | 12 | 13 |
0
|
sh: 1: pause: not found
|
p02394
|
C++
|
Runtime Error
|
#include <bits/stdc++.h>
using namespace std;
int W, H, x, y, r;
int main() {
scanf("%d%d%d%d%d", W, H, x, y, r);
if (x >= r && x <= W - r && y >= r && y <= H - r) {
printf("Yes\n");
} else {
printf("No\n");
}
}
|
#include <bits/stdc++.h>
using namespace std;
int W, H, x, y, r;
int main() {
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x >= r && x <= W - r && y >= r && y <= H - r) {
printf("Yes\n");
} else {
printf("No\n");
}
}
|
replace
| 7 | 8 | 7 | 8 |
-11
| |
p02396
|
C++
|
Runtime Error
|
#include "iostream"
#include "string"
int main() {
int temp = 1;
int Num[512];
int i = 0;
while (temp != 0) {
std::cin >> temp;
Num[i] = temp;
i++;
}
i = 0;
while (Num[i] != 0) {
std::cout << "Case " << i + 1 << ": " << Num[i] << std::endl;
i++;
}
return 0;
}
|
#include "iostream"
#include "string"
int main() {
int temp = 1;
int Num[10240];
int i = 0;
while (temp != 0) {
std::cin >> temp;
Num[i] = temp;
i++;
}
i = 0;
while (Num[i] != 0) {
std::cout << "Case " << i + 1 << ": " << Num[i] << std::endl;
i++;
}
return 0;
}
|
replace
| 5 | 6 | 5 | 6 |
0
| |
p02396
|
C++
|
Time Limit Exceeded
|
#include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
printf("Case%d;%d\n", i, x);
}
}
|
#include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
if (x == 0) {
break;
}
if (x > 1 && 10000 < x) {
break;
}
printf("Case %d: %d\n", i, x);
}
}
|
replace
| 6 | 7 | 6 | 13 |
TLE
| |
p02396
|
C++
|
Time Limit Exceeded
|
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
int i, in;
i = 0;
while (true) {
i++;
cin >> in;
if (i == 0)
break;
printf("Case %d: %d\n", i, in);
}
return 0;
}
|
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
int i, in;
i = 0;
while (true) {
i++;
cin >> in;
if (in == 0)
break;
printf("Case %d: %d\n", i, in);
}
return 0;
}
|
replace
| 13 | 14 | 13 | 14 |
TLE
| |
p02396
|
C++
|
Runtime Error
|
#include <stdio.h>
int main(void) {
int i, a[7];
for (i = 0; i < 7; i++)
scanf("%d", a[i]);
for (i = 0; i < 7; i++)
printf("Case %d: %d", i + 1, a[i]);
return 0;
}
|
#include <stdio.h>
int main(void) {
int i = 0, x;
scanf("%d", &x);
while (x != 0) {
printf("Case %d: %d\n", i + 1, x);
scanf("%d", &x);
i++;
}
return 0;
}
|
replace
| 2 | 7 | 2 | 9 |
-11
| |
p02396
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
cin >> x;
while (x != 0) {
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
cin >> x;
while (x != 0) {
cout << "Case"
<< " " << i++ << ":"
<< " " << x << endl;
cin >> x;
}
return 0;
}
|
replace
| 6 | 8 | 6 | 10 |
TLE
| |
p02396
|
C++
|
Runtime Error
|
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> x(10000);
int idx = 0;
while (true) {
cin >> x.at(idx);
if (x.at(idx) == 0)
break;
idx++;
}
idx = 0;
while (x.at(idx) != 0) {
cout << "Case " << idx + 1 << ": " << x.at(idx) << endl;
idx++;
}
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> x(10001);
int idx = 0;
while (true) {
cin >> x.at(idx);
if (x.at(idx) == 0)
break;
idx++;
}
idx = 0;
while (x.at(idx) != 0) {
cout << "Case " << idx + 1 << ": " << x.at(idx) << endl;
idx++;
}
}
|
replace
| 4 | 5 | 4 | 5 |
0
| |
p02396
|
C++
|
Runtime Error
|
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int x[100], i = 0, j;
while (1) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
}
i++;
}
for (j = 1; j < i + 1; j++) {
printf("Case %d: %d\n", j, x[j - 1]);
}
return 0;
}
|
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int x[10000], i = 0, j;
while (1) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
}
i++;
}
for (j = 1; j < i + 1; j++) {
printf("Case %d: %d\n", j, x[j - 1]);
}
return 0;
}
|
replace
| 4 | 5 | 4 | 5 |
0
| |
p02396
|
C++
|
Runtime Error
|
#include <cstdio>
int main() {
int id, data;
id = 1;
while (true) {
scanf("%d", data);
if (data == 0)
break;
printf("Case %d: %d\n", id, data);
++id;
}
return 0;
};
|
#include <cstdio>
int main() {
int id, data;
id = 1;
while (true) {
scanf("%d", &data);
if (data == 0)
break;
printf("Case %d: %d\n", id, data);
++id;
}
return 0;
};
|
replace
| 5 | 6 | 5 | 6 |
-11
| |
p02396
|
Python
|
Runtime Error
|
i = 1
while True:
x = int(input)
if x == 0:
break
print(f"Case {i}: {x}")
i += 1
|
i = 1
while True:
x = int(input())
if x == 0:
break
print(f"Case {i}: {x}")
i += 1
|
replace
| 2 | 3 | 2 | 3 |
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s606427724.py", line 3, in <module>
x = int(input)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
p02396
|
Python
|
Runtime Error
|
c = 1
while True:
print("Case {0}: {1}".format(c, input()))
c += 1
|
c = 1
while True:
x = int(input())
if x == 0:
break
print("Case {0}: {1}".format(c, x))
c += 1
|
replace
| 2 | 3 | 2 | 6 |
EOFError: EOF when reading a line
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s008264252.py", line 3, in <module>
print("Case {0}: {1}".format(c, input()))
EOFError: EOF when reading a line
|
p02396
|
Python
|
Runtime Error
|
for i in range():
inpu = int(input())
if inpu == 0:
break
else:
print("Case %d: %d" % (i, inpu))
|
for i in range(1, 10001):
inpu = int(input())
if inpu == 0:
break
else:
print("Case %d: %d" % (i, inpu))
|
replace
| 0 | 1 | 0 | 1 |
TypeError: range expected at least 1 argument, got 0
|
Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s685911962.py", line 1, in <module>
for i in range():
TypeError: range expected at least 1 argument, got 0
|
p02396
|
C++
|
Time Limit Exceeded
|
#include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int x = 0;
int i = 1;
while (1) {
CI x;
CO "case " << i << ":" << x E++ i;
}
}
|
#include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int x = 0;
int i = 1;
while (1) {
CI x;
if (x == 0) {
return 0;
}
CO "Case " << i << ": " << x E++ i;
}
}
|
replace
| 13 | 14 | 13 | 17 |
TLE
| |
p02396
|
C++
|
Time Limit Exceeded
|
#include <iostream>
using namespace std;
int main() {
int x, cnt = 0;
while (1) {
cin >> x;
if (x = 0) {
return 0;
}
cnt++;
cout << "Case"
<< " " << cnt << ": " << x << endl;
}
}
|
#include <iostream>
using namespace std;
int main() {
int x, cnt = 0;
while (1) {
cin >> x;
if (x == 0) {
return 0;
}
cnt++;
cout << "Case"
<< " " << cnt << ": " << x << endl;
}
}
|
replace
| 6 | 7 | 6 | 7 |
TLE
| |
p02396
|
C++
|
Runtime Error
|
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a[10000];
int total = 0;
for (int i = 0; i <= 10000; i++) {
int tmp;
cin >> tmp;
if (tmp < 0 || tmp >= 10000)
return -1;
if (tmp == 0) {
break;
}
a[i] = tmp;
total++;
}
for (int j = 0; j <= total - 1; j++)
cout << "Case " << j + 1 << ": " << a[j] << endl;
return 0;
}
|
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a[10000];
int total = 0;
for (int i = 0; i <= 10000; i++) {
int tmp;
cin >> tmp;
// if(tmp < 0 || tmp >= 10000) return -1;
if (tmp == 0) {
break;
}
a[i] = tmp;
total++;
}
for (int j = 0; j <= total - 1; j++)
cout << "Case " << j + 1 << ": " << a[j] << endl;
return 0;
}
|
replace
| 10 | 12 | 10 | 11 |
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.