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
#include <cstdio> #include <iostream> using namespace std; int main(void) { int a, b; int R, S; cin >> a >> b; S = a * b; R = a + b; cout << S << " " << R << endl; return 0; }
#include <cstdio> #include <iostream> using namespace std; int main(void) { int a, b; int R, S; cin >> a >> b; S = a * b; R = 2 * (a + b); cout << S << " " << R << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
1
58
#include <iostream> int main() { int a, b; std::cin >> a >> b; std::cout << a * b << a * 2 + b * 2 << "\n"; }
#include <iostream> int main() { int a, b; std::cin >> a >> b; std::cout << a * b << " " << a * 2 + b * 2 << "\n"; }
[["+", 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 <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); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
67
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int S, A; S = a * b; A = (a + b) * 2; cout << S << "" << A << endl; return 0; }
#include <iostream> using namespace std; main() { int a, b; cin >> a >> b; int S, A; S = a * b; A = (a + b) * 2; cout << S << " " << A << endl; return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
58
#include <iostream> using namespace std; int main() { int x; int y; cin >> x >> y; cout << x * y << 2 * (x + y) << endl; }
#include <iostream> using namespace std; int main() { int x; int 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
40
#include <stdio.h> int main(void) { int a; int b; scanf("%d %d", &a, &b); int c = a * b; int d = (a + b) * 2; scanf("%d %d", &c, &d); return 0; }
#include <stdio.h> int main(void) { int a; int b; scanf("%d %d\n", &a, &b); int c = a * b; int d = (a + b) * 2; printf("%d %d\n", c, d); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
62
#include <iostream> using namespace std; int a; int b; int main() { cin >> a >> b; cout << a * b << 2 * (a + b) << endl; return 0; }
#include <iostream> using namespace std; int a; int b; int main() { 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 <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d", a * b), printf("%d", (a + b) * 2); return 0; }
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d ", a * b), printf("%d\n", (a + b) * 2); return 0; }
[["-", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 34, 12, 2, 3, 4, 0, 5, 0, 44]]
1
56
#include <stdio.h> int main(void) { int a, b; scanf("%d", &a); scanf("%d", &b); printf("%d", a * b); printf("%d", 2 * a + 2 * b); return 0; }
#include <stdio.h> int main(void) { int a, b; scanf("%d", &a); scanf("%d", &b); printf("%d ", a * b); printf("%d\n", 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
63
#include <iostream> using namespace std; int main(void) { int a, b, s, l; cin >> a >> b; s = a * b; l = 2 * a + 2 * b; cout << s << "???" << l << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int a, b, s, l; cin >> a >> b; s = a * b; l = 2 * (a + b); cout << s << " " << l << endl; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
59
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << endl << a * 2 + b * 2 << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << a * 2 + b * 2 << endl; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
41
#include <iostream> using namespace std; int main(void) { int height; int width; std::cin >> height; cin >> width; int circumference; int acreage; circumference = height * 2 + width * 2; acreage = height * width; std::cout << circumference << " " << acreage << std::endl; }
#include <iostream> using namespace std; int main(void) { int height; int width; std::cin >> height; cin >> width; int circumference; int acreage; circumference = height * 2 + width * 2; acreage = height * width; std::cout << acreage << " " << circumference << std::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
67
#include <iostream> #include <stdlib.h> using namespace std; int main() { int x, y, men, syu; cin >> x >> y; men = x * y; x = 2 * x; y = 2 * y; syu = x + y; cout << men << syu << endl; return 0; }
#include <iostream> #include <stdlib.h> using namespace std; int main() { int x, y, men, syu; cin >> x >> y; men = x * y; x = 2 * x; y = 2 * y; syu = x + y; cout << men << " " << syu << 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
64
#include <iostream> #include <string> int main() { int x, y, a, b; std::cin >> a >> b; x = a * b; y = 2 * (a + b); std::cout << x + " " + y << std::endl; return 0; }
#include <iostream> #include <string> int main() { int x, y, a, b; std::cin >> a >> b; x = a * b; y = 2 * (a + b); std::cout << x << " " << y << std::endl; return 0; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
62
#include <iostream> using namespace std; int main() { int a, b; int L, S; cin >> a; cin >> b; S = a * b; L = a * 2 + b * 2; cout << S << L << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b; int L, S; cin >> a; cin >> b; S = a * b; L = a * 2 + b * 2; 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
57
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d", a * b); printf("%d\n", a + a + b + b); return 0; }
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d ", a * b); printf("%d\n", a + a + b + b); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
57
#include <iostream> using namespace std; int main() { int a, b, c, d; a >= 1, b <= 100; cin >> a >> b; c = 2 * (a + b), d = a * b; cout << c << " " << d << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, d; a >= 1, b <= 100; cin >> a >> b; c = 2 * (a + b), d = a * b; cout << d << " " << c << 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
66
#include <iostream> #include <string> using namespace std; int main() { int a, b; cin >> a >> b; int S; S = a * b; int l; l = 2 * (a + b); cout << S << l << "\n"; }
#include <iostream> #include <string> using namespace std; int main() { int a, b; cin >> a >> b; int S; S = a * b; int l; l = 2 * (a + b); cout << S << " " << l << "\n"; }
[["+", 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
57
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << (a + b) * 2 << '\n'; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << ' ' << (a + b) * 2 << '\n'; 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
44
#include <bits/stdc++.h> #define ll long long int #define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) #define REP(i, n) FOR(i, 0, n) #define REP1(i, n) FOR(i, 1, n) using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << 2 * (a + b) << "\n"; return 0; }
#include <bits/stdc++.h> #define ll long long int #define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) #define REP(i, n) FOR(i, 0, n) #define REP1(i, n) FOR(i, 1, n) using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << 2 * (a + b) << "\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
73
#include <iostream> using namespace std; int main() { double a, b; std::cin >> a, b; std::cout << a * b << " " << 2 * (a + b) << std::endl; return 0; }
#include <iostream> using namespace std; int main() { double a, b; std::cin >> a >> b; std::cout << a * b << " " << 2 * (a + b) << std::endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
52
#include <iostream> using namespace std; int main() { int a, b, S, L; cin >> a >> b; S = a * b; L = 2 * (a + 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 = 2 * (a + b); cout << S << " " << L << endl; return 0; }
[["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
54
#include <stdio.h> int main() { int a, b, c, d; scanf("%d%d", &a, &b); c = a * b; d = 2 * a + 2 * b; printf("%d%d\n", c, d); return 0; }
#include <stdio.h> int main() { int a, b, c, d; scanf("%d%d", &a, &b); c = a * b; d = 2 * (a + b); printf("%d %d\n", c, d); return 0; }
[["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
61
#include <cstdio> using namespace std; int main() { int a, b; scanf("%d%d", &a, &b); printf("%d%d\n", a * b, 2 * (a + b)); return 0; }
#include <cstdio> using namespace std; int main() { int a, 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
53
#include <iostream> using namespace std; int main() { int x, y, s, l; cin >> x >> y; s = x * y; l = (x + y) * 2; cout << s << l << endl; return 0; }
#include <iostream> using namespace std; int main() { int x, y, s, l; cin >> x >> y; s = x * y; l = (x + y) * 2; 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 a, b; int main() { cin >> a >> b; cout << a * b << 2 * (a + b) << endl; return 0; }
#include <iostream> using namespace std; int a, b; int main() { 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
42
#include <iostream> int main() { int a, b, c, s; std::cin >> a >> b; s = a * b; c = (a + b) * 2; std::cout << s << c << "\n"; return 0; }
#include <iostream> int main() { int a, b, c, s; std::cin >> a >> b; s = a * b; c = (a + b) * 2; std::cout << s << " " << c << "\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
56
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << 2 * a + 2 * b << "\n"; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << 2 * a + 2 * b << "\n"; }
[["+", 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 <iostream> using namespace std; int main() { int a, b; cin >> a, b; cout << a * b << " " << a * 2 + b * 2 << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << a * 2 + 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 given_number_a, given_number_b; int area_square, area_length; std::cin >> given_number_a >> given_number_b; area_square = given_number_a * given_number_b; area_length = (given_number_a + given_number_b) * 2; std::cout << given_number_a << ' ' << area_length << std::endl...
#include <iostream> int main() { int given_number_a, given_number_b; int area_square, area_length; std::cin >> given_number_a >> given_number_b; area_square = given_number_a * given_number_b; area_length = (given_number_a + given_number_b) * 2; std::cout << area_square << ' ' << area_length << std::endl; ...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
61
#include <iostream> using namespace std; int main(void) { // Here your code ! int x; int y; cin >> x >> y; cout << x * y << endl << (x + y) * 2 << endl; return 0; }
#include <iostream> using namespace std; int main(void) { // Here your code ! int x; int y; cin >> x >> y; cout << x * y << " " << (x + y) * 2 << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
47
#include <iostream> using namespace std; int main() { int a, b; int s, syuu; cin >> a >> b; s = a * b; syuu = 2 * (a + b); cout << s << syuu << "\n"; return 0; }
#include <iostream> using namespace std; int main() { int a, b; int s, syuu; cin >> a >> b; s = a * b; syuu = 2 * (a + b); cout << s << " " << syuu << "\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
57
#include <iostream> using namespace std; int main() { int x = 0; int y = 0; cin >> x >> y; cout << x * y << 2 * (x + y) << "\n"; return 0; }
#include <iostream> using namespace std; int main() { int x = 0; int y = 0; cin >> x >> y; cout << x * y << " " << 2 * (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], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
49
#include <iostream> using namespace std; int main() { int a; int 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, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 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, 103, 0, 104], ["+", 0, 16, 31, 16, 31, ...
1
47
#include <iostream> using namespace std; int main() { int a, b; int area, length; cin >> a >> b; area = a * b; length = 2 * (a + b); cout << area << "" << length << endl; }
#include <iostream> using namespace std; int main() { int a, b; int area, length; cin >> a >> b; area = a * b; length = 2 * (a + b); cout << area << " " << length << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
55
#include <cstdio> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); printf("%d\n", x * y, 2 * (x + y)); }
#include <cstdio> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); printf("%d %d\n", x * y, 2 * (x + y)); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
50
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define forn(i, n) for (int i = 0; i < n; i++) int main() { int a; int b; cin >> a >> b; int area = a * b; int perimeter = 2 * (a + b); cout << area << perimeter << endl; return ...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define forn(i, n) for (int i = 0; i < n; i++) int main() { int a; int b; cin >> a >> b; int area = a * b; int perimeter = 2 * (a + b); cout << area << " " << perimeter << 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
73
#include <cstdio> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d %d?\n", a * b, 2 * (a + b)); return 0; }
#include <cstdio> int main() { int a, 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
49
#include <stdio.h> int main(void) { int a, b; int syu; int menseki; scanf("%d%d", &a, &b); menseki = a * b; printf("%d\n", menseki); syu = a * 2 + b * 2; printf("%d\n", syu); }
#include <stdio.h> int main(void) { int a, b; int syu; int menseki; scanf("%d%d", &a, &b); menseki = a * b; printf("%d", menseki); syu = a * 2 + b * 2; printf(" %d\n", syu); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
69
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << "???" << 2 * a + 2 * b; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << " " << 2 * a + 2 * b << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
46
#include <iostream> int main() { int a, b; std::cin >> a; std::cin >> b; std::cout << a * b << 2 * (a + b) << std::endl; return 0; }
#include <iostream> int main() { int a, b; std::cin >> a; std::cin >> 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
48
#include <iostream> int main() { int a; int b; std::cin >> a >> b; std::cout << a + b << " " << a * b << std::endl; return 0; }
#include <iostream> int main() { int a; int b; std::cin >> a >> b; std::cout << a * b << " " << (a + b) * 2 << std::endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], [...
1
45
#include <iostream> int main() { int a; int b; std::cin >> a >> b; std::cout << a * b << 2 * (a + b) << std::endl; return 0; }
#include <iostream> int main() { int a; int 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
45
#include <iostream> using namespace std; int main() { int a; int b; cin >> a, b; int A = a * b; int B = a + a + b + b; cout << A << " " << B << endl; }
#include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; int A = a * b; int B = a + a + b + b; cout << A << " " << B << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
54
#include <cstdio> #include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << 2 * a + 2 + b << endl; return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << 2 * a + 2 * b << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 17, 48]]
1
48
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> a; cin >> b; x = a * b; y = a * 2 + b * 2; cout << x << endl << y << endl; }
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> a; cin >> b; x = a * b; y = a * 2 + b * 2; cout << x << " " << y << endl; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
55
#include <iostream> using namespace std; int main() { int a; int b; cin >> a; cin >> b; cout << a * b << endl; cout << 2 * (a + b) << endl; return 0; }
#include <iostream> using namespace std; int main() { int a; int b; cin >> a; cin >> b; cout << a * b << " "; cout << 2 * (a + b) << endl; return 0; }
[["-", 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
49
#include <iostream> using namespace std; int main() { int a; int b; cin >> a; cin >> b; cout << a * b << endl; 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, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 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,...
1
49
#include <iostream> using namespace std; int shuu(int x, int y); int menseki(int x, int y); int main() { int a, b; cin >> a >> b; cout << menseki(a, b) << shuu(a, b) << endl; return 0; } int shuu(int x, int y) { return (x + y) * 2; } int menseki(int x, int y) { return x * y; }
#include <iostream> using namespace std; int shuu(int x, int y); int menseki(int x, int y); int main() { int a, b; cin >> a >> b; cout << menseki(a, b) << " " << shuu(a, b) << endl; return 0; } int shuu(int x, int y) { return (x + y) * 2; } int menseki(int x, int y) { return x * y; }
[["+", 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
100
#include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; cout << n * m << n * 2 + m * 2 << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; cout << n * m << " " << n * 2 + m * 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
42
#include <stdio.h> main() { int a, b; int s, l; scanf("%d %d", a, b); s = a * b; l = 2 * (a + b); printf("%d %d\n", s, l); return 0; }
#include <stdio.h> main() { int a, b; int s, l; scanf("%d %d", &a, &b); s = a * b; l = 2 * (a + b); printf("%d %d\n", s, l); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
59
#include <iostream> using namespace std; int main() { int a, b, s, l; cin >> a, b; s = a * b; l = 2 * (a + 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 = 2 * (a + b); cout << s << " " << l << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
58
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << a * 2 + b * 2 << '\n'; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << ' ' << a * 2 + b * 2 << 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], ["-", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["-", 8, 9, 0, 1, 0, 16, 12, 103, 0, 44], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
41
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d", a * b); printf("%d", a + a + b + b); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d ", a * b); printf("%d\n", a + a + b + 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
55
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; double line_func(double x, double y) { return 2 * (x + y); } double square_func(double x, double y) { return x * y; } int main() { double a, b; cin >> a >> b; cout << line_func(a, b) << " " << square_func(a, b) << endl; }
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; double line_func(double x, double y) { return 2 * (x + y); } double square_func(double x, double y) { return x * y; } int main() { double a, b; cin >> a >> b; cout << square_func(a, b) << " " << line_func(a, b) << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]]
1
85
#include <stdio.h> int main(void) { int a, b, s, l; scanf("%d %d", &a, &b); s = a * b; l = 2 * (a + b); printf("%d $%d\n", s, l); return 0; }
#include <stdio.h> int main(void) { int a, b, s, l; scanf("%d %d", &a, &b); s = a * b; l = 2 * (a + b); printf("%d %d\n", s, l); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
62
#include <iostream> using namespace std; int main() { int a, b; int area, length; cin >> a >> b; area = a * b; length = a + b; cout << area << " " << length << endl; }
#include <iostream> using namespace std; int main() { int a, b; int area, length; cin >> a >> b; area = a * b; length = 2 * (a + b); cout << area << " " << length << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
1
52
#include <algorithm> #include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; int c = a * b; int d = a * 2 + b * 2; cout << c << d << endl; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; int c = a * b; int d = a * 2 + b * 2; cout << c << ' ' << d << 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
55
#include <iostream> using namespace std; int main() { int h = 1, w = 1; int s = 1, l = 1; cin >> h >> w; s = h * w; w = h * 2 + w * 2; cout << s << " " << l << endl; return 0; }
#include <iostream> using namespace std; int main() { int h = 1, w = 1; int s = 1, l = 1; cin >> h >> w; s = h * w; l = h * 2 + w * 2; cout << s << " " << l << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22]]
1
67
#include <stdio.h> int main() { int a, b, m, n; scanf("%d %d", a, b); m = a * b; n = 2 * a + 2 * b; printf("%d %d", m, n); return 0; }
#include <stdio.h> int main() { int a, b, m, n; scanf("%d %d", &a, &b); m = a * b; n = 2 * a + 2 * b; printf("%d %d\n", m, n); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
58
#include <stdio.h> int main() { int a, b; scanf("%d %d\n", &a, &b); printf("%d, %d\n", a * b, 2 * a + 2 * b); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d\n", &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]]
1
50
#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
45
#include <stdio.h> int main() { int a, b, x, y; scanf("%d", &a, &b); x = a * b; y = a * 2 + b * 2; printf("%d\n", x, y); return 0; }
#include <stdio.h> int main() { int a, b, x, y; scanf("%d %d", &a, &b); x = a * b; y = a * 2 + b * 2; printf("%d %d\n", x, y); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
61
#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, 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
42
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> a; cin >> b; x = a * b; y = 2 * a + 2 * b; cout << a << " " << b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> a; cin >> b; x = a * b; y = 2 * a + 2 * b; cout << x << " " << y << 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
60
#include <stdio.h> int main() { int a, b, resultA, resultB; scanf("%d %d", &a, &b); resultA = a * b; resultB = 2 * (a + b); printf("%d\n d\n", resultA, resultB); return 0; }
#include <stdio.h> int main() { int a, b, resultA, resultB; scanf("%d %d", &a, &b); resultA = a * b; resultB = 2 * (a + b); printf("%d %d\n", resultA, resultB); 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
63
#include <iostream> using namespace std; int main() { int a, b, s, l; cin >> a >> b; s = a * b; l = 2 * (a + b); cout << a << " " << b << endl; }
#include <iostream> using namespace std; int main() { int a, b; int s, l; cin >> a >> b; s = a * b; l = 2 * (a + b); cout << s << " " << l << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 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
55
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a >> b; cout << a * b << a * 2 + b * 2 << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int a, 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
43
#include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; cout << a * b << (a + b) * 2 << endl; 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, 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() { int a, b; cin >> a >> b; cout << a + b << '\t' << 2 * (a + b) << '\n'; // your code goes here return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << 2 * (a + b) << '\n'; // your code goes here return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 44], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
49
#include <iostream> using namespace std; int main(void) { int a; int b; cin >> a; cin >> b; cout << a * b << endl; cout << 2 * a + 2 * b << endl; }
#include <iostream> using namespace std; int main(void) { int a; int b; cin >> a; cin >> b; cout << a * b << " "; cout << 2 * a + 2 * 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
47
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int around = a * 2 + b * 2; int sph = a * b; cout << around << " " << sph << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int around = a * 2 + b * 2; int sph = a * b; cout << sph << " " << around << 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, x, y; cin >> a >> b; x = 2 * (a + b); y = a * b; cout << x << " " << y << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int a, b, x, y; cin >> a >> b; x = 2 * (a + b); y = a * b; cout << y << " " << x << 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
59
#include <iostream> int Length_Rest(int x, int y) { return 2 * x + 2 * y; } int Area_Rect(int x, int y) { return x * y; } int main(int argc, const char *argv[]) { int a; int b; std::cin >> a >> b; std::cout << Length_Rest(a, b) << " " << Area_Rect(a, b) << std::endl; return 0; }
#include <iostream> int Length_Rest(int x, int y) { return 2 * x + 2 * y; } int Area_Rect(int x, int y) { return x * y; } int main(int argc, const char *argv[]) { int a; int b; std::cin >> a >> b; std::cout << Area_Rect(a, b) << " " << Length_Rest(a, b) << std::endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]]
1
96
#include <iostream> using namespace std; int main() { int a; int b; int c; int d; cin >> a >> b; c = a * b; d = 2 * (a + b); cout << c << endl; cout << d << endl; }
#include <iostream> using namespace std; int main() { int a; int b; int c; int d; cin >> a >> b; c = a * b; d = 2 * (a + b); cout << c << " " << d << 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
58
//#include<studio.h> #include <iostream> using namespace std; int main() { int a, b; // scanf("%d %d", &a, &b); cin >> a >> b; int mense = a * b; int nagasa = 2 * (a + b); // printf("%d %d", &mense, &nagasa); cout << mense << nagasa << endl; return 0; }
//#include<studio.h> #include <iostream> using namespace std; int main() { int a, b; // scanf("%d %d", &a, &b); cin >> a >> b; int mense = a * b; int nagasa = 2 * (a + b); // printf("%d %d", &mense, &nagasa); cout << mense << " " << nagasa << 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
55
#include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; int k = 2 * a; int p = 2 * b; cout << a + b << " " << a * b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a; int b; cin >> a >> b; int k = 2 * a; int p = 2 * b; cout << a * b << " " << k + p << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+",...
1
57
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << " " << a * b * 2 << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << " " << (a + b) * 2 << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]]
1
43
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a, b; c = a * b; d = (a + b) * 2; cout << c << " " << d << endl; }
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b; c = a * b; d = (a + b) * 2; cout << c << " " << d << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
55
#include <iostream> using namespace ::std; int main() { int a, b; cin >> a >> b; cout << a * b << 2 * (a + b) << endl; return 0; }
#include <iostream> using namespace ::std; int main() { 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() { int a, b; cin >> a; cin >> b; cout << a * b << endl; cout << 2 * (a + b) << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> 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
45
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int a, b; cin >> a, b; cout << a * b << a * 2 + b * 2 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int a, b; cin >> a >> b; cout << a * b << " " << a * 2 + 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, 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
43
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << a + a + b + b << endl; // your code goes here return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << " " << a + a + b + b << endl; // your code goes here 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() { int a, b; cin >> a; cin >> b; cout << a * b << endl; cout << 2 * (a + b) << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << " " << 2 * (a + b) << 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
45
a,b = gets.split.map(&:to_i) puts = "#{a*b} #{(a+b)*2}"
a,b = gets.split.map(&:to_i) puts "#{a*b} #{(a+b)*2}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32]]
4
32
class Main str = gets str = str.split(" ") a = str[0].to_i b = str[1],to_i puts "#{a*b} #{(a+b) * 2}" end
class Main str = gets.to_s str = str.split(" ") a = str[0].to_i b = str[1].to_i puts "#{a*b} #{(a+b) * 2}" end
[["+", 0, 269, 8, 736, 0, 662, 12, 652, 17, 131], ["+", 0, 269, 8, 736, 0, 662, 12, 652, 735, 22], ["-", 0, 269, 8, 736, 0, 662, 12, 762, 0, 21]]
4
50
input = gets.chomp.split(" ") length = input[0].to_i width = input[1].to_i answer1 = length * width answer2 = length * 2 + width * 2 puts "#{answer1},#{answer2}"
input = gets.chomp.split(" ") length = input[0].to_i width = input[1].to_i answer1 = length * width answer2 = length * 2 + width * 2 puts "#{answer1} #{answer2}"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
52
AS,as = gets.split.map &:to_i puts "#{AS*as} #{(AS+as)*3}"
AS,as = gets.split.map &:to_i puts "#{AS*as} #{(AS+as)*2}"
[["-", 3, 4, 0, 557, 0, 284, 0, 738, 12, 612], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 12, 612]]
4
29
a, b = gets.split(" ").map(&:to_i) puts "#{a * b} #{a + b}"
a, b = gets.split(" ").map(&:to_i) puts "#{a * b} #{(a + b) * 2}"
[["+", 0, 557, 0, 284, 0, 738, 31, 739, 0, 24], ["+", 0, 557, 0, 284, 0, 738, 31, 739, 0, 25], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 48], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 12, 612]]
4
32
x = gets.split(" ") a = (x[0].to_i) * (x[1].to_i) b = (x[1].to_i*2) + (x[1].to_i*2) puts "#{a} #{b}"
x = gets.split(" ") a = (x[0].to_i) * (x[1].to_i) b = (x[0].to_i*2) + (x[1].to_i*2) puts "#{a} #{b}"
[["-", 31, 739, 0, 738, 31, 652, 486, 742, 0, 612], ["+", 31, 739, 0, 738, 31, 652, 486, 742, 0, 612]]
4
62
n = gets.split(" ") m = n[0].to_i l = n[1].to_i a = m * l b = 2 * (a + b) puts "#{a} #{b}"
n = gets.split(" ") m = n[0].to_i l = n[1].to_i a = m * l b = 2 * (m + l) puts "#{a} #{b}"
[["-", 0, 662, 12, 738, 12, 739, 0, 738, 31, 22], ["+", 0, 662, 12, 738, 12, 739, 0, 738, 31, 22], ["-", 0, 662, 12, 738, 12, 739, 0, 738, 12, 22], ["+", 0, 662, 12, 738, 12, 739, 0, 738, 12, 22]]
4
50
a, b = *(gets.strip.split(/ +/).map(&:to_i)) area = a * b surround = (a + b) + 2 puts "#{area} #{surround}"
a, b = *(gets.strip.split(/ +/).map(&:to_i)) area = a * b surround = (a + b) * 2 puts "#{area} #{surround}"
[["-", 36, 36, 0, 493, 0, 662, 12, 738, 17, 72], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 17, 48]]
4
47
a = gets.split(" ") s = a[0].to_i * a[1].to_i x = a[0].to_i * 2 + a[1].to_i * 2 p s.to_s + " " + x.to_s
a = gets.split(" ") s = a[0].to_i * a[1].to_i x = a[0].to_i * 2 + a[1].to_i * 2 puts s.to_s + " " + x.to_s
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
56
a=gets.to_s b=a.sprit x=b[0].to_i*b[1].to_i y=2*b[0].to_i+2*b[1].to_i print x," ",y,"\n"
a=gets.to_s b=a.split x=b[0].to_i*b[1].to_i y=2*b[0].to_i+2*b[1].to_i print x," ",y,"\n"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
56
a = gets.chomp.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i*b[1].to_i)*2 print c,(" "),d,("\n")
a = gets.chomp.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 print c,(" "),d,("\n")
[["-", 0, 662, 12, 738, 31, 739, 0, 738, 17, 48], ["+", 0, 662, 12, 738, 31, 739, 0, 738, 17, 72]]
4
67
a = gets.chomp.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i*b[1].to_i)*2 print c,(" "),d,("\n")
a = gets.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 print c,(" "),d,("\n")
[["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 0, 662, 12, 738, 31, 739, 0, 738, 17, 48], ["+", 0, 662, 12, 738, 31, 739, 0, 738, 17, 72]]
4
67
a = gets.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 puts c,(" "),d,("\n")
a = gets.chomp b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 print c,(" "),d,("\n")
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
65
a = gets.to_s b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 puts c,(" "),d,("\n")
a = gets b = a.split(" ") c = b[0].to_i*b[1].to_i d = (b[0].to_i+b[1].to_i)*2 print c,(" "),d,("\n")
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
65
x, y = STDIN.gets.chomp.split(" ").map(&:to_i) puts x * y puts x * 2 + y * 2
x, y = STDIN.gets.chomp.split(" ").map(&:to_i) print x * y, " " puts x * 2 + y * 2
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 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]]
4
34
ab = Array.new ab = gets.split.map(&:to_i) men = ab[0]*ab[1] hen = 2*2*(ab[0]+ab[1]) puts "#{men} #{hen}"
ab = Array.new ab = gets.split.map(&:to_i) men = ab[0]*ab[1] hen = 2*(ab[0]+ab[1]) puts "#{men} #{hen}"
[["-", 0, 493, 0, 662, 12, 738, 31, 738, 12, 612], ["-", 36, 36, 0, 493, 0, 662, 12, 738, 17, 48]]
4
54