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 <iostream> using namespace std; int main() { int A[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int l; cin >> l; cout << A[l + 1] << endl; return 0; }
#include <iostream> using namespace std; int main() { int A[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int l; cin >> l; cout << A[l - 1] << endl; return 0; }
[["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
105
#include <iostream> #include <stdio.h> using namespace std; int main() { int ar[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << ar[n] << endl; return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { int ar[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << ar[n - 1] << endl; return 0; }
[["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
105
import java.util.*; public class Main { public static void main(String[] args) { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner sc = new Scanner(System.in); int k = sc.nextInt(); System.out.println(a[k]); } }
import java.util.*; public class Main { public static void main(String[] args) { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner sc = new Scanner(System.in); int k = sc.nextInt(); System.out.println(a[k - 1]); }...
[["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]]
3
127
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; void debug_out() { cerr << endl; } template <class T> ostream &prnt(ostream &out, T v) { out << v.size() << '\n'; for (auto e : v) out << e << ' '; return o...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; void debug_out() { cerr << endl; } template <class T> ostream &prnt(ostream &out, T v) { out << v.size() << '\n'; for (auto e : v) out << e << ' '; return o...
[["+", 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
441
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(32); vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; cin >> K; cout << vec[K]; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(32); vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; cin >> K; cout << vec[K - 1]; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
103
#include <iostream> using namespace std; int main(void) { // Your code here! int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}, K; cin >> K; cout << a[K]; }
#include <iostream> using namespace std; int main(void) { // Your code here! int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}, K; cin >> K; cout << a[K - 1]; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
98
#include <iostream> using namespace std; int main() { int n, a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cin >> n; cout << a[n + 1] << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cin >> n; cout << a[n - 1] << endl; return 0; }
[["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
103
#include <bits/stdc++.h> using namespace std; int a[35] = {0, 1, 1, 1, 2, 1, 2, 1, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { int n; cin >> n; cout << a[n]; return 0; }
#include <bits/stdc++.h> using namespace std; int a[35] = {0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { int n; cin >> n; cout << a[n]; return 0; }
[["-", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 0, 30, 0, 43, 49, 50, 51, 83, 0, 21]]
1
107
#include <stdio.h> int main(void) { int K; scanf("%d", &K); int c[33] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; printf("%d", c[K + 1]); return 0; }
#include <stdio.h> int main(void) { int K; scanf("%d", &K); int c[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; printf("%d\n", c[K - 1]); return 0; }
[["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 2, 3, 4, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]]
0
111
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = 20 th = K-1 print(elements[th])
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = int(input()) th = K-1 print(elements[th])
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
82
#include <iostream> #include <utility> #include <vector> using namespace std; int main(void) { int K; vector<int> L = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cin >> K; cout << L.at(K) << endl; return 0; }
#include <iostream> #include <utility> #include <vector> using namespace std; int main(void) { int K; vector<int> L = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cin >> K; cout << L.at(K - 1) << endl; return 0; }
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
110
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define ll long long #define MOD 1000000007 #define MAX 1000010 #define test(a, n) REP(i, n) cout << a[i] << " "; using namespace std; int main() {...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define ll long long #define MOD 1000000007 #define MAX 1000010 #define test(a, n) REP(i, n) cout << a[i] << " "; using namespace std; int main() {...
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
141
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x] << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x - 1] << '\n'; return 0; }
[["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
105
#include <iostream> using namespace std; int main() { int r[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << r[k]; return 0; }
#include <iostream> using namespace std; int main() { int r[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << r[k - 1]; return 0; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
100
#include <stdio.h> int main() { int K; scanf("%d", &K); if ((K == 4) || (K == 6) || (K == 9) || (K == 10) || (K == 14) || (K == 21) || (K == 22) || (K == 24) || (K == 25)) { printf("2"); } else if ((K == 8) || (K == 12) || (K == 18) || (K == 20) || (K == 27)) { printf("5"); } else if (K == 16) {...
#include <stdio.h> int main() { int K; scanf("%d", &K); if ((K == 4) || (K == 6) || (K == 9) || (K == 10) || (K == 14) || (K == 21) || (K == 22) || (K == 26) || (K == 25)) { printf("2"); } else if ((K == 8) || (K == 12) || (K == 18) || (K == 20) || (K == 27)) { printf("5"); } else if (K == 16) {...
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13]]
0
213
#include <iostream> #include <vector> using namespace std; int main(void) { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int i = 0; cin >> i; cout << a[i]; return 0; }
#include <iostream> #include <vector> using namespace std; int main(void) { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int i = 0; cin >> i; cout << a[i - 1]; return 0; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
105
A = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = input() k = int(K) print(A[k+1])
A = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = input() k = int(K) print(A[k-1])
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
87
#include <stdio.h> int main() { int a[40] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; scanf("%d", &k); printf("%d", a[k] + 1); return 0; }
#include <stdio.h> int main() { int a[40] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; scanf("%d", &k); printf("%d \t", a[k - 1]); 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], ["-", 0, 2, 3, 4, 0, 16, 31, 69, 0, 73], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 0, 73]]
0
110
import java.math.*; import java.util.*; class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { List<Integer> line = new ArrayList<>(); line.add(1); line.add(1); line.add(1); line.add(2); line.add(1); line.add(2); line.ad...
import java.math.*; import java.util.*; class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { List<Integer> line = new ArrayList<>(); line.add(1); line.add(1); line.add(1); line.add(2); line.add(1); line.add(2); line.ad...
[["+", 3, 4, 0, 492, 3, 4, 0, 16, 17, 33], ["+", 3, 4, 0, 492, 3, 4, 0, 16, 12, 499]]
3
318
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 6) { cout << 2 << endl; } else if (x == 4) { cout << 2 << endl; } else if (x == 9) { cout << 2 << endl; } else if (x == 10) { cout << 2 << endl; } else if (x == 14) { cout << 2 << endl; } else if (x...
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 6) { cout << 2 << endl; } else if (x == 4) { cout << 2 << endl; } else if (x == 9) { cout << 2 << endl; } else if (x == 10) { cout << 2 << endl; } else if (x == 14) { cout << 2 << endl; } else if (x...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
312
my_list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] N = input() N = int(N) print(my_list[N])
my_list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] N = input() N = int(N) print(my_list[N-1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
85
#include <iostream> int main() { int data[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; std::cin >> n; std::cout << data[n + 1]; return 0; }
#include <iostream> int main() { int data[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; std::cin >> n; std::cout << data[n - 1] << std::endl; return 0; }
[["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 343, 345, 348], ["+", 8, 9, 0, 1, 0, 16, 12, 343, 0, 349], ["+", 8, 9, 0, 1, 0, 16, 12, 343, 141, 22]]
1
103
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() using namespace std; int main() { int k; cin >> k; vector<int> v = {1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << v.at(k ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() using namespace std; int main() { int k; cin >> k; vector<int> v = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << v....
[["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
112
import java.util.*; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); int t[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = s.nextInt(); System.out.println(t[k + 1]); } }
import java.util.*; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); int t[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = s.nextInt(); System.out.println(t[k - 1]); } }
[["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]]
3
129
#include <bits/stdc++.h> using namespace std; int main() { int n; int k[32]; cin >> n; k[0] = 1; k[1] = 1; k[2] = 1; k[3] = 2; k[4] = 1; k[5] = 2; k[6] = 1; k[7] = 5; k[8] = 2; k[9] = 2; k[10] = 1; k[11] = 5; k[12] = 1; k[13] = 2; k[14] = 1; k[15] = 14; k[16] = 1; k[17] = 5; ...
#include <bits/stdc++.h> using namespace std; int main() { int n; int k[32]; cin >> n; k[0] = 1; k[1] = 1; k[2] = 1; k[3] = 2; k[4] = 1; k[5] = 2; k[6] = 1; k[7] = 5; k[8] = 2; k[9] = 2; k[10] = 1; k[11] = 5; k[12] = 1; k[13] = 2; k[14] = 1; k[15] = 14; k[16] = 1; k[17] = 5; ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
263
#include <stdio.h> int main() { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; scanf("%d", &k); printf("%d", &a[k - 1]); }
#include <stdio.h> int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; scanf("%d", &k); printf("%d", a[k - 1]); }
[["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
107
#include "bits/stdc++.h" using namespace std; int main() { string str; str = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, " "15, 2, 2, 5, 4, 1, 4, 1, 51"; vector<string> list; int start = 0; do { int first = str.find_first_of(',', start); int tmp_start, tmp_end; ...
#include "bits/stdc++.h" using namespace std; int main() { string str; str = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, " "15, 2, 2, 5, 4, 1, 4, 1, 51"; vector<string> list; int start = 0; do { int first = str.find_first_of(',', start); int tmp_start, tmp_end; ...
[["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]]
1
177
#include <stdio.h> int main(int argc, char const *argv[]) { int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int b; scanf("%d\n", &b); printf("%d\n", a[b]); return 0; }
#include <stdio.h> int main(int argc, char const *argv[]) { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int b; scanf("%d\n", &b); printf("%d\n", a[b - 1]); return 0; }
[["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]]
0
118
x = int(input()) x_list = 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 print(y[x])
x = int(input()) y = 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 print(y[x-1])
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
80
#include <iostream> #include <string.h> using namespace std; int main(void) { char str[] = "1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51"; string line[32]; char *temp; temp = strtok(str, ","); line[0] = temp; for (int i = 1; i < 31; i++) { temp = strtok(NULL, ","); if (t...
#include <iostream> #include <string.h> using namespace std; int main(void) { char str[] = "1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51"; string line[32]; char *temp; temp = strtok(str, ","); line[0] = temp; for (int i = 1; i < 32; i++) { temp = strtok(NULL, ","); if (t...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
110
#include "bits/stdc++.h" using namespace std; int main() { int K; cin >> K; vector<int> vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec[K + 1] << endl; }
#include "bits/stdc++.h" using namespace std; int main() { int K; cin >> K; vector<int> vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec[K - 1] << endl; }
[["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
104
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int k; cin >> k; string s; int count = 0; s = "1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51"; vector<int> vec; for (int i = 0; i < s.l...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int k; cin >> k; string s; int count = 0; s = "1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51"; vector<int> vec; for (int i = 0; i < s.l...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
175
#include <algorithm> #include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; void split(const string &str, char delim, vector<int> &ret) { size_t index = 0; while (index < str.size()) { size_t next = str.find(delim, index); if (next == string::npos) break; ...
#include <algorithm> #include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; void split(const string &str, char delim, vector<int> &ret) { size_t index = 0; while (index < str.size()) { size_t next = str.find(delim, index); if (next == string::npos) break; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
204
#include <stdio.h> int main(void) { int k; int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &k); printf("%d", a[k]); return 0; }
#include <stdio.h> int main(void) { int k; int a[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &k); printf("%d", a[k - 1]); return 0; }
[["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]]
0
108
import java.util.*; public class Main { public static void main(String[] args) { int[] term = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner s = new Scanner(System.in); int a = s.nextInt(); System.out.println(term[a ...
import java.util.*; public class Main { public static void main(String[] args) { int[] term = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner s = new Scanner(System.in); int a = s.nextInt(); System.out.println(term[a ...
[["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]]
3
129
#include <stdio.h> int main() { int c[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; scanf("%d", &K); if (K >= 1 && K <= 32) { printf(c[K - 1]); } }
#include <stdio.h> int main() { int c[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; scanf("%d", &K); if (K >= 1 && K <= 32) { printf("%d", c[K - 1]); } }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 21]]
0
115
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final Integer[] input = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int a = sc.nextInt(); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final Integer[] input = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int a = sc.nextInt(); ...
[["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]]
3
128
#include <bits/stdc++.h> using namespace std; int main() { string PON = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, " "2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51"; int k; cin >> k; if (k <= 16) { cout << PON.at((k - 1) * 3); } if ((16 <= k) && (k <= 24)) { cout << PON.at(...
#include <bits/stdc++.h> using namespace std; int main() { string PON = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, " "2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51"; int k; cin >> k; if (k <= 16) { cout << PON.at((k - 1) * 3); } if ((16 <= k) && (k <= 24)) { cout << PON.at(...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
136
#include <algorithm> #include <iostream> #include <numeric> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int K; cin >> K; vector<int> vec{1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << ve...
#include <algorithm> #include <iostream> #include <numeric> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int K; cin >> K; vector<int> vec{1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << ve...
[["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
109
#include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { // freopen(".in","r",stdin); // freopen(".out","w",stdout); int a[40] = {0, 1, 1, 1, 2, 1, 2, 1, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << a[n] ...
#include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { // freopen(".in","r",stdin); // freopen(".out","w",stdout); int a[40] = {0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << a[n] << end...
[["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
113
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N == 1 || N == 2 || N == 3 || N == 5 || N == 6 | N == 13 || N == 15 || N == 17 || N == 19 || N == 23 || N == 29 || N == 31) { cout << 1 << endl; return 0; } if (N == 4 || N == 6 || N == 9 || N == 10 || N == 14 | N ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N == 1 || N == 2 || N == 3 || N == 5 || N == 7 | N == 13 || N == 15 || N == 17 || N == 19 || N == 23 || N == 29 || N == 31) { cout << 1 << endl; return 0; } if (N == 4 || N == 6 || N == 9 || N == 10 || N == 14 | N ...
[["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
234
/*********************************************************************************\ * _________ _ _ ________ _ _ __ ________ * * |___ ___|| | | || ______|| | | | / \ | ____ | * * | | | | | || |______ | |_____| | / /\ \ | |____| | * * | | | | | ||...
/*********************************************************************************\ * _________ _ _ ________ _ _ __ ________ * * |___ ___|| | | || ______|| | | | / \ | ____ | * * | | | | | || |______ | |_____| | / /\ \ | |____| | * * | | | | | ||...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
515
#include <iostream> using namespace std; int K; int l[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { cin >> K; cout << l[K] << endl; return 0; }
#include <iostream> using namespace std; int K; int l[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { cin >> K; cout << l[K - 1] << endl; return 0; }
[["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
103
#include <bits/stdc++.h> using namespace std; int main() { int array[34] = {-1, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << array[k + 1]; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int array[34] = {-1, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << array[k]; return 0; }
[["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["-", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
105
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); String tmp = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51"; String[] h = tmp.sp...
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); String tmp = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51"; String[] h = tmp.sp...
[["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]]
3
86
array = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] k = int(input()) print(str(array[k + 1]))
array = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] k = int(input()) print(str(array[k - 1]))
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
87
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; vector<int> vec(32); vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec.at(K) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; vector<int> vec(32); vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec.at(K - 1) << endl; }
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
107
#include <algorithm> //辞書順=next_permutation #include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <locale> #include <math.h> #include <queue> #include <random> #include <set> #include <sstream> #include <stdio.h> #include <string.h> #include <string> //char 小文字のほうが32大きい #include <time.h> #...
#include <algorithm> //辞書順=next_permutation #include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <locale> #include <math.h> #include <queue> #include <random> #include <set> #include <sstream> #include <stdio.h> #include <string.h> #include <string> //char 小文字のほうが32大きい #include <time.h> #...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
579
li = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(li[input()-1])
li = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(li[int(input())-1])
[["+", 3, 4, 0, 206, 206, 657, 31, 652, 63, 22], ["+", 0, 206, 206, 657, 31, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
78
K = int(input()) Ans = 0 if K == 4 or K == 6 or K == 9 or K == 10 or K == 14 or K == 21 or K == 22 or K == 25 or K == 26: Ans = 2 elif K == 28 or K == 30: Ans = 4 elif K == 8 or K == 12 or K == 18 or K == 20 or K == 27: Ans = 5 elif K == 16: Ans = 14 elif K == 24: Ans = 15 elif K == 32: Ans = 51 else: Ans...
K = int(input()) Ans = 0 if K == 4 or K == 6 or K == 9 or K == 10 or K == 14 or K == 21 or K == 22 or K == 25 or K == 26: Ans = 2 elif K == 28 or K == 30: Ans = 4 elif K == 8 or K == 12 or K == 18 or K == 20 or K == 27: Ans = 5 elif K == 16: Ans = 14 elif K == 24: Ans = 15 elif K == 32: Ans = 51 else: Ans...
[["+", 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
116
// Sakhiya07 - Yagnik Sakhiya #include <bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define ff first #define ss second #define pb push_back #define mp make_pair #define bp __builtin_popcountll #define MOD 1000000007 #define FAST ...
// Sakhiya07 - Yagnik Sakhiya #include <bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define ff first #define ss second #define pb push_back #define mp make_pair #define bp __builtin_popcountll #define MOD 1000000007 #define FAST ...
[["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13]]
1
172
#include <iostream> using namespace std; int main() { int num[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << num[k + 1] << endl; return 0; }
#include <iostream> using namespace std; int main() { int num[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << num[k - 1] << endl; return 0; }
[["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
104
num = [ 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51, ] input = int(input()) print(num[input])
num = [ 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51, ] input = int(input()) print(num[input - 1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
83
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; int main() { int i = 0; int a[33] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, ...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; int main() { int i = 0; int a[33] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, ...
[["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
124
d = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] k = gets.to_i puts d[k]
d = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] k = gets.to_i puts d[k-1]
[["+", 0, 652, 3, 4, 0, 742, 0, 738, 17, 33], ["+", 0, 652, 3, 4, 0, 742, 0, 738, 12, 612]]
4
77
import java.util.*; public class Main { public static void main(String args[]) { int[] a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.println(a[n]); } ...
import java.util.*; public class Main { public static void main(String args[]) { int[] a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.println(a[n - 1]); ...
[["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]]
3
127
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int ki[] = new int[] {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2...
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int ki[] = new int[] {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2...
[["-", 0, 492, 3, 4, 0, 16, 31, 504, 0, 73], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 1, 0, 492, 3, 4, 0, 504, 0, 73]]
3
140
n = int(input()) data = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51'.split(', ') print(data[n])
n = int(input()) data = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51'.split(', ') print(data[n-1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
27
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; if (A == 1 || A == 2 || A == 3 || A == 5 || A == 7 || A == 11 || A == 13 || A == 15 || A == 17 || A == 19 || A == 23 || A == 29 || A == 31) { cout << 1 << endl; } if (A == 4 || A == 9 || A == 10 || A == 14 || A == 21 || A...
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; if (A == 1 || A == 2 || A == 3 || A == 5 || A == 7 || A == 11 || A == 13 || A == 15 || A == 17 || A == 19 || A == 23 || A == 29 || A == 31) { cout << 1 << endl; } if (A == 4 || A == 6 || A == 9 || A == 10 || A == 14 || A ...
[["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 60]]
1
213
#include <bits/stdc++.h> using namespace std; int main() { int arr[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int t; cin >> t; cout << arr[t + 1]; }
#include <bits/stdc++.h> using namespace std; int main() { int arr[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int t; cin >> t; cout << arr[t - 1]; }
[["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
99
K=int(input()) if K==32: print(51) elif K==24: print(15) elif K==16: print(14) elif K==8 or K==12 or K==18 or K==20 or K==27: print(5) elif K==28 or K==30: print(4) elif K==4 or K==6 or K==9 or K==10 or K==14 or K==21 or K==22 or K==25 or K==26: print(2)
K=int(input()) if K==32: print(51) elif K==24: print(15) elif K==16: print(14) elif K==8 or K==12 or K==18 or K==20 or K==27: print(5) elif K==28 or K==30: print(4) elif K==4 or K==6 or K==9 or K==10 or K==14 or K==21 or K==22 or K==25 or K==26: print(2) else: print(1)
[["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
114
arr = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = int(input()) arr[K-1]
arr = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] K = int(input()) print(arr[K-1])
[["+", 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, 25]]
5
81
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define mod 1000000007 int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 1...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define mod 1000000007 int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 1...
[["-", 0, 2, 3, 4, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]]
0
170
package main import ( "fmt" ) func main() { var N int data := []int{1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51} fmt.Scanf("%d\n", &N) fmt.Println(data[N]) }
package main import ( "fmt" ) func main() { var N int data := []int{1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51} fmt.Scanf("%d\n", &N) fmt.Println(data[N-1]) }
[["+", 0, 2, 3, 4, 0, 437, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 437, 71, 16, 12, 433], ["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]]
7
115
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") using namespace std; #define ll long long #define pb push_back #define mp make_pair #define ull unsigned long long #define rep(n) for (ll i = 0; i < n; i++) #define repd(n) for (ll i = n - 1; i >= 0; i--) #define MOD 1000000007 ...
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") using namespace std; #define ll long long #define pb push_back #define mp make_pair #define ull unsigned long long #define rep(n) for (ll i = 0; i < n; i++) #define repd(n) for (ll i = n - 1; i >= 0; i--) #define MOD 1000000007 ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
209
if __name__ == "__main__": a = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51' k = list(a.split(', ')) i = int(input()) print(k[i+1])
if __name__ == "__main__": a = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51' k = list(a.split(', ')) i = int(input()) print(k[i-1])
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
42
#include <bits/stdc++.h> using namespace std; int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x]; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a[33] = {0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x]; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
101
#include <stdio.h> int main() { int K; int S[31] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &K); printf("%d", S[K - 1]); return 0; }
#include <stdio.h> int main() { int K; int S[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &K); printf("%d", S[K - 1]); return 0; }
[["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]]
0
110
#include <bits/stdc++.h> using namespace std; /* *****************code written By********************** ..................Marajul islam....................... ...................BSMRSTU,CSE........................ */ int sc1() { int x; scanf("%d", &x); return x; } long long sc2() { long long x; scanf("%ll...
#include <bits/stdc++.h> using namespace std; /* *****************code written By********************** ..................Marajul islam....................... ...................BSMRSTU,CSE........................ */ int sc1() { int x; scanf("%d", &x); return x; } long long sc2() { long long x; scanf("%ll...
[["+", 0, 30, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
361
import java.util.Scanner; class A { public static int[] is = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; public static void main(String... args) { final Scanner sc = new Scanner(System.in); final int K = sc.nextInt() - ...
import java.util.Scanner; class A { public static int[] is = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; public static void main(String... args) { final Scanner sc = new Scanner(System.in); final int K = sc.nextInt() - 1...
[["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["-", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]]
3
155
"use strict"; function main(input) { let a = [ 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 ]; let k = parseInt(input[0]); console.log(a[k + 1]); } main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));
"use strict"; function main(input) { let a = [ 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 ]; let k = parseInt(input[0]); console.log(a[k - 1]); } main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));
[["-", 0, 2, 3, 3, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 3, 0, 69, 71, 16, 17, 33]]
2
135
#include <bits/stdc++.h> using namespace std; int a[1001] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { int k; cin >> k; cout << a[k + 1]; }
#include <bits/stdc++.h> using namespace std; int a[1001] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int main() { int k; cin >> k; cout << a[k - 1]; }
[["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
100
#include <bits/stdc++.h> using namespace std; using lint = long; using ll = long long; #define rep(i, n) for (lint(i) = 0; (i) < (lint)(n); (i)++) #define repInRange(i, start, end) for (lint(i) = (start); (i) < (end); ++(i)) using lpair = pair<lint, lint>; using Vecint = vector<lint>; using Llist = list<lint>; ll pow(...
#include <bits/stdc++.h> using namespace std; using lint = long; using ll = long long; #define rep(i, n) for (lint(i) = 0; (i) < (lint)(n); (i)++) #define repInRange(i, start, end) for (lint(i) = (start); (i) < (end); ++(i)) using lpair = pair<lint, lint>; using Vecint = vector<lint>; using Llist = list<lint>; ll pow(...
[["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
260
K = int(input()) l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(l[K])
K = int(input()) l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(l[(K-1)])
[["+", 0, 652, 3, 4, 0, 206, 206, 23, 0, 24], ["+", 3, 4, 0, 206, 206, 23, 0, 657, 17, 33], ["+", 3, 4, 0, 206, 206, 23, 0, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 206, 206, 23, 0, 25]]
5
82
import math from collections import deque def main(): t = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] a = int(input()) print(t[a+1]) if __name__ == "__main__": main()
import math from collections import deque def main(): t = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] a = int(input()) print(t[a-1]) if __name__ == "__main__": main()
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
105
#include <iostream> using namespace std; int main() { char str[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << str[k - 1] << endl; return 0; }
#include <iostream> using namespace std; int main() { char str[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << (int)str[k - 1] << endl; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
105
#include <iostream> using namespace std; int main() { int i; cin >> i; int k[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << k[i]; }
#include <iostream> using namespace std; int main() { int i; cin >> i; int k[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << k[i - 1]; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
97
K = input() t = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(t[K + 1])
K = int(input()) t = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(t[K - 1])
[["+", 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, 25], ["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
81
#include <iostream> using namespace std; int main() { char a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << a[k - 1] << endl; }
#include <iostream> using namespace std; int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k; cin >> k; cout << a[k - 1] << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 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]]
1
102
def main(): sequence =list(map(int, "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51".split(', '))) kth = int(input()) print(sequence(kth - 1)) main()
def main(): sequence =list(map(int, "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51".split(', '))) kth = int(input()) print(sequence[kth - 1]) main()
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]]
5
45
#include <iostream> using namespace std; int main() { int arr[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << arr[n]; }
#include <iostream> using namespace std; int main() { int arr[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << arr[n - 1]; }
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
98
#include <bits/stdc++.h> #define ll long long #define V vector<long long> #define VV vector<vector<long long>> #define rep(i, n) for (ll(i) = 0; (i) < (n); ++(i)) using namespace std; int main() { ll a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1...
#include <bits/stdc++.h> #define ll long long #define V vector<long long> #define VV vector<vector<long long>> #define rep(i, n) for (ll(i) = 0; (i) < (n); ++(i)) using namespace std; int main() { ll a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1...
[["+", 0, 14, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
117
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int k; cin >> k; vector<int> a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; co...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int k; cin >> k; vector<int> a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; co...
[["-", 0, 16, 12, 16, 31, 69, 341, 342, 0, 73], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 1, 0, 16, 12, 69, 341, 342, 0, 73]]
1
127
l=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51,51] k=int(input()) print(l[k+1])
l=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51,51] k=int(input()) k-=1 print(l[k])
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 110], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612], ["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["-", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
86
#include <stdio.h> int main(void) { int n; int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &n); printf("%d", a[n + 1]); return 0; }
#include <stdio.h> int main(void) { int n; int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &n); printf("%d", a[n - 1]); return 0; }
[["-", 0, 2, 3, 4, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]]
0
111
#include <bits/stdc++.h> #define int long long #define f first #define s second using namespace std; int32_t main() { if (fopen("input.txt", "r")) freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout); ios::sync_with_stdio(0), cin.tie(0); int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, ...
#include <bits/stdc++.h> #define int long long #define f first #define s second using namespace std; int32_t main() { if (fopen("input.txt", "r")) freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout); ios::sync_with_stdio(0), cin.tie(0); int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, ...
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
160
inp = int(input()) lis = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(lis[inp%32])
inp = int(input()) lis = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print(lis[(inp-1) % 32])
[["+", 3, 4, 0, 206, 206, 657, 31, 23, 0, 24], ["+", 0, 206, 206, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 206, 206, 657, 31, 23, 0, 657, 12, 612], ["+", 3, 4, 0, 206, 206, 657, 31, 23, 0, 25]]
5
84
lst = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] num = int(input()) print(lst[num])
lst = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] num = int(input()) print(lst[num - 1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
82
#include <iostream> #include <stdio.h> using namespace std; main() { int k; int N[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &k); printf("%d", N[k]); }
#include <iostream> #include <stdio.h> using namespace std; main() { int k; int N[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; scanf("%d", &k); printf("%d", N[k - 1]); }
[["+", 3, 4, 0, 69, 341, 342, 0, 16, 17, 33], ["+", 3, 4, 0, 69, 341, 342, 0, 16, 12, 13]]
1
110
n = int(input()) l = (1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51) print(l[n+1])
n = int(input()) l = (1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51) print(l[n-1])
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33]]
5
84
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int[] K = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = sc.nextInt(); System.out.println(K[k + 1]); } }
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int[] K = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = sc.nextInt(); System.out.println(K[k - 1]); } }
[["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]]
3
129
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int K; scanf("%d", &K); int array[32] = {0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; printf("%d", array[K]); return...
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int K; scanf("%d", &K); int array[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; printf("%d", array[K - 1]); retur...
[["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]]
0
119
#include <bits/stdc++.h> using namespace std; int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x + 1] << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int x; cin >> x; cout << a[x - 1] << endl; }
[["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
102
#include <bits/stdc++.h> using namespace std; int main(void) { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << a[n + 1]; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int n; cin >> n; cout << a[n - 1]; return 0; }
[["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33]]
1
104
k = input() z = int(k) s = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print (s[z])
k = input() z = int(k) s = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51] print (s[z-1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
85
#include <stdio.h> int main(void) { int k; scanf("%d", &k); if (k == 32) printf("51"); else if (k == 24) printf("15"); else if (k == 16) printf("14"); else if (k == 29 || k == 31) printf("4"); else if (k == 8 || k == 12 || k == 18 || k == 20 || k == 27) printf("5"); else if (k == 4...
#include <stdio.h> int main(void) { int k; scanf("%d", &k); if (k == 32) printf("51"); else if (k == 24) printf("15"); else if (k == 16) printf("14"); else if (k == 28 || k == 30) printf("4"); else if (k == 8 || k == 12 || k == 18 || k == 20 || k == 27) printf("5"); else if (k == 4...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]]
0
168
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; // 配列 vector<int> vec; // int型の配列変数vecを宣言 vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec.at(K) << endl; // }
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; // 配列 vector<int> vec; // int型の配列変数vecを宣言 vec = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; cout << vec.at(K - 1) << endl; // }
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
107
#include <algorithm> #include <cstdint> #include <cstring> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int main() { const int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int ...
#include <algorithm> #include <cstdint> #include <cstring> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int main() { const int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int ...
[["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
114
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; if (A == 4 || A == 6 || A == 9 || A == 10 || A == 14 || A == 21 || A == 22 || A == 25 || A == 26) { cout << "2" << endl; } else if (A == 8 || A == 12 || A == 18 || A == 20 || A == 27) { cout << "5" << endl; } else if (A...
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; if (A == 4 || A == 6 || A == 9 || A == 10 || A == 14 || A == 21 || A == 22 || A == 25 || A == 26) { cout << "2" << endl; } else if (A == 8 || A == 12 || A == 18 || A == 20 || A == 27) { cout << "5" << endl; } else if (A...
[["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
179
a = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51' k = int(input()) b = a.split(", ") print(b[k])
a = '1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51' k = int(input()) b = a.split(", ") print(b[k-1])
[["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
30