buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
a, b = gets.split(" ")
print a.to_i*b.to_i," ",2 * (a.to_i + b.to_i), "?\n" | a, b = gets.split(" ")
print a.to_i*b.to_i," ",2 * (a.to_i + b.to_i)
puts | [["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 62], ["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 44], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 22]] | 4 | 41 |
x, y = gets.split.map(&:to_i)
printf("%d : %d\n", x* y, x * 2 + y *2) | x, y = gets.split.map(&:to_i)
printf("%d %d\n", x* y, x * 2 + y *2) | [["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 32 |
a,b = gets.split.map(&:to_i)
printf("%d %d?\n", a*b, 2*a+2*b) | a,b = gets.split.map(&:to_i)
printf("%d %d\n", a*b, 2*a+2*b) | [["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 32 |
inputs = gets.chomp
width, height = inputs.split
width = width.to_i
height = height.to_i
area = width * height
length = (width + height) * 2
puts "#{area}\s#{height}" | inputs = gets.chomp
width, height = inputs.split
width = width.to_i
height = height.to_i
area = width * height
length = (width + height) * 2
puts "#{area}\s#{length}" | [["-", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22]] | 4 | 46 |
i = gets.split
puts "#{i[0].to_i+i[1].to_i} #{2*(i[0].to_i+i[1].to_i)}" | i = gets.split
puts "#{i[0].to_i*i[1].to_i} #{2*(i[0].to_i+i[1].to_i)}" | [["-", 3, 4, 0, 557, 0, 284, 0, 738, 17, 72], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 48]] | 4 | 43 |
x,y = gets.split(" ").to_i
puts (x*y).to_s + " " + (2*(x+y)).to_s | x,y = gets.split(" ").map(&:to_i)
puts (x*y).to_s + " " + (2*(x+y)).to_s | [["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 0, 493, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 67], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 493, 0, 662, 12, 652, 3, 4, 0, 25]] | 4 | 38 |
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b = tokens[0], tokens[1]
x = a * b / 2
y = (a + b) * 2
puts "#{x} #{y}"
end
end | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b = tokens[0], tokens[1]
x = a * b
y = (a + b) * 2
puts "#{x} #{y}"
end
end | [["-", 0, 89, 8, 170, 0, 662, 12, 738, 17, 85], ["-", 0, 89, 8, 170, 0, 662, 12, 738, 12, 612]] | 4 | 66 |
s=1
r=0
a=gets.split(" ").each do |n|
s*=n.to_i
r+=n.to_i
end
p s.to_s + " " + (2*r).to_s | s=1
r=0
a=gets.split(" ").each do |n|
s*=n.to_i
r+=n.to_i
end
puts s.to_s + " " + (2*r).to_s | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 49 |
/*
* kuki.cpp
*
* Created on: 2018/04/19
* Author: J01003
*/
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << a + b + a + b << endl;
return 0;
}
| /*
* kuki.cpp
*
* Created on: 2018/04/19
* Author: J01003
*/
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << a + b + a + b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 47 |
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d\n", a * b);
printf("%d\n", 2 * (a + b));
return 0;
}
| #include <stdio.h>
int main(void) {
// Your code here!
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d\ ", a * b);
printf("%d\n", 2 * (a + b));
return 0;
}
| [["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 64 |
#include <cstring>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
#define INF 900000000
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << endl;
cout << a + a + b + b << endl;
return 0;
}
| #include <cstring>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
#define INF 900000000
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << " " << a + a + b + b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 60 |
#include <iostream>
using namespace std;
int main() {
int a, b;
std::cin >> a >> b;
cout << a * b << "" << 2 * a + 2 * b << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b;
std::cin >> a >> b;
cout << a * b << " " << 2 * a + 2 * b << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 47 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a, b;
cout << a * b << a + a + b + b << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << a + a + b + b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 42 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a, b;
cout << a * b << " " << 2 * a + 2 * b << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << 2 * a + 2 * b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 46 |
#include <cstdio>
int main() {
int a, b;
scanf("%d %d", &a, &b);
int c = 2 * (a + b);
int d = a * b;
printf("%d %d\n", c, d);
return 0;
}
| #include <cstdio>
int main() {
int a, b;
scanf("%d %d", &a, &b);
int c = 2 * (a + b);
int d = a * b;
printf("%d %d\n", d, c);
return 0;
}
| [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a >> b;
cout << a * b << 2 * (a + b) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a >> b;
cout << a * b << ' ' << 2 * (a + b) << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 43 |
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
printf("%d\n", x * y);
printf("%d\n", 2 * x + 2 * y);
return 0;
}
| #include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
printf("%d ", x * y);
printf("%d\n", 2 * x + 2 * y);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 58 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a, b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 46 |
#include <iostream>
int main() {
int n, m;
std::cin >> n >> m;
std::cout << n * m << "" << 2 * (n + m) << std::endl;
return 0;
}
| #include <iostream>
int main() {
int n, m;
std::cin >> n >> m;
std::cout << n * m << " " << 2 * (n + m) << std::endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 47 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << 2 * (a + b) << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << ' ' << 2 * (a + b) << endl;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 39 |
#include <iostream>
using namespace std;
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << (a * b) * 2 << std::endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << (a + b) * 2 << std::endl;
return 0;
}
| [["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72]] | 1 | 52 |
#include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << (a + b) * 2 << std::endl;
return 0;
}
| #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << (a + b) * 2 << std::endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 44 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << b * a << endl;
cout << a + a + b + b << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << b * a << " " << a + a + b + b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int area, cricum;
area = a * b;
cricum = (2 * a) + (2 * b);
cout << area << cricum << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int area, cricum;
area = a * b;
cricum = (2 * a) + (2 * b);
cout << area << " " << cricum << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 59 |
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d¥n", a * b, (a + b) * 2);
return 0;
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, (a + b) * 2);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 48 |
#include <iostream>
using namespace std;
int a, b, peri, area;
int main() {
cin >> a >> b;
area = a * b;
peri = (a + b) * 2;
cout << area << peri << endl;
}
| #include <iostream>
using namespace std;
int a, b, peri, area;
int main() {
cin >> a >> b;
area = a * b;
peri = (a + b) * 2;
cout << area << ' ' << peri << endl;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 51 |
#include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x;
cin >> y;
cout << x * y << x + x + y + y << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x;
cin >> y;
cout << x * y << ' ' << x + x + y + y << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << a * 2 + b * 2 << "\n";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << a * 2 + b * 2 << "\n";
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 44 |
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << 2 * (a + b) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << " " << 2 * (a + b) << endl;
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 43 |
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << (a + b) * 2 << endl;
return (0);
} | #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return (0);
} | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 49 |
#include <iostream>
#include <math.h>
using namespace std;
int a, b, x, y;
int main() {
cin >> a >> b;
x = a * b;
y = (a + b) * 2;
cout << x << y << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int a, b, x, y;
int main() {
cin >> a >> b;
x = a * b;
y = (a + b) * 2;
cout << x << " " << y << endl;
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 56 |
#include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d &d", &a, &b);
printf("%d &d\n", a * b, 2 * (a + b));
return 0;
} | #include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * (a + b));
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 51 |
#include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
printf("%d %d/n", a * b, 2 * a + 2 * b);
return 0;
} | #include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * a + 2 * b);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 50 |
#include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
int c = a * b;
b = a + b;
printf("%d %d\n", c, b);
return 0;
} | #include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
int c = a * b;
b = 2 * a + 2 * b;
printf("%d %d\n", c, b);
return 0;
} | [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48]] | 1 | 56 |
#include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << 2 * (a + b) << std::endl;
return 0;
} | #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << 2 * (a + b) << std::endl;
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 44 |
#include <stdio.h>
int area(int a, int b) {
int x;
x = a * b;
return x;
}
int circum(int a, int b) {
int y;
y = 2 * (a + b);
return y;
}
int main(void) {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d/n", area(a, b), circum(a, b));
return 0;
}
| #include <stdio.h>
int area(int a, int b) {
int x;
x = a * b;
return x;
}
int circum(int a, int b) {
int y;
y = 2 * (a + b);
return y;
}
int main(void) {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d\n", area(a, b), circum(a, b));
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 108 |
#include <iostream>
using namespace std;
int main(void) {
int w, h;
cin >> w >> h;
cout << w * h << w * w + h * h << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int w, h;
cin >> w >> h;
cout << w * h << " " << w * 2 + h * 2 << endl;
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 16, 12, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 12, 13]] | 1 | 43 |
#include <iostream>
using namespace std;
main() {
int a, b;
cin >> a >> b;
cout << a * a << " " << 2 * (a + b) << endl;
}
| #include <iostream>
using namespace std;
main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << 2 * (a + b) << endl;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 22]] | 1 | 42 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << pow(a, b) << " " << a + a + b + b << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b << " " << a + a + b + b << endl;
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 53 |
#include <cstdlib>
#include <iostream>
int main() {
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int a, b;
std::cin >> a >> b;
std::cout << a * b << 2 * (a + b) << std::endl;
return EXIT_SUCCESS;
}
| #include <cstdlib>
#include <iostream>
int main() {
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << 2 * (a + b) << std::endl;
return EXIT_SUCCESS;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b;
cout << 2 * (a + b) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b << " " << 2 * (a + b) << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a, b;
cout << a * b << " " << (a + b) * 2;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << (a + b) * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b;
cout << ' ';
cout << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 125]] | 1 | 46 |
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a * a) + (b * b) << "\n";
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + a) + (b + b) << "\n";
}
| [["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 16, 12, 16, 12, 23, 0, 16, 17, 48], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 17, 72]] | 1 | 50 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x;
int y;
int S;
int M;
scanf("%d %d", &x, &y);
S = x * y;
M = 2 * x + 2 * y;
printf("%d %d\n", x, y);
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x;
int y;
int S;
int M;
scanf("%d %d", &x, &y);
S = x * y;
M = 2 * x + 2 * y;
printf("%d %d\n", S, M);
return 0;
}
| [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 70 |
#include <cstdio>
int main() {
int l, s, a, b;
scanf("%d %d", &a, &b);
l = a + a + b + b;
s = a * b;
printf("%d %d", l, s);
return 0;
}
| #include <cstdio>
int main() {
int l, s, a, b;
scanf("%d %d", &a, &b);
l = a + a + b + b;
s = a * b;
printf("%d %d\n", s, l);
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 60 |
#include <bits/stdc++.h>
using namespace std;
int_fast64_t a, b;
int main() {
scanf("%lld%lld", &a, &b);
printf("%ld%lld", a * b, 2 * (a + b));
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int_fast64_t a, b;
int main() {
scanf("%lld%lld", &a, &b);
printf("%lld %lld\n", a * b, 2 * (a + b));
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 52 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
cout << A * B << A * 2 + B * 2 << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
cout << A * B << " " << A * 2 + B * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << 2 * (a + b) << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " ";
cout << 2 * (a + b) << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 43 |
#include <iostream>
int main(void) {
int a, b;
std::cin >> a >> b;
std::cout << a * b << 2 * a + 2 * b << std::endl;
return 0;
}
| #include <iostream>
int main(void) {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << 2 * a + 2 * b << std::endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 45 |
#include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c, d;
c = a * b;
d = 2 * a + 2 * b;
std::cout << a << " " << b << std::endl;
return 0;
}
| #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c, d;
c = a * b;
d = 2 * a + 2 * b;
std::cout << c << " " << d << std::endl;
return 0;
}
| [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 61 |
#include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c = a * b;
int d = 2 * (a + b);
std::cout << c << "" << d << std::endl;
return 0;
}
| #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c = a * b;
int d = 2 * (a + b);
std::cout << c << " " << d << std::endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 57 |
#include <iostream>
int main() {
int a, b;
std::cin >> a, b;
std::cout << a * b << " " << 2 * a + 2 * b << std::endl;
}
| #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << a * b << " " << 2 * a + 2 * b << std::endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 45 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b;
cout << a * 2 + b * 2 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << ' ' << a * 2 + b * 2 << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125]] | 1 | 44 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << 2 * (x + y) << endl;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << " " << 2 * (x + y) << endl;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 39 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << "" << (a + b) * 2 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 45 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << (a + b) * 2 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 43 |
#include <iostream>
using namespace std;
int main() {
int x, a;
cin >> x;
cin >> a;
cout << x * a << endl;
cout << 2 * (x + a) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, a;
cin >> x >> a;
cout << x * a << " " << 2 * (x + a) << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 48 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << endl;
cout << 2 * (x + y) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << " " << 2 * (x + y) << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int a[2];
int m = 0;
int n = 0;
for (int i = 0; i < 2; i++) {
cin >> a[i];
}
m = a[0] * a[1];
n = 2 * a[0] + 2 * a[1];
cout << m << endl;
cout << n << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int a[2];
int m = 0;
int n = 0;
for (int i = 0; i < 2; i++) {
cin >> a[i];
}
m = a[0] * a[1];
n = 2 * a[0] + 2 * a[1];
cout << m;
cout << " ";
cout << n << endl;
return 0;
}
| [["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 103 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int a, b;
cin >> a >> b;
cout << a * b << 2 * a + 2 * b << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int a, b;
cin >> a >> b;
cout << a * b << " " << 2 * a + 2 * b << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 51 |
#include <iostream>
int main() {
int x, y;
std::cin >> x >> y;
std::cout << x * y << 2 * x + 2 * y << std::endl;
}
| #include <iostream>
int main() {
int x, y;
std::cin >> x >> y;
std::cout << x * y << " " << 2 * x + 2 * y << std::endl;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 41 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << ' ' << x + y << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << x * y << ' ' << (x + y) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 42 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b << (a + b) * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a;
cin >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 44 |
// itp1_topic_c
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << "" << (a + b) * 2 << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
// itp1_topic_c
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << "" << (a + b) * 2 << endl;
return 0;
}
| //うんこ
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a * b) << (2 * a + 2 * b) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a * b) << " " << (2 * a + 2 * b) << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 46 |
#include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> a >> b;
x = a * 2 + b * 2;
y = a * b;
cout << y << x << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> a >> b;
x = a * 2 + b * 2;
y = a * b;
cout << y << " " << x << endl;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 51 |
#include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> a >> b;
x = a + b;
y = a * b;
cout << y << " " << x << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> a >> b;
x = a + a + b + b;
y = a * b;
cout << y << " " << x << endl;
return 0;
}
| [["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 54 |
#include <iostream>
using namespace std;
int main() {
int a, b, S, L;
cin >> a >> b;
S = a * b;
L = a + a + b + b;
cout << S << L << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, S, L;
cin >> a >> b;
S = a * b;
L = a + a + b + b;
cout << S << " " << L << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 54 |
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << a * 2 + b * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << " " << a * 2 + b * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int kaisei, azabu;
cin >> kaisei >> azabu;
int seikou = (kaisei + azabu) * 2;
int eikou = kaisei * azabu;
cout << seikou << " " << eikou << endl;
}
| #include <iostream>
using namespace std;
int main() {
int kaisei, azabu;
cin >> kaisei >> azabu;
int seikou = (kaisei + azabu) * 2;
int eikou = kaisei * azabu;
cout << eikou << " " << seikou << endl;
}
| [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 53 |
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << (a + b) * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 43 |
//============================================================================
// Name : Test.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iost... | //============================================================================
// Name : Test.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iost... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 52 |
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << (a + b) * 2 << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a;
cin >> b;
cout << a * b << " " << (a + b) * 2 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << endl;
cout << 2 * a + 2 * b << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a * b << " " << 2 * a + 2 * b << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 46 |
x = input()
x = int(x)
print(x ^ 3) | x = input()
x = int(x)
print(x ** 3) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 140], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]] | 5 | 17 |
import sys
def main():
for line in sys.stdout:
print(int(line.strip())**3)
if __name__ == "__main__":
main() | import sys
def main():
for line in sys.stdin:
print(int(line.strip())**3)
if __name__ == "__main__":
main() | [["-", 0, 14, 8, 196, 0, 7, 12, 319, 319, 22], ["+", 0, 14, 8, 196, 0, 7, 12, 319, 319, 22]] | 5 | 37 |
x = input('')
print (x*x*x) | x = int(input(''))
print(x*x*x) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 15 |
x = eval(input('>>> '))
if 1 <= x <= 100:
print((x*x*x)) | x = eval(input())
if 1 <= x <= 100:
print((x*x*x)) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 28 |
i = int(input())
print(str(i^3)) | i = int(input())
print(str(i**3)) | [["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 140], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 578]] | 5 | 17 |
def get_cubic(x):
return x ** 3
if __name__ == '__main__':
x = int(input())
print(x_cubic(x))
| def get_cubic(x):
return x ** 3
if __name__ == '__main__':
x = int(input())
print(get_cubic(x))
| [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 32 |
input_str = input()
translate_num = (int(input_str))**2
print(translate_num) | input_str = input()
translate_num = (int(input_str))**3
print(translate_num) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 19 |
num=int(raw_input())
num=num*num*num
print(num) | num=int(input())
num=num*num*num
print(num) | [["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]] | 5 | 19 |
x = input()
y = x**3
print(int(y)) | x = eval(input())
y = x**3
print(int(y)) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 17 |
# coding:utf-8
x=int(input())
print(x*3) | #!/usr/bin/python3
#coding:utf-8
x=int(input())
print(x**3) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]] | 5 | 15 |
a=int(input())
s=a**3
print("s") | a=int(input())
s=a**3
print(s) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 19 |
x = eval(input())
print((x^3)) | x = eval(input())
print((x**3)) | [["-", 0, 652, 3, 4, 0, 23, 0, 657, 17, 140], ["+", 0, 652, 3, 4, 0, 23, 0, 657, 17, 578]] | 5 | 16 |
import sys
i = int(raw_input())
print(i**3) | import sys
i = int(input())
print(i**3) | [["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]] | 5 | 16 |
x=int(input("????????\???"))
print(x ** 3) | x=int(input())
print (x**3) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 17 |
x = input('x=')
print (int(x)**3) | x = input('')
print (int(x)**3) | [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]] | 5 | 17 |
def main():
x = input()
y = int(x)
z = y**3
print(y)
main() | def main():
x = input()
y = int(x)
z = y**3
print(z)
main() | [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 28 |
n = int(input())
print ("{0}".format(n^3)) | n=int(input())**3
print("{0}".format(n)) | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 578], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 140], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 21 |
def main():
# x?????????????¨??????????
n = int(input())
if n <= 1 or n >= 101:
print("invalid answer.")
return
ans = n * 3
print("{0}".format(ans))
if __name__ == '__main__':
main() | def main():
n = int(input())
if n <= 0 or n >= 101:
print("invalid answer.")
return
ans = n * n * n
print("{0}".format(ans))
if __name__ == '__main__':
main() | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 56 |
number = eval(input('>> '))
number = int(number)
answer = number * number * number
print(answer) | number = eval(input())
number = int(number)
answer = number * number * number
print(answer) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 28 |
package main
import "fmt"
func main(){
var a, b int
fmt.Scanln(&a, &b)
var length, perim int
length = a * 2 + b * 2
perim = a * b
fmt.Println(length, perim)
}
| package main
import "fmt"
func main(){
var a, b int
fmt.Scanln(&a, &b)
var length, perim int
length = a * 2 + b * 2
perim = a * b
fmt.Println( perim, length )
}
| [["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22]] | 7 | 63 |
a,b=input().split()
a=int(a)
b=int(b)
print(a*b)
print(2*(a+b))
| a,b=input().split()
a=int(a)
b=int(b)
print(a*b,2*(a+b))
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 39 |
data_str = input()
data = data_str.split(" ")
print(int(data[0]) * int(data[1]) +' '+2 * (int(data[0])+int(data[1])))
| data_str = input()
data = data_str.split(" ")
print(int(data[0]) * int(data[1]), 2 * (int(data[0])+int(data[1])))
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 57 |
i = list(map(int,input().split()))
a = i[0]*i[1]
b = 2*(i[0]+i[1])
print("{0} {1}".format(a.b))
| i = list(map(int,input().split()))
a = i[0]*i[1]
b = 2*(i[0]+i[1])
print("{0} {1}".format(a,b))
| [["-", 3, 4, 0, 652, 3, 4, 0, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21]] | 5 | 56 |
line = input().split()
a = int( line[0] )
b = int( line[1] )
print(( a * b, 2 * ( a + b ) ))
| line = input().split()
a = int( line[0] )
b = int( line[1] )
print( a * b, 2 * ( a + b ) )
| [["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 3, 4, 0, 660, 0, 657, 12, 23, 0, 25]] | 5 | 43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.