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
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines X,Y,Z = map(int, readline()) A,B,C = Z,X,Y print(A,B,C)
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines X,Y,Z = map(int, readline().split()) A,B,C = Z,X,Y print(A,B,C)
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
62
#include <bits/stdc++.h> using namespace std; int main(void) { int x, y, z; cin >> x >> y >> z; cout << z << ' ' << x << ' ' << z << endl; }
#include <bits/stdc++.h> using namespace std; int main(void) { int x, y, z; cin >> x >> y >> z; cout << z << ' ' << x << ' ' << y << endl; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
46
#include <bits/stdc++.h> using namespace std; int main() { int x, y, z; vector<int> box; cin >> x >> y >> z; box.push_back(z); box.push_back(y); box.push_back(x); cout << box.at(0) << " " << box.at(1) << " " << box.at(2) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y, z; vector<int> box; cin >> x >> y >> z; box.push_back(z); box.push_back(x); box.push_back(y); cout << box.at(0) << " " << box.at(1) << " " << box.at(2) << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
90
import sys import math import bisect def main(): a, b, c = map(int, input().split()) #a, b = (b, a) a, b = b, a b, c = c, b print('%d %d %d' % (a, b, c)) if __name__ == "__main__": main()
import sys import math import bisect def main(): a, b, c = map(int, input().split()) #a, b = (b, a) a, b = b, a a, c = c, a print('%d %d %d' % (a, b, c)) if __name__ == "__main__": main()
[["-", 8, 196, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 8, 196, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 432, 0, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 432, 0, 22]]
5
68
#include <bits/stdc++.h> using namespace std; int main() { char X, Y, Z; cin >> X >> Y >> Z; string A; cout << Z << " " << X << " " << Y << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; string A; cout << Z << " " << X << " " << Y << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
51
X,Y,Z = list(map(int,input().split())) print(Y,Z,X)
X,Y,Z = list(map(int,input().split())) print(Z,X,Y)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
29
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // ABC161 int main(void) { int n, k, i, cou = 0, tmp; scanf("%d", &n, &k, &i); printf("%d %d %d", i, n, k); return 0; }
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // ABC161 int main(void) { int n, k, i, cou = 0, tmp; scanf("%d %d %d", &n, &k, &i); printf("%d %d %d", i, n, k); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
61
#include <bits/stdc++.h> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(0); int a, b, c; std::cin >> a >> b >> c; std::cout << c << " " << b << " " << a << std::endl; }
#include <bits/stdc++.h> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(0); int a, b, c; std::cin >> a >> b >> c; std::cout << c << " " << a << " " << b << 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
65
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; cout << Z << "" << X << "" << Y; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; cout << Z << " " << X << " " << Y; }
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
41
x,y,z = map(int,input().split()) l = [] l.append(z) l.append(x) l.append(y) print(l)
x,y,z = map(int,input().split()) l = [] l.append(z) l.append(x) l.append(y) print(*l)
[["+", 0, 1, 0, 652, 3, 4, 0, 661, 0, 48]]
5
44
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int t = a; int x = c; a = b; b = t; c = a; a = x; System.out.println(a + "" + b + "...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int t = a; int x = c; a = b; b = t; c = a; a = x; System.out.println(a + " " + b + ...
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
106
a = list(map(int, input().split())) b = [0, 0, 0] b[0] = a[2] b[1] = a[0] b[2] = a[1] print(b) B = [str(a) for a in b] B = " ".join(B) print(B)
a = list(map(int, input().split())) b = [0, 0, 0] b[0] = a[2] b[1] = a[0] b[2] = a[1] # print(b) B = [str(a) for a in b] B = " ".join(B) print(B)
[["-", 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, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
83
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int x, y, z; cin >> x, z, y; // cout<<z<<" "<<x<<" "<<y; swap(x, y); swap(x, z); cout << x << " " << y << " " << z; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int x, y, z; cin >> x >> z >> y; swap(x, y); swap(x, z); cout << z << " " << y << " " << x; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9,...
1
64
#include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define LINE_BUF_SIZE 1024 int main(void) { int i; int number[3]; int temp; scanf("%d %d %d", &number[0], &number[1], &number[2]); for (i = 0; i <= 1; i++) { temp = number[0]; number[0] = number[i + 1]; number[i + 1];...
#include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define LINE_BUF_SIZE 1024 int main(void) { int i; int number[3]; int temp; scanf("%d %d %d", &number[0], &number[1], &number[2]); for (i = 0; i <= 1; i++) { temp = number[0]; number[0] = number[i + 1]; number[i + 1] ...
[["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22]]
0
126
X, Y, Z = map(int, input().split()) tmp = X X = Y Y = tmp tmp2 = X Z = tmp2 X = Z print(X,Y,Z)
X, Y, Z = map(int, input().split()) tmp = X X = Y Y = tmp tmp2 = X X = Z Z = tmp2 print(X,Y,Z)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
44
# input A, B, C = map(int, input().split()) # change box tmp = A A = B B = tmp tmp = A A = C C = tmp # output print("{} {} {]".format(A, B, C))
# input A, B, C = map(int, input().split()) # change box tmp = A A = B B = tmp tmp = A A = C C = tmp # output print("{} {} {}".format(A, B, C))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
54
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int[] cba = {Z, Y, X}; for (int i : cba) { System.out.print(i + " "); } sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int[] cab = {Z, X, Y}; for (int i : cab) { System.out.print(i + " "); } sc.close(); } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 518, 0, 21], ["-", 8, 196, 0, 503, 49, 200, 51, 518, 0, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 518, 0, 21], ["+", 8, 196, 0, 503, 49, 200, 51, 518, 0, 22], ["-", 8, 498, 0, 195, 8, 196,...
3
103
line = input().rstrip().split(" ") N = [str(n) for n in line] X = N[0] Y = N[1] Z = N[2] tmp = 0 tmp = X X = Y Y = tmp tmp = X X = Z Z = tmp print(*X,*Y,*Z)
line = input().rstrip().split(" ") N = [str(n) for n in line] X = N[0] Y = N[1] Z = N[2] tmp = 0 tmp = X X = Y Y = tmp tmp = X X = Z Z = tmp print(X,Y,Z)
[["-", 0, 1, 0, 652, 3, 4, 0, 661, 0, 48]]
5
78
X, Y, Z=int(input().split()) print(Z, X, Y)
X,Y,Z=map(int, input().split()) print(Z,X,Y)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
24
#include <bits/stdc++.h> using namespace std; const int MOD = 1e9 + 7; const int INF = 0x3f3f3f3f; const double PI = 4 * atan(1); typedef long long ll; typedef pair<int, int> pii; // int gcd(int a, int b) { // if (a == 0) return b; // return gcd(b % a, a); // } // ll power(int base, int power) { // ll prod = ...
#include <bits/stdc++.h> using namespace std; const int MOD = 1e9 + 7; const int INF = 0x3f3f3f3f; const double PI = 4 * atan(1); typedef long long ll; typedef pair<int, int> pii; // int gcd(int a, int b) { // if (a == 0) return b; // return gcd(b % a, a); // } // ll power(int base, int power) { // ll prod = ...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 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
115
a,b,c = int(input().split()) a,b,c = c,a,b print(a,b,c)
a,b,c = map(int, input().split()) a,b,c = c,a,b print(a,b,c)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
35
#include <stdio.h> int main(void) { int X, Y, Z; int A, B, C; scanf("%d %d %d", &X, &Y, &Z); A = Z; B = Y; C = X; printf("%d %d %d\n", A, B, C); }
#include <stdio.h> int main(void) { int X, Y, Z; int A, B, C; scanf("%d %d %d", &X, &Y, &Z); A = Z; B = X; C = Y; printf("%d %d %d\n", A, B, C); }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22]]
1
65
a,b,c = input().split() print(c,b,a)
a,b,c = input().split() print(c,a,b)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
21
<?php list($x, $y, $z) = explode(' ', trim(fgets(STDIN))); echo $z . " " . $x . "" . $y; ?>
<?php list($x, $y, $z) = explode(' ', trim(fgets(STDIN))); echo $z . ' ' . $x . ' ' . $y; ?>
[["-", 31, 16, 31, 16, 31, 16, 12, 609, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 557, 0, 104], ["-", 0, 608, 0, 16, 31, 16, 12, 609, 0, 62], ["+", 0, 608, 0, 16, 31, 16, 12, 557, 0, 104], ["+", 0, 608, 0, 16, 31, 16, 12, 557, 0, 610]]
6
46
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; cout << Z << "" << X << "" << Y << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; cout << Z << " " << X << " " << Y << endl; return 0; }
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
46
n = input().split(" ") print(n) a = n[0] b = n[1] c = n[2] "aとbの入れ替え" n[0] = b n[1] = a "aとcの入れ替え" n[0] = c n[2] = b print(n[0]+" "+n[1]+" "+n[2]+" ")
n = input().split(" ") a = n[0] b = n[1] c = n[2] "aとbの入れ替え" n[0] = b n[1] = a "aとcの入れ替え" n[0] = c n[2] = b print(n[0]+" "+n[1]+" "+n[2]+" ")
[["-", 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, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
93
a,b,c=input().split() print([c,a,b])
a,b,c=input().split() print(c,a,b)
[["-", 0, 1, 0, 652, 3, 4, 0, 634, 0, 70], ["-", 0, 1, 0, 652, 3, 4, 0, 634, 0, 73]]
5
23
a,b,c = map(int,input().split()) list = [c,a,b] print(list)
a,b,c = map(int,input().split()) list = [c,a,b] print(*list)
[["+", 0, 1, 0, 652, 3, 4, 0, 661, 0, 48]]
5
31
x,y,z = map(int, input().split()) x,y = y,x x,z = z,x print("{} {} {}",x,y,z)
x,y,z = map(int,input().split()) x,y = y,x x,z = z,x print("{} {} {}".format(x,y,z))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
44
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println(c + "" + a + "" + b); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println(c + " " + a + " " + b); } }
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
81
import sys sys.setrecursionlimit(10 ** 7) rl = sys.stdin.readline def solve(): x, y, z = map(int, rl().sprit()) print(z, x, y) if __name__ == '__main__': solve()
import sys sys.setrecursionlimit(10 ** 7) rl = sys.stdin.readline def solve(): x, y, z = map(int, rl().split()) print(z, x, y) if __name__ == '__main__': solve()
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]]
5
58
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 typedef long long ll; int main() { ll x, y, z; cin >> x, y, z; cout << z << ' ' << x << ' ' << y; return 0; }
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 typedef long long ll; int main() { ll x, y, z; cin >> x >> y >> z; cout << z << ' ' << x << ' ' << y; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
54
#include <iostream> int main() { int a, b, c; std::cin >> a >> b >> c; std::cout << c << " " << b << " " << a; return 0; }
#include <iostream> int main() { int a, b, c; std::cin >> a >> b >> c; std::cout << c << " " << a << " " << b; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
46
#include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); printf("%d%d%d", c, a, b); return 0; }
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d %d %d", c, 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
47
#include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); a = a + b; b = a - b; a = a - b; a = a + c; c = a - c; a = a - c; printf("%d%d%d", a, b, c); return 0; }
#include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); a = a + b; b = a - b; a = a - b; a = a + c; c = a - c; a = a - c; printf("%d %d %d", a, b, c); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
83
X, Y, Z = map(int, input().split()) tmp = 0; tmp = X X = Y Y = Z Z = tmp print(X, Y, Z)
X, Y, Z = map(int, input().split()) tmp = 0; tmp = X X = Z Z = Y Y = tmp print(X, Y, Z)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
42
#include <stdio.h> int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C); printf("%d %d %d\n", B, C, A); return 0; }
#include <stdio.h> int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C); printf("%d %d %d\n", C, A, B); 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
48
#include <algorithm> #include <bitset> #include <cassert> #include <cstring> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; mt19937_64 rng(58); int main() { ios_base::sync_with_stdio(fals...
#include <algorithm> #include <bitset> #include <cassert> #include <cstring> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; mt19937_64 rng(58); int main() { ios_base::sync_with_stdio(fals...
[["+", 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
92
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <string> #include <vector> // setprecision(12) #include <cassert> #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #de...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <string> #include <vector> // setprecision(12) #include <cassert> #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #de...
[["-", 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
258
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } const ll INF...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } const ll INF...
[["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 31, 22], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
418
#include <bits/stdc++.h> using namespace std; #define lli long long int #define pb push_back #define in insert #define pi pair<int, int> #define pii pair<int, pi> #define mp make_pair #define fir first #define sec second #define MAXN 200001 #define INF 1000000000 int n; lli v[MAXN]; lli dp[MAXN][3]; lli solve(int i,...
#include <bits/stdc++.h> using namespace std; #define lli long long int #define pb push_back #define in insert #define pi pair<int, int> #define pii pair<int, pi> #define mp make_pair #define fir first #define sec second #define MAXN 200001 #define INF 1000000000 int n; lli v[MAXN]; lli dp[MAXN][3]; lli solve(int i,...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 91, 17, 111], ["-", 0, 57, 15, 339, 51, 16, 12, 91, 28, 22], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
256
#include <bits/stdc++.h> #define GO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) using namespace std; typedef long long ll; typedef vector<ll> vec; const int N = 3e5 + 5; const int M = 1e6 + 5; const int Mod = 1e9 + 7; int n, a[N]; ll prefO[N], sufO[N], prefE[N], sufE[N]; int main() { GO; cin >> n; for (int...
#include <bits/stdc++.h> #define GO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) using namespace std; typedef long long ll; typedef vector<ll> vec; const int N = 3e5 + 5; const int M = 1e6 + 5; const int Mod = 1e9 + 7; int n, a[N]; ll prefO[N], sufO[N], prefE[N], sufE[N]; int main() { GO; cin >> n; for (int...
[["-", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 7, 10...
1
402
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) #define all(a) (a).begin(), (a).end() typedef long long ll; #define INF (ll)1e16 int main(void) { int n; cin >> n; vector<ll> a(n); rep(i, n) cin >> a[i]; int MAX_JUMP = (n % 2 == 0) ? 2 : 3; vector<ll> dp[MAX_...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) #define all(a) (a).begin(), (a).end() typedef long long ll; #define INF (ll)1e16 int main(void) { int n; cin >> n; vector<ll> a(n); rep(i, n) cin >> a[i]; int MAX_JUMP = (n % 2 == 0) ? 2 : 3; vector<ll> dp[MAX_...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 33], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]]
1
312
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) #define all(a) (a).begin(), (a).end() typedef long long ll; #define INF (ll)1e16 int main(void) { int n; cin >> n; vector<ll> a(n); rep(i, n) cin >> a[i]; if (n == 2) { cout << max(a[0], a[1]) << endl; re...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) #define all(a) (a).begin(), (a).end() typedef long long ll; #define INF (ll)1e16 int main(void) { int n; cin >> n; vector<ll> a(n); rep(i, n) cin >> a[i]; if (n == 2) { cout << max(a[0], a[1]) << endl; re...
[["-", 0, 83, 0, 69, 341, 342, 0, 16, 12, 13], ["+", 0, 83, 0, 69, 341, 342, 0, 16, 12, 13]]
1
346
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repr(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define FORR(i, m, n) for (int i = (m); i >= (n); --i) #define equals(a, b) (fabs((a) - (b)) < EPS) using namespace std; typedef long long ll; t...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repr(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define FORR(i, m, n) for (int i = (m); i >= (n); --i) #define equals(a, b) (fabs((a) - (b)) < EPS) using namespace std; typedef long long ll; t...
[["-", 0, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 9, 0, 9, 0, 57, 64, 9, 0, 46]]
1
507
N = int(input()) A = list(map(int,input().split())) dp = [{} for _ in range(N+1)] INF = -float('inf') for i in range(1,N+1): mid = i//2 dp[i][mid-2],dp[i][mid-1],dp[i][mid],dp[i][mid+1],dp[i][mid+2]=INF,INF,INF,INF,INF dp[1][1] = A[0] dp[2][1] = max(A[1],dp[1][1]) dp[1][0],dp[2][0]=0,0 for i in range(2,N): a...
N = int(input()) A = list(map(int,input().split())) dp = [{} for _ in range(N+1)] INF = -float('inf') for i in range(1,N+1): mid = i//2 dp[i][mid-2],dp[i][mid-1],dp[i][mid],dp[i][mid+1],dp[i][mid+2]=INF,INF,INF,INF,INF dp[1][1] = A[0] dp[2][1] = max(A[1],dp[1][1]) dp[1][0],dp[2][0]=0,0 for i in range(2,N): a...
[["-", 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, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
292
#include <bits/stdc++.h> using namespace std; #define int long long using ldb = long double; using pa = pair<int, int>; #define F first #define S second #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 2e5 + 10; const int LINF = LLONG_MAX; int a[N]; int dp[N]...
#include <bits/stdc++.h> using namespace std; #define int long long using ldb = long double; using pa = pair<int, int>; #define F first #define S second #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 2e5 + 10; const int LINF = LLONG_MAX; int a[N]; int dp[N]...
[["-", 12, 2, 3, 4, 0, 2, 3, 4, 0, 13], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 13]]
1
386
#include <bits/stdc++.h> #define pii pair<int, int> #define pb push_back #define nmax 200011 #define lld long long #define inf 9999999999999999LL using namespace std; int a[nmax]; lld dp[nmax], st[nmax]; int main() { int n; cin >> n; for (int i = 1; i <= n; ++i) { cin >> a[i]; } st[1] = a[1]; for (int i...
#include <bits/stdc++.h> #define pii pair<int, int> #define pb push_back #define nmax 200011 #define lld long long #define inf 9999999999999999LL using namespace std; int a[nmax]; lld dp[nmax], st[nmax]; int main() { int n; cin >> n; for (int i = 1; i <= n; ++i) { cin >> a[i]; } st[1] = a[1]; for (int i...
[["+", 3, 4, 0, 69, 341, 342, 0, 16, 17, 33], ["+", 3, 4, 0, 69, 341, 342, 0, 16, 12, 13]]
1
220
#include <algorithm> #include <cmath> #include <complex> // complex<double> a(1.2 , 2.3);// real(): 1.2, imag()2.3 #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; #define MOD 1000000007 #define EPS 1e-10 #define ll long long #define ld lo...
#include <algorithm> #include <cmath> #include <complex> // complex<double> a(1.2 , 2.3);// real(): 1.2, imag()2.3 #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; #define MOD 1000000007 #define EPS 1e-10 #define ll long long #define ld lo...
[["-", 28, 69, 28, 69, 28, 2, 3, 4, 0, 13], ["+", 28, 69, 28, 69, 28, 2, 3, 4, 0, 13]]
1
691
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(NULL); ll N; cin >> N; vector<ll> A(N + 2, 0); vector<ll> cAo(N + 2, 0); // 1からの累積和 vector<ll> cAe(N + 2, 0); // 2からの累積和 // 累積の計算 ll ao = 0; ll ae = 0; ll cmin = 0; A.at(0) = 0...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(NULL); ll N; cin >> N; vector<ll> A(N + 2, 0); vector<ll> cAo(N + 2, 0); // 1からの累積和 vector<ll> cAe(N + 2, 0); // 2からの累積和 // 累積の計算 ll ao = 0; ll ae = 0; ll cmin = 0; A.at(0) = 0...
[["+", 64, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 7, 15, 16, 12, 16, 12, 13]]
1
559
N = int(input()) A = list(map(int, input().split())) dp = [0] * (N + 1) dp[2] = max(A[0], A[1]) s = 0 for i, a in enumerate(A, 1): if i <= 2: continue if i%2: # 奇数 dp[i] = max(dp[i-1], a+dp[i-2]) s += a else: # 偶数 dp[i] = max(a+dp[i-2], s) print(dp[-1])
N = int(input()) A = list(map(int, input().split())) dp = [0] * (N + 1) dp[2] = max(A[0], A[1]) s = A[0] for i, a in enumerate(A, 1): if i <= 2: continue if i%2: # 奇数 dp[i] = max(dp[i-1], a+dp[i-2]) s += a else: # 偶数 dp[i] = max(a+dp[i-2], s) print(dp[-1])
[["+", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]]
5
135
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ #include <bits/stdc++.h> //#pragma GCC target("avx2") //#pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") #define f(i, n) for (int i = 0; i < (n); i++) #define inf (int)(3e18) // here!!! // def...
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ #include <bits/stdc++.h> //#pragma GCC target("avx2") //#pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") #define f(i, n) for (int i = 0; i < (n); i++) #define inf (int)(3e18) // here!!! // def...
[["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13], ["-", 0, 11, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 0, 11, 12, 16, 31, 69, 341, 342, 0, 13]]
1
2,204
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <array> #include <assert.h> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <numeric> #include <queue> #include <random> #includ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <array> #include <assert.h> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <numeric> #include <queue> #include <random> #includ...
[["-", 3, 4, 0, 69, 28, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 69, 28, 69, 341, 342, 0, 13]]
1
891
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 2e5 + 10; ll c[N], sum[N], dp[N]; int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) scanf("%lld", &c[i]); sum[1] = c[1]; for (int i = 3; i <= n; i += 2) sum[i] = sum[i - 2] + c[i]; dp[1] = 0; for (int ...
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 2e5 + 10; ll c[N], sum[N], dp[N]; int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) scanf("%lld", &c[i]); sum[1] = c[1]; for (int i = 3; i <= n; i += 2) sum[i] = sum[i - 2] + c[i]; dp[1] = 0; for (int ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
218
N = int(input()) *A, = map(int,input().split()) if N%2==0: INF = 2* 10**9 dp = [[-INF]*N for _ in [0]*2] dp[0][0] = A[0] dp[1][1] = A[1] for i in range(2,N,2): a = A[i] dp[0][i] = dp[0][i-2] + a for i in range(3,N): dp[1][i] = max(dp[1][i-2],dp[0][i-3]) + a print(max...
N = int(input()) *A, = map(int,input().split()) if N%2==0: INF = 2* 10**9 dp = [[-INF]*N for _ in [0]*2] dp[0][0] = A[0] dp[1][1] = A[1] for i in range(2,N,2): a = A[i] dp[0][i] = dp[0][i-2] + a for i in range(3,N): a = A[i] dp[1][i] = max(dp[1][i-2],dp[0][i-3]) ...
[["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 8, 196, 0, 1, 0, 662, 12, 206, 206, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 206, 0, 73]]
5
422
//#include "pch.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <algorithm> #include <bitset> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <utility> #include <vector> #d...
//#include "pch.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <algorithm> #include <bitset> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <utility> #include <vector> #d...
[["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 60], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32]]
1
970
#include <bits/stdc++.h> using namespace std; const int Max = 200000; long A[Max] = {}, f[Max] = {}, seen[Max] = {}, E[Max] = {0}; long F(int n) { long M = 0; if (n == 2) { M = max(A[0], A[1]); return M; } if (n == 3) { M = max(F(2), A[2]); return M; } if (seen[n]) { return f[n]; } s...
#include <bits/stdc++.h> using namespace std; const int Max = 200000; long A[Max] = {}, f[Max] = {}, seen[Max] = {}, E[Max] = {0}; long F(int n) { long M = 0; if (n == 2) { M = max(A[0], A[1]); return M; } if (n == 3) { M = max(F(2), A[2]); return M; } if (seen[n]) { return f[n]; } s...
[["+", 3, 4, 0, 69, 341, 342, 0, 16, 17, 33], ["+", 3, 4, 0, 69, 341, 342, 0, 16, 12, 13]]
1
293
def main(): N = int(input()) A = list(map(int, input().split())) a0, a1, a2, b0, b1, b2 = 0, 0, 0, 0, 0, 0 for i, a in enumerate(A): a0, a1, a2, b0, b1, b2 = ( b0, max(b1, a0), max(b2, a1), a0 + a, a1 + a if i >= 1 e...
def main(): N = int(input()) A = list(map(int, input().split())) a0, a1, a2, b0, b1, b2 = 0, 0, 0, 0, 0, 0 for i, a in enumerate(A): a0, a1, a2, b0, b1, b2 = ( b0, max(b1, a0), max(b2, a1), a0 + a, a1 + a if i >= 1 e...
[["-", 64, 196, 0, 37, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 37, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 37, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 37, 0, 652, 3, 4, 0, 22]]
5
143
#include <bits/stdc++.h> using namespace std; #define lp(var, start, end) for (ll var = start; var < end; ++var) #define rlp(var, start, end) for (ll var = start; var >= end; var--) #define ios \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> using namespace std; #define lp(var, start, end) for (ll var = start; var < end; ++var) #define rlp(var, start, end) for (ll var = start; var >= end; var--) #define ios \ ios_base::sync_with_stdio(false); ...
[["-", 3, 4, 0, 2, 3, 4, 0, 69, 28, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 69, 28, 22]]
1
490
/* Author:Raghav Bansal IIIT Una */ #include <bits/stdc++.h> #define int long long int #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define BOLT \ ios_base::sync_with_stdio(false); ...
/* Author:Raghav Bansal IIIT Una */ #include <bits/stdc++.h> #define int long long int #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define BOLT \ ios_base::sync_with_stdio(false); ...
[["+", 0, 83, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 83, 0, 2, 3, 4, 0, 16, 12, 13]]
1
374
N = int(input()) A = list(map(int, input().split())) dp = [0]*N cum = A[0] for i in range(N): if i == 0: dp[i] = 0 continue if i == 1: dp[i] = max(A[0],A[1]) continue if i%2==0: cum += A[i] dp[i] = max(dp[i],dp[i-2]+A[i]) if i%2==1: dp[i] = max(...
N = int(input()) A = list(map(int, input().split())) dp = [0]*N cum = A[0] for i in range(N): if i == 0: dp[i] = 0 continue if i == 1: dp[i] = max(A[0],A[1]) continue if i%2==0: #奇数の時 cum += A[i] dp[i] = max(dp[i-1],dp[i-2]+A[i]) if i%2==1: #偶数の時 ...
[["+", 12, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
158
#include <cstring> #include <iostream> using namespace std; int a[200005], sum[200005]; int dp[200005]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) cin >> a[i], sum[i] = a[i] + (i > 1 ? sum[i - 2] : 0); for (int i = 1; i < n; i++) { if (i % 2 == 0) dp[i] = max(a[i] + dp[i - 2], dp[i ...
#include <cstring> #include <iostream> using namespace std; long long a[200005], sum[200005]; long long dp[200005]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) cin >> a[i], sum[i] = a[i] + (i > 1 ? sum[i - 2] : 0); for (int i = 1; i < n; i++) { if (i % 2 == 0) dp[i] = max(a[i] + dp[i...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
177
//#pragma GCC optimize("O3") //#pragma comment(linker, "/STACK:1024000000,1024000000") #include <bits/stdc++.h> using namespace std; function<void(void)> ____ = []() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); }; const int MAXN = 2e5 + 7; using LL = int_fast64_t; int n; LL A[MAXN], f[MAXN]; int m...
//#pragma GCC optimize("O3") //#pragma comment(linker, "/STACK:1024000000,1024000000") #include <bits/stdc++.h> using namespace std; function<void(void)> ____ = []() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); }; const int MAXN = 2e5 + 7; using LL = int_fast64_t; int n; LL A[MAXN], f[MAXN]; int m...
[["+", 12, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 12, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
461
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define rep(i, a, b) for (int i = (a); i < (b); i++) #define per(i, a, b) for (int i = (b)-1; i >= (a); i--) #define sz(a) (int)a.size() #define de(a) cout << #a << " = " << a << endl #define dd(a)...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define rep(i, a, b) for (int i = (a); i < (b); i++) #define per(i, a, b) for (int i = (b)-1; i >= (a); i--) #define sz(a) (int)a.size() #define de(a) cout << #a << " = " << a << endl #define dd(a)...
[["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 0, 69, 28, 69, 341, 342, 0, 16, 12, 13], ["+", 0, 69, 28, 69, 341, 342, 0, 16, 12, 13], ["-", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13]]
1
836
N=int(input()) A=[0]+list(map(int,input().split())) dp=[[0]*(N+1) for i in range(3)] dp[0][1]=-float("inf") dp[2][1]=A[0] dp[0][2]=0 dp[1][2]=max(A[0],A[1]) dp[2][2]=-float("inf") for i in range(3,N+1): if i%2==1: for j in range(3): dp[j][i]=max(dp[j][i-2]+A[i],dp[j][i-1]) else: f...
N=int(input()) A=[0]+list(map(int,input().split())) dp=[[0]*(N+1) for i in range(3)] dp[0][1]=-float("inf") dp[2][1]=A[1] dp[0][2]=0 dp[1][2]=max(A[1],A[2]) dp[2][2]=-float("inf") for i in range(3,N+1): if i%2==1: for j in range(3): dp[j][i]=max(dp[j][i-2]+A[i],dp[j][i-1]) else: f...
[["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612]]
5
261
x,y,z = map(int,input()) print(z,x,y)
x,y,z = map(int,input().split()) print(z,x,y)
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
22
#include <bits/stdc++.h> #define ll long long #define ld long double #define F first #define S second //#define ONLINE_JUDGE 1 using namespace std; const int mod = 1e9 + 7; void solve() { int x, y, z; cin >> x >> y >> z; cout << z << " " << x << " " << y << "\n"; } int main() { #ifndef ONLINE_JUDGE freope...
#include <bits/stdc++.h> #define ll long long #define ld long double #define F first #define S second #define ONLINE_JUDGE 1 using namespace std; const int mod = 1e9 + 7; void solve() { int x, y, z; cin >> x >> y >> z; cout << z << " " << x << " " << y << "\n"; } int main() { #ifndef ONLINE_JUDGE freopen(...
[["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
142
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int a, b, c; int tmp; scanf("%d %d %d", &a, &b, &c); tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; printf("%d %d %d\n", &a, &b, &c); return 0; }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int a, b, c; int tmp; scanf("%d %d %d", &a, &b, &c); tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; printf("%d %d %d", a, b, c); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
84
#include "bits/stdc++.h" #define FI first.first #define SE first.second #define TH second #define fi first #define se second #define th second using namespace std; class DebugStream { } LOG; template <typename T> DebugStream &operator<<(DebugStream &s, const T &) { return s; } #ifdef DEBUG #define LOG clog #endif ...
#include "bits/stdc++.h" #define FI first.first #define SE first.second #define TH second #define fi first #define se second #define th second using namespace std; class DebugStream { } LOG; template <typename T> DebugStream &operator<<(DebugStream &s, const T &) { return s; } #ifdef DEBUG #define LOG clog #endif ...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
237
a, b, c = map(int, input().split(' ')) print('{} {} {}'.format(b, c, a))
a, b, c = map(int, input().split(' ')) print('{} {} {}'.format(c, a, b))
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
36
inputline = list(map(lambda x:int(x), input().split(" "))) print(inputline[1], inputline[0], inputline[2])
inputline = list(map(lambda x:int(x), input().split(" "))) print(inputline[2], inputline[0], inputline[1])
[["-", 0, 1, 0, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 206, 612]]
5
43
x = input() xs = x.split(" ") print(xs) xs[0], xs[1] = xs[1], xs[0] xs[0], xs[2] = xs[2], xs[0] print(" ".join(xs))
x = input() xs = x.split(" ") xs[0], xs[1] = xs[1], xs[0] xs[0], xs[2] = xs[2], xs[0] print(" ".join(xs))
[["-", 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, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
68
#include <bits/stdc++.h> #define rep(i, x) for (int i = 1; i < x; i++) typedef long long ll; using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << c << ' ' << b << ' ' << a; }
#include <bits/stdc++.h> #define rep(i, x) for (int i = 1; i < x; i++) typedef long long ll; using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << c << ' ' << a << ' ' << b; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
56
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; swap(a, b); swap(a, c); cout << a << "" << b << "" << c << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; swap(a, b); swap(a, c); cout << a << " " << b << " " << c << endl; }
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
57
/***************************************************************************\ ! JUBAYER ABDULLAH JOY ! 5th Batch, CSE, University of Barishal ! ...
/***************************************************************************\ ! JUBAYER ABDULLAH JOY ! 5th Batch, CSE, University of Barishal ! ...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
713
x, y, z = (int(i) for i in input().split()) a,b = y,x a,c = c,a print(a,b,c," ")
x, y, z = (int(i) for i in input().split()) a,b = y,x a,c = z,a print(a,b,c," ")
[["-", 0, 656, 0, 1, 0, 662, 12, 432, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 432, 0, 22]]
5
48
function Main(input) { input = split(""); var a = parseInt(input[0], 10); var b = parseInt(input[1], 10); var c = parseInt(input[2], 10); a = parseInt(input[1], 10); b = parseInt(input[0], 10); a = parseInt(input[2], 10); c = parseInt(input[1], 10); console.log('%d', a, b, c); } main(require("fs").re...
function Main(input) { input = input.split(" "); var a = parseInt(input[0], 10); var b = parseInt(input[1], 10); var c = parseInt(input[2], 10); a = parseInt(input[1], 10); b = parseInt(input[0], 10); a = parseInt(input[2], 10); c = parseInt(input[1], 10); console.log('%d', a, b, c); } Main(require("...
[["+", 0, 1, 0, 11, 12, 2, 63, 558, 500, 22], ["+", 0, 1, 0, 11, 12, 2, 63, 558, 0, 131], ["+", 0, 11, 12, 2, 3, 3, 0, 557, 0, 491], ["-", 36, 36, 0, 493, 0, 1, 0, 2, 63, 22], ["+", 36, 36, 0, 493, 0, 1, 0, 2, 63, 22], ["-", 0, 2, 3, 3, 0, 2, 63, 558, 559, 560], ["+", 0, 2, 3, 3, 0, 2, 63, 558, 559, 560]]
2
138
line_num = input() line = line_num.split(" ") a = line[0] b = line[1] c = line[2] print(a+" "+c+ " "+b)
line_num = input() line = line_num.split(" ") a = line[0] b = line[1] c = line[2] print(c+" "+a+ " "+b)
[["-", 0, 657, 31, 657, 31, 657, 31, 657, 31, 22], ["+", 0, 657, 31, 657, 31, 657, 31, 657, 31, 22], ["-", 3, 4, 0, 657, 31, 657, 31, 657, 12, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 12, 22]]
5
49
#include <stdio.h> #include <stdlib.h> void swap(int *a, int *b) { int tmp; tmp = *a; *b = *a; *b = tmp; } int main() { int x, y, z; scanf("%d %d %d", &x, &y, &z); swap(&x, &y); swap(&x, &z); printf("%d %d %d", x, y, z); return 0; }
#include <stdio.h> #include <stdlib.h> void swap(int *a, int *b) { int tmp; tmp = *a; *a = *b; *b = tmp; } int main() { int x, y, z; scanf("%d %d %d", &x, &y, &z); swap(&x, &y); swap(&x, &z); printf("%d %d %d", x, y, z); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 31, 66, 28, 22], ["+", 8, 9, 0, 1, 0, 11, 31, 66, 28, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 66, 28, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 66, 28, 22]]
0
99
i = input() l = i.split() print(l) print(l[2] + ' ' + l[0] + ' ' + l[1])
i = input() l = i.split() print(l[2] + ' ' + l[0] + ' ' + l[1])
[["-", 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], ["-", 31, 657, 31, 657, 31, 657, 31, 206, 51, 22]]
5
41
#include <cstdio> #include <iostream> using namespace std; int a, b, c; int main() { cin >> a >> b >> c; printf("%d %d %d", c, b, a); return 0; }
#include <cstdio> #include <iostream> using namespace std; int a, b, c; int main() { cin >> a >> b >> c; printf("%d %d %d", c, a, b); 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
45
from collections import * from heapq import * from itertools import * #from fractions import gcd from decimal import * import copy from bisect import * import time import sys import math input=lambda :sys.stdin.readline().rstrip() sys.setrecursionlimit(10**7) def gcd(a,b): if(a%b==0):return(b) return (gcd(b,a...
from collections import * from heapq import * from itertools import * #from fractions import gcd from decimal import * import copy from bisect import * import time import sys import math input=lambda :sys.stdin.readline().rstrip() sys.setrecursionlimit(10**7) def gcd(a,b): if(a%b==0):return(b) return (gcd(b,a...
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
110
#include <math.h> #include <stdio.h> #include <stdlib.h> int i; #define rep(i, l, r) for (i = (l); i < (r); i++) #define per(i, r, l) for (i = (r); i > (l); i--) int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); swap(&a, &c); swap(&b, &c); printf("%d%d%d", a, b, c); } int swap(int *a, int *b) { int tem...
#include <math.h> #include <stdio.h> #include <stdlib.h> int i; #define rep(i, l, r) for (i = (l); i < (r); i++) #define per(i, r, l) for (i = (r); i > (l); i--) int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); swap(&a, &c); swap(&b, &c); printf("%d %d %d", a, b, c); return 0; } int swap(int *a, int *...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
0
119
#include <iostream> #include <vector> using namespace std; int main() { int x, y, z, temp; cin >> x >> y >> z; temp = x; x = y; y = temp; temp = x; x = z; z = temp; cout << x << "," << y << "," << z << endl; }
#include <iostream> #include <vector> using namespace std; int main() { int x, y, z, temp; cin >> x >> y >> z; temp = x; x = y; y = temp; temp = x; x = z; z = temp; cout << x << " " << y << " " << z << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
73
#include <bits/stdc++.h> #include <sstream> using namespace std; int main() { int a, b, c; cin >> a; cin >> b; cin >> c; cout << c << " " << b << " " << a; }
#include <bits/stdc++.h> #include <sstream> using namespace std; int main() { int a, b, c; cin >> a; cin >> b; cin >> c; cout << c << " " << a << " " << b; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
49
x,y,z=list(map(int,input(),split())) print(z,x,y)
x,y,z=list(map(int,input().split())) print(z,x,y)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
29
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d %d %d\n", b, c, a); return 0; }
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d %d %d\n", c, a, b); 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]]
0
49
#include <bits/stdc++.h> using namespace std; #define ll long long #define lvector vector<ll> #define P pair<ll, ll> #define ALL(a) (a).begin(), (a).end() #define YESNO(i) \ if ((i)) \ ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define lvector vector<ll> #define P pair<ll, ll> #define ALL(a) (a).begin(), (a).end() #define YESNO(i) \ if ((i)) \ ...
[["-", 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
108
# -*- coding: utf-8 -*- import numpy as np x, y, z = map(int, input().split()) a = y b = x c = z a = c c = a print(a, b, c)
# -*- coding: utf-8 -*- import numpy as np x, y, z = map(int, input().split()) a = y b = x c = z c = a a = z print(a, b, c)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
46
#include <bits/stdc++.h> using namespace std; // defined variable and data types and structures here #define ll long long #define ull unsigned long long #define V(a) vector<a> #define VV(a) vector<vector(a)> #define P(a, b) pair<a, b> #define pb push_back #define eb emplace_back // use instead of pb(mp(a,b)) #define ...
#include <bits/stdc++.h> using namespace std; // defined variable and data types and structures here #define ll long long #define ull unsigned long long #define V(a) vector<a> #define VV(a) vector<vector(a)> #define P(a, b) pair<a, b> #define pb push_back #define eb emplace_back // use instead of pb(mp(a,b)) #define ...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
351
package main import "fmt" func main() { var x, y, z string // &はアドレス fmt.Scan(&x, &y, &z) fmt.Println(z + x + y) }
package main import "fmt" func main() { var x, y, z string // &はアドレス fmt.Scan(&x, &y, &z) fmt.Println(z + " " + x + " " + y) }
[["+", 31, 16, 31, 16, 31, 16, 12, 429, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 16, 12, 429, 0, 62]]
7
49
x, y, z = gets.split.map!(&:to_i) puts [z, x, y] % " " load __FILE__ unless $stdin.eof?
x, y, z = gets.split.map!(&:to_i) puts [z, x, y].join(" ") load __FILE__ unless $stdin.eof?
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 17, 109], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 17, 131], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 735, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
4
33
import sys input = sys.stdin.readline def linput(): return [int(x) for x in input().split()] x, y, z = linput() print(z, y, x)
import sys input = sys.stdin.readline def linput(): return [int(x) for x in input().split()] x, y, z = linput() print(z, x, y)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
48
A,B,C=[int(x) for x in input().split(" ")] temp=B B=A A=C C=temp print(A , B , c)
A,B,C=[int(x) for x in input().split(" ")] temp=B B=A A=C C=temp print(A , B , C)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
45
a, b, c = map(str,input().split()) a, b = b, a a, c = c, a xyz = a+b+c print(' '.join(xyz))
a, b, c = map(str,input().split()) a, b = b, a a, c = c, a xyz = [a,b,c] print(' '.join(xyz))
[["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73]]
5
50
#include <bits/stdc++.h> #include <cmath> using namespace std; #define pb push_back #define M 998244353 #define ff first #define ss second #define deb(x) cout < #x < " " < x < endl; #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i <= n; i++) #define FORR(a, b, c) for (int a = b; a >= c...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define pb push_back #define M 998244353 #define ff first #define ss second #define deb(x) cout < #x < " " < x < endl; #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i <= n; i++) #define FORR(a, b, c) for (int a = b; a >= c...
[["-", 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
191
line = gets nums=line.strip.split(' ') p("#{nums[2]} #{nums[0]} #{nums[1]}")
line = gets nums=line.strip.split(' ') puts "#{nums[2]} #{nums[0]} #{nums[1]}"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 24], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 25]]
4
40
def main(): A, B, C = map(int, input().split(' ')) A, B = B, A A, C = C, A pritn(A, B, C) main()
def main(): A, B, C = map(int, input().split(' ')) A, B = B, A A, C = C, A print(A, B, C) main()
[["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22]]
5
51
a, b, c = map(int, input().split()) lis = [c, a, b] print(" ".join(lis))
a, b, c = input().split() lis = [c, a, b] print(" ".join(lis))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
38
a = list(map(int, input().split())) print("{0} {1} {2}".format(a[2], a[0], [1]))
a = list(map(int, input().split())) print("{0} {1} {2}".format(a[2], a[0], a[1]))
[["+", 3, 4, 0, 652, 3, 4, 0, 206, 51, 22]]
5
40