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 <stdio.h>
int main(void) {
int n[] = {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", n[k + 1]);
} | #include <stdio.h>
int main(void) {
int n[] = {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", n[k - 1]);
} | [["-", 0, 2, 3, 4, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]] | 0 | 107 |
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]
k = int(input())
print(l[k]) | 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]
k = int(input()) - 1
print(l[k]) | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 82 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
scan.close();
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};
System.... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
scan.close();
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};
System.... | [["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]] | 3 | 132 |
#include <bits/stdc++.h>
using namespace std;
int main() {
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};
int N;
cin >> N;
int K;
K = N + 1;
cout << vec.at(K) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
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};
int N;
cin >> N;
int K;
K = N - 1;
cout << vec.at(K) << endl;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 111 |
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
list.add(1);
list.add(1);
list.add(1);... | import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
list.add(1);
list.add(1);
list.add(1);... | [["+", 3, 4, 0, 492, 3, 4, 0, 16, 17, 33], ["+", 3, 4, 0, 492, 3, 4, 0, 16, 12, 499]] | 3 | 311 |
num = 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[num]) | num = 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[num - 1]) | [["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 146 |
K = input()
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(list[int(K)]) | K = input()
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(list[int(K) -1]) | [["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 82 |
#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]);
return 0;
} | #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]);
return 0;
} | [["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]] | 0 | 108 |
#include <cstdio>
using namespace std;
int n;
int a[100] = {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() {
scanf("%d", &n);
n--;
printf("%d", a[n - 1]);
} | #include <cstdio>
using namespace std;
int n;
int a[100] = {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() {
scanf("%d", &n);
printf("%d", a[n - 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 | 114 |
#include <stdio.h>
int main() {
int a[33] = {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 k;
scanf("%d", &k);
printf("%d", a[k]);
return 0;
} | #include <stdio.h>
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 k;
scanf("%d", &k);
printf("%d", a[k]);
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]] | 0 | 114 |
#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;
int main() {
char s[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, ... | #include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;
int main() {
int s[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 145 |
#include <stdio.h>
int main() {
int K;
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", &K);
printf("%d", A[K]);
return 0;
} | #include <stdio.h>
int main() {
int K;
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", &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 |
#include <bits/stdc++.h>
#define F first
#define S second
#define pb(x) push_back(x)
#define forr(i, a, b) for (int i = a; i <= b; i++)
#define sz(s) int(s.size())
#define ioi ios_base::sync_with_stdio(false)
#define all(x) x.begin(), x.end()
#define tie ... | #include <bits/stdc++.h>
#define F first
#define S second
#define pb(x) push_back(x)
#define forr(i, a, b) for (int i = a; i <= b; i++)
#define sz(s) int(s.size())
#define ioi ios_base::sync_with_stdio(false)
#define all(x) x.begin(), x.end()
#define tie ... | [["+", 0, 16, 12, 69, 341, 342, 0, 27, 17, 68]] | 1 | 143 |
#include <bits/stdc++.h>
using namespace std;
// cin >> a >> b;
// coud << "" << << endl;
void 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;
cin >> K;
cout << a[K + 1] << endl;
}
int main() {
Main();
return 0;
... | #include <bits/stdc++.h>
using namespace std;
// cin >> a >> b;
// coud << "" << << endl;
void 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;
cin >> K;
cout << a[K - 1] << endl;
}
int main() {
Main();
return 0;
... | [["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
/* vector<int> A(N);
vector<pair<int, int> > tasks; #ソートした場合、1つ目でソート
tie(b, a) = p.at(i); #pairを分割
tasks.emplace_back(b, a) #配列tasksの最後に(b,a)を追加
xの二乗: pow(x, 2.0)
小さい順: sort(v.begin... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
/* vector<int> A(N);
vector<pair<int, int> > tasks; #ソートした場合、1つ目でソート
tie(b, a) = p.at(i); #pairを分割
tasks.emplace_back(b, a) #配列tasksの最後に(b,a)を追加
xの二乗: pow(x, 2.0)
小さい順: sort(v.begin... | [["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33]] | 1 | 136 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1000000 + 5;
const ll mod = 1000000007;
int main() {
int a[40] = {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 k;
cin >> k;
cout << a[k + 1] << endl... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1000000 + 5;
const ll mod = 1000000007;
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;
cin >> k;
cout << a[k - 1] << endl;
re... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21], ["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]] | 1 | 128 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int M = 32;
int term[M] = {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 << term[k];
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int M = 32;
int term[M] = {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 << term[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 | 106 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
n = int(input().strip())
a_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(a_list[n])
if __name__ == '__main__':
main()
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
n = int(input().strip())
a_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(a_list[n - 1])
if __name__ == '__main__':
main()
| [["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 103 |
#include <algorithm>
#include <iostream>
using namespace std;
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 main() {
int n;
cin >> n;
cout << a[n];
}
| #include <algorithm>
#include <iostream>
using namespace std;
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 main() {
int n;
cin >> n;
cout << a[n];
}
| [["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 21]] | 1 | 100 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int Ks[] = new int[31];
Ks[0] = 1;
Ks[1] = 1;
Ks[2] = 1;
Ks[3] = 2;
Ks[4] = 1;
Ks[5] = 2;
Ks[6] = 1;
Ks[7] = 5;
Ks[8] = 2;
Ks... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int Ks[] = new int[32];
Ks[0] = 1;
Ks[1] = 1;
Ks[2] = 1;
Ks[3] = 2;
Ks[4] = 1;
Ks[5] = 2;
Ks[6] = 1;
Ks[7] = 5;
Ks[8] = 2;
Ks... | [["-", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499], ["+", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499]] | 3 | 292 |
#include <cmath>
#include <iostream>
#include <vector>
int a() {
int n;
std::cin >> n;
std::vector<int> vec(32);
vec[0] = 1;
vec[1] = 1;
vec[2] = 1;
vec[3] = 2;
vec[4] = 1;
vec[5] = 2;
vec[6] = 1;
vec[7] = 5;
vec[8] = 2;
vec[9] = 2;
vec[10] = 1;
vec[11] = 5;
vec[12] = 1;
vec[13] = 2;... | #include <cmath>
#include <iostream>
#include <vector>
int a() {
int n;
std::cin >> n;
std::vector<int> vec(32);
vec[0] = 1;
vec[1] = 1;
vec[2] = 1;
vec[3] = 2;
vec[4] = 1;
vec[5] = 2;
vec[6] = 1;
vec[7] = 5;
vec[8] = 2;
vec[9] = 2;
vec[10] = 1;
vec[11] = 5;
vec[12] = 1;
vec[13] = 2;... | [["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13]] | 1 | 292 |
#include <bits/stdc++.h>
using namespace std;
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 main() {
int k;
cout << a[k - 1];
} | #include <bits/stdc++.h>
using namespace std;
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 main() {
int k;
cin >> k;
cout << a[k - 1];
} | [["+", 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 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
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};
cout << a.at(n + 1) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
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};
cout << a.at(n - 1) << endl;
}
| [["-", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
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, 2, 5, 4, 1, 4, 1, 5};
int n;
cin >> n;
cout << a[n ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
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, 2, 5, 4, 1, 4, 1, 51};
int n;
cin >> n;
cout << a[n... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13]] | 1 | 127 |
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(list[int(input())])
| 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(list[int(input())-1])
| [["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 79 |
package main
import "fmt"
func main() {
var k int
fmt.Scan(&k)
arr := [...]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.Println(arr[k+1])
} | package main
import "fmt"
func main() {
var k int
fmt.Scan(&k)
arr := [...]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.Println(arr[k-1])
} | [["-", 0, 2, 3, 4, 0, 437, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 437, 71, 16, 17, 33]] | 7 | 110 |
k = input()
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]
k -= 1
print(lst[k]) | k = int(input())
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]
k -= 1
print(int(lst[k])) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 82 |
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()
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()
print(a[int(k)-1]) | [["+", 3, 4, 0, 206, 206, 657, 31, 652, 63, 22], ["+", 0, 206, 206, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 206, 206, 657, 31, 652, 3, 4, 0, 25]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
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, 152, 2, 5, 4, 1, 4, 1, 51};
int k;
cin >> k;
cout << arr[k - 1];
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
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 k;
cin >> k;
cout << arr[k - 1];
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]] | 1 | 105 |
k = input()
list = []
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(list[k-1])
| k = int(input())
list = []
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(list[k-1]) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 85 |
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".split(', ')
k = int(input())
print(int(s[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'.split(', ')
k = int(input())
print(int(s[k-1]))
| [["-", 0, 662, 12, 652, 63, 319, 500, 557, 0, 654], ["+", 0, 662, 12, 652, 63, 319, 500, 557, 0, 654], ["-", 0, 662, 12, 652, 63, 319, 500, 557, 0, 655], ["+", 0, 662, 12, 652, 63, 319, 500, 557, 0, 655], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
;
#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 INF 1 << 30
#define LINF 1LL << 62
#define all(x) (x).begin(), (x).end... | #include <bits/stdc++.h>
using namespace std;
;
#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 INF 1 << 30
#define LINF 1LL << 62
#define all(x) (x).begin(), (x).end... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13]] | 1 | 218 |
x = '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'
l = list(x.split(','))
i = int(input())
s = str(l[i])
print(s.replace(' ',''))
| x = '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'
l = list(x.split(','))
i = int(input())
s = str(l[i-1])
print(s.replace(' ',''))
| [["+", 12, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int k;
int s[105] = {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() {
scanf("%d", &k);
printf("%d", s[k] + 1);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int k;
int s[105] = {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() {
scanf("%d", &k);
printf("%d", s[k - 1]);
return 0;
}
| [["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 73], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 3, 4, 0, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 73]] | 1 | 114 |
// I am so vegetable
#include <bits/stdc++.h>
#define FIO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define _for(i, a, b) for (int i = (a); i < (b); ++i)
#define _defor(i, a, b) for ((i) = (a); (i) < (b); ++i)
#define _rfor(i, a, b) for (int i = (a); i > (b); --i)
#define _sfor(p, st) for (auto &p : st)
#def... | // I am so vegetable
#include <bits/stdc++.h>
#define FIO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define _for(i, a, b) for (int i = (a); i < (b); ++i)
#define _defor(i, a, b) for ((i) = (a); (i) < (b); ++i)
#define _rfor(i, a, b) for (int i = (a); i > (b); --i)
#define _sfor(p, st) for (auto &p : st)
//#d... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22]] | 1 | 213 |
// inputに入力データ全体が入る
function Main(input) {
var 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
];
var S = input[0] - 0;
console.log(a[S + 1]);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n")); | // inputに入力データ全体が入る
function Main(input) {
var 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
];
var S = input[0] - 0;
console.log(a[S - 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 | 131 |
#include <stdio.h>
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},
N;
scanf("%d", &N);
printf("%d", a[N + 1]);
return 0;
} | #include <stdio.h>
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},
N;
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 | 110 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using ll = long lon... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using ll = long lon... | [["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 218 |
#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 k;
cin >> k;
cout << a.at(k) << endl;
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 k;
cin >> k;
cout << a.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 | 105 |
ls = 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(ls[K]+1) | ls = 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(ls[K-1]) | [["-", 0, 652, 3, 4, 0, 657, 31, 206, 0, 73], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]] | 5 | 82 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(
"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(", ")[scanner.nextInt()]);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(
"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(", ")[scanner.nextInt() - 1]);
... | [["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 12, 499]] | 3 | 60 |
#include <bits/stdc++.h>
using namespace std;
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, 5};
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int k;
cin >> k;
cout << c[--k] << "\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
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 main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int k;
cin >> k;
cout << c[--k] << "\n";
return 0;
} | [["-", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13]] | 1 | 120 |
package main
import "fmt"
func main() {
var (
k int
)
fmt.Scan(&k)
array := []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.Scan(array[k-1])
}
| package main
import "fmt"
func main() {
var (
k int
)
fmt.Scan(&k)
array := []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.Println(array[k-1])
}
| [["-", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["+", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120]] | 7 | 113 |
import sys
from collections import defaultdict
from collections import deque
def load(vtype=int):
return vtype(input().strip())
def load_list(seplator=" ", vtype=int):
return [vtype(v) for v in input().strip().split(seplator)]
def exit():
import sys
sys.exit(0)
def perm_sub(li, used):
if len(li) == ... | import sys
from collections import defaultdict
from collections import deque
def load(vtype=int):
return vtype(input().strip())
def load_list(seplator=" ", vtype=int):
return [vtype(v) for v in input().strip().split(seplator)]
def exit():
import sys
sys.exit(0)
def perm_sub(li, used):
if len(li) == ... | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 330 |
k = int(input())
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(list[k])
| k = int(input())
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(list[k-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>
using namespace std;
const int maxn = 1000;
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;
cin >> k;
cout << a[k + 1] << '\n';
return 0;
} | #include <iostream>
using namespace std;
const int maxn = 1000;
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;
cin >> k;
cout << a[k - 1] << '\n';
return 0;
} | [["-", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> vec; // int型の配列変数vecを宣言
int K;
cin >> K;
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}; // 25, 100, 64
// という整... | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> vec; // int型の配列変数vecを宣言
int K;
cin >> K;
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}; // 25, 100, 64
// という整... | [["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
int main() {
int k;
cin >> k;
vec1 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};
cout << t.at(k + 1) << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
int main() {
int k;
cin >> k;
vec1 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};
cout << t.at(k - 1) << endl;
} | [["-", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33]] | 1 | 121 |
#include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
using ll = long long int;
constexpr int INF = 1 << 29;
constexpr ll MOD = ll(1e9 + 7);
int main(void) {
return 0;
int a[32... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
using ll = long long int;
constexpr int INF = 1 << 29;
constexpr ll MOD = ll(1e9 + 7);
int main(void) {
int a[32] = {1, 1, 1... | [["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 1 | 151 |
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
int main() {
vector<int> 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, 51};
int K;
cin >> K;
cout << list[K - 1];
}
| #include "bits/stdc++.h"
using namespace std;
#define pb push_back
int main() {
vector<int> 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};
int K;
cin >> K;
cout << list[K - 1];
}
| [["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]] | 1 | 102 |
k = int(input())
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[k] + 1) | k = int(input())
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[k-1]) | [["-", 0, 652, 3, 4, 0, 657, 31, 206, 0, 73], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]] | 5 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
vector<int> w = {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;
k++;
cout << w[k] << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
vector<int> w = {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;
k--;
cout << w[k] << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 17, 68]] | 1 | 111 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(j, a, b) for (int j = a; j >= b; j--)
using namespace std;
const int MAX = 100001;
int main() {
... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(j, a, b) for (int j = a; j >= b; j--)
using namespace std;
const int MAX = 100001;
int main() {
... | [["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 163 |
def solve():
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]
return l[N-1] | def solve():
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]
return l[N-1]
print(solve()) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 87 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dl;
#define pb push_back
#define F first
#define S second
#define inf LLONG_MAX
#define mod 1000000007
#define PI 3.1415926536
#define vll vector<ll>
#define pll pair<ll, ll>
#define dbg(n) cout << n << ' '
#define cu continue
#define br... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dl;
#define pb push_back
#define F first
#define S second
#define inf LLONG_MAX
#define mod 1000000007
#define PI 3.1415926536
#define vll vector<ll>
#define pll pair<ll, ll>
#define dbg(n) cout << n << ' '
#define cu continue
#define br... | [["+", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 70], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 73]] | 1 | 174 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int k[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 i;
scanf("%d", &i);
printf("%d", k[i]);
return 0;
} | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int k[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 i;
scanf("%d", &i);
printf("%d", k[i - 1]);
return 0;
}
| [["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]] | 0 | 113 |
from math import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations
N = int(in... | from math import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations
N = int(in... | [["+", 8, 196, 0, 37, 0, 206, 206, 657, 17, 33], ["+", 8, 196, 0, 37, 0, 206, 206, 657, 12, 612]] | 5 | 147 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
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};
int n;
cin >> n;
cout << v[n + 1] << endl;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
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};
int n;
cin >> n;
cout << v[n - 1] << endl;
} | [["-", 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 main() {
int 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};
cin >> k;
cout << a[k];
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int 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};
cin >> k;
cout << a[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 | 101 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 2e5 + 10;
#define fi first
#define se second
#define pb push_back
int main() {
ios::sync_with_stdio(false);
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, ... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 2e5 + 10;
#define fi first
#define se second
#define pb push_back
int main() {
ios::sync_with_stdio(false);
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, ... | [["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33]] | 1 | 132 |
//#pragma GCC optimize("Ofast")
//#pragma GCC target("avx")
#include <bits/stdc++.h>
#include <ext/pb_ds/priority_queue.hpp>
using namespace std;
using namespace __gnu_pbds;
#define F(i, a, b) for (int i = (a); i <= (b); ++i)
#define F2(i, a, b) for (int i = (a); i < (b); ++i)
#define dF(i, a, b) for (int i = (a); i >=... | //#pragma GCC optimize("Ofast")
//#pragma GCC target("avx")
#include <bits/stdc++.h>
#include <ext/pb_ds/priority_queue.hpp>
using namespace std;
using namespace __gnu_pbds;
#define F(i, a, b) for (int i = (a); i <= (b); ++i)
#define F2(i, a, b) for (int i = (a); i < (b); ++i)
#define dF(i, a, b) for (int i = (a); i >=... | [["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 21]] | 1 | 603 |
k = input()
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[k - 1]) | k = int(input())
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[k - 1]) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x[] = {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;
cout << x[k - 1] << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x[] = {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 << x[k - 1] << endl;
return 0;
} | [["+", 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 | 105 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int i = scanner.nextInt();
int[] ints = {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};
System.out.p... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int i = scanner.nextInt();
int[] ints = {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};
System.out.p... | [["-", 0, 492, 3, 4, 0, 504, 71, 16, 17, 72], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]] | 3 | 129 |
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]
puts s[gets.to_i] | 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]
puts s[gets.to_i - 1] | [["+", 0, 652, 3, 4, 0, 742, 0, 738, 17, 33], ["+", 0, 652, 3, 4, 0, 742, 0, 738, 12, 612]] | 4 | 74 |
#include <bits/stdc++.h>
using namespace std;
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};
cout << a.at(K) << endl;
} | #include <bits/stdc++.h>
using namespace std;
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};
cout << a.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 | 102 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<int, int>;
using PL = pair<ll, ll>;
using vp = vector<P>;
using vpl = vector<PL>;
#define pqueue priority_queue
template <typename T> constexp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<int, int>;
using PL = pair<ll, ll>;
using vp = vector<P>;
using vpl = vector<PL>;
#define pqueue priority_queue
template <typename T> constexp... | [["-", 0, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 0, 16, 12, 69, 341, 342, 0, 16, 17, 33]] | 1 | 1,742 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define uint unsigned
#define pii pair<int, int>
#define pll pair<ll, ll>
#define IT iterator
#define PB push_back
#define fi first
#define se second
#define For(i, j, k) for (int i = (int)(j); i <= (int)(k); i++)
#define Rep(i, j, k) for (int i = (i... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define uint unsigned
#define pii pair<int, int>
#define pll pair<ll, ll>
#define IT iterator
#define PB push_back
#define fi first
#define se second
#define For(i, j, k) for (int i = (int)(j); i <= (int)(k); i++)
#define Rep(i, j, k) for (int i = (i... | [["-", 0, 9, 0, 7, 15, 16, 31, 16, 17, 79], ["+", 0, 9, 0, 7, 15, 16, 31, 16, 17, 19]] | 1 | 1,372 |
#pragma GCC optimize("O3")
#include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
/*----------macros----------*/
// output... | #pragma GCC optimize("O3")
#include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
/*----------macros----------*/
// output... | [["+", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 70], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 73]] | 1 | 366 |
#include <bits/stdc++.h>
#define PI 3.1415926535897932
#define _GLIBCXX_DEBUG
#define MOD 1000000007;
using namespace std;
long long GCD(long long A, long long B) {
if (B == 0) {
return A;
} else {
return GCD(B, A % B);
}
}
long long LCM(long long A, long long B) {
long long g = GCD(A, B);
return A / ... | #include <bits/stdc++.h>
#define PI 3.1415926535897932
#define _GLIBCXX_DEBUG
#define MOD 1000000007;
using namespace std;
long long GCD(long long A, long long B) {
if (B == 0) {
return A;
} else {
return GCD(B, A % B);
}
}
long long LCM(long long A, long long B) {
long long g = GCD(A, B);
return A / ... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 225 |
#include <stdio.h>
#include <string.h>
int main(void) {
int 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};
int k;
scanf("%d", &k);
printf("%d", str[k]);
return 0;
} | #include <stdio.h>
#include <string.h>
int main(void) {
int 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};
int k;
scanf("%d", &k);
printf("%d", str[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 | 110 |
h, w = map(int, input().split())
ans = h*w
if h == 1 or w == 1:
print(0)
else:
if ans%2 == 0:
print(ans//2)
else:
print(ans//2+1)
| h, w = map(int, input().split())
ans = h*w
if h == 1 or w == 1:
print(1)
else:
if ans%2 == 0:
print(ans//2)
else:
print(ans//2+1)
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 59 |
H,W=map(int,input().split())
w1=0--W//2
w2=W//2
if H==1:
print(1)
else:
print(w1*(0--H//2)+w2*(H//2)) | H,W=map(int,input().split())
w1=0--W//2
w2=W//2
if H==1 or W==1:
print(1)
else:
print(w1*(0--H//2)+w2*(H//2)) | [["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 61 |
H,W = (int(x) for x in input().split())
if H==1 or W==1:
print(0)
elif (H*W)%2:
print((H*W-1)//2 + 1)
else:
print((H*W)//2) | H,W = (int(x) for x in input().split())
if H==1 or W==1:
print(1)
elif (H*W)%2:
print((H*W-1)//2 + 1)
else:
print((H*W)//2) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 68 |
h, w = map(int, input().split())
if h == 1 or w == 1:
print(1)
print((h * w + 1) // 2) | h, w = map(int, input().split())
if h == 1 or w == 1:
print(1)
else:
print((h * w + 1) // 2) | [["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]] | 5 | 41 |
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
#define rep(i, n) for (i = 0; i < n; i++)
int main() {
int H, W;
cin >> H >> W;
if (H == 1 || W == 1) {
cout << '1';
return 0;
} else {
;
}
if ((H * W) % 2 == 0) {
cout << (H * W) / 2;
return 0;
} else {
... | #include <iostream>
#include <math.h>
#include <string>
using namespace std;
#define rep(i, n) for (i = 0; i < n; i++)
int main() {
long long H, W;
cin >> H >> W;
if (H == 1 || W == 1) {
cout << '1';
return 0;
} else {
;
}
if ((H * W) % 2 == 0) {
cout << (H * W) / 2;
return 0;
} else ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 107 |
A, B = map(int, input().split())
if A == 1 or B == 1:
print(1)
elif (A*B) % 2 == 0:
print(A*B/2)
else:
print(A*B//2+1) | A, B = map(int, input().split())
if A == 1 or B == 1:
print(1)
elif (A*B) % 2 == 0:
print(A*B//2)
else:
print(A*B//2+1) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676]] | 5 | 60 |
h,w=gets.split.map(&:to_i)
if h==1 || w==1
puts 1
end
sum=0
if h%2==0
puts h/2*w
else
puts h/2*w+(w+2-1)/2
end
| h,w=gets.split.map(&:to_i)
if h==1 || w==1
puts 1
return
end
sum=0
if h%2==0
puts h/2*w
else
puts h/2*w+(w+2-1)/2
end
| [["+", 0, 493, 0, 121, 64, 749, 0, 38, 0, 38]] | 4 | 57 |
a = input("").split(" ")
a = [int(aa) for aa in a]
H = a[0]
W = a[1]
if H == 1 or W == 1:
print("0")
elif H % 2 == 0:
print(str(int(H/2)*W))
elif W % 2 == 0:
print(str(int(W/2)*H))
else:
p = int((H+1)/2)
q = int((W+1)/2)
print(str(p*q+(p-1)*(q-1))) | a = input("").split(" ")
a = [int(aa) for aa in a]
H = a[0]
W = a[1]
if H == 1 or W == 1:
print("1")
elif H % 2 == 0:
print(str(int(H/2)*W))
elif W % 2 == 0:
print(str(int(W/2)*H))
else:
p = int((H+1)/2)
q = int((W+1)/2)
print(str(p*q+(p-1)*(q-1))) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 142 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll h, w;
cin >> h >> w;
ll ans = h * w;
if (h == 1) {
cout << 1;
return;
}
if (ans % 2 == 0)
cout << ans / 2;
else
cout << (ans + 1) / 2;
}
int main() {
int y;
y = 1;
// cin>>y ;
while (y--)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll h, w;
cin >> h >> w;
ll ans = h * w;
if (h == 1 || w == 1) {
cout << 1;
return;
}
if (ans % 2 == 0)
cout << ans / 2;
else
cout << (ans + 1) / 2;
}
int main() {
int y;
y = 1;
// cin>>y ;
w... | [["+", 8, 9, 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 | 99 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int N, M;
cin >> N >> M;
if (N == 1 || M == 1)
cout << 1 << endl;
else if (N * M % 2 == 1)
cout << N * M / 2 + 1 << endl;
else
cout << N * M / 2 << e... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
long long int N, M;
cin >> N >> M;
if (N == 1 || M == 1)
cout << 1 << endl;
else if (N * M % 2 == 1)
cout << N * M / 2 + 1 << endl;
else
cout << N * ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 86 |
h,w=map(int,input().split())
if h==1 or w==1:
print("1")
if (h*w)%2==0:
print((h*w)//2)
else:
print((h*w)//2+1) | h,w=map(int,input().split())
if h==1 or w==1:
print("1")
exit()
if (h*w)%2==0:
print((h*w)//2)
else:
print((h*w)//2+1) | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 66 |
H, W = map(int, input().split())
if H == 1 or W == 1:
ans = 1
elif (H * W) % 2 == 0:
ans = (H * W) / 2
else:
ans = (H * W) // 2 + 1
print (ans) | H, W = map(int, input().split())
if H == 1 or W == 1:
ans = 1
elif (H * W) % 2 == 0:
ans = (H * W) // 2
else:
ans = (H * W) // 2 + 1
print (ans) | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 65 |
H, W = map(int, input().split())
count = H * W // 2
if H % 2 == 1 and W % 2 == 1 :
count +=1
if H == 1 or W == 1:
count = 0
print(count) | H, W = map(int, input().split())
count = H * W // 2
if H % 2 == 1 and W % 2 == 1 :
count +=1
if H == 1 or W == 1:
count = 1
print(count) | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612]] | 5 | 55 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <... | [["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]] | 1 | 298 |
h, w = map(int, input().split())
hd, hm, wd, wm = h // 2, h % 2, w // 2, w % 2
s = hd * wd * 2 + hm * wd + wm * hd + hm * wm
if h == 1 or w == 1:
s = 0
print(s)
| h, w = map(int, input().split())
hd, hm, wd, wm = h // 2, h % 2, w // 2, w % 2
s = hd * wd * 2 + hm * wd + wm * hd + hm * wm
if h == 1 or w == 1:
s = 1
print(s)
| [["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612]] | 5 | 74 |
h,w=map(int,input().split())
m=h*w
if h or w == 1:
ans=1
else:
if m%2==0:
ans=m//2
else:
ans=(m+1)//2
print(ans) | h,w=map(int,input().split())
m=h*w
if h == 1 or w == 1:
ans=1
else:
if m%2==0:
ans=m//2
else:
ans=(m+1)//2
print(ans) | [["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612]] | 5 | 60 |
H,W=map(int,input().split())
if H*W==1:
print(1)
exit()
print((H*W+1)//2) | H,W=map(int,input().split())
if H==1 or W==1:
print(1)
exit()
print((H*W+1)//2) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354]] | 5 | 42 |
#B - Bishop △(TLE,WA)
H,W = map(int,input().split())
count = 0
if H == 1 or W == 1:#コーナーケース(H,Wが1の時どこにも動けない)
print(1)
if H % 2 == 0:
count = (H // 2)*W
else :
count = (H // 2)*W + ((W + 2 - 1) // 2)#x/yの切り上げ:(x+y-1)//y
print(count) | #B - Bishop △(TLE,WA)
H,W = map(int,input().split())
count = 0
if H == 1 or W == 1:#コーナーケース(H,Wが1の時どこにも動けない)
count = 1
elif H % 2 == 0:
count = (H // 2)*W
else :
count = (H // 2)*W + ((W + 2 - 1) // 2)#x/yの切り上げ:(x+y-1)//y
print(count) | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]] | 5 | 78 |
# 4 5
import math
field = [int(i) for i in input().split(" ")]
field_num = field[0] * field[1]
if field_num[0] == 1 or field_num[1] == 1:
print(1)
else:
canFillBlock = 0
canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2)
canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2)
prin... | # 4 5
import math
field = [int(i) for i in input().split(" ")]
field_num = field[0] * field[1]
if field[0] == 1 or field[1] == 1:
print(1)
else:
canFillBlock = 0
canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2)
canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2)
print(canFil... | [["-", 0, 57, 15, 679, 31, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 31, 666, 0, 206, 51, 22], ["-", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22]] | 5 | 113 |
#include <bits/stdc++.h>
#define R register
#define mp make_pair
#define ll long long
#define pii pair<int, int>
using namespace std;
const int N = 110000, mod = 998244353;
int n, m, fa[3][N], lim[3];
ll sum[3][N], f[N], ans;
vector<int> to[N];
set<int> mex;
template <class T> inline void read(T &x) {
x = 0;
char... | #include <bits/stdc++.h>
#define R register
#define mp make_pair
#define ll long long
#define pii pair<int, int>
using namespace std;
const int N = 110000, mod = 998244353;
int n, m, fa[3][N], lim[3];
ll sum[3][N], f[N], ans;
vector<int> to[N];
set<int> mex;
template <class T> inline void read(T &x) {
x = 0;
char... | [["-", 0, 2, 63, 118, 28, 69, 341, 342, 0, 22], ["+", 0, 2, 63, 118, 28, 69, 341, 342, 0, 22]] | 1 | 589 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long h, w;
cin >> h >> w;
if (h == 1) {
cout << 1 << endl;
}
if (w == 1) {
cout << 1 << endl;
}
if (h % 2 == 0) {
cout << h * w / 2 << endl;
} else {
if (w % 2 == 0) {
cout << h * w / 2 << endl;
} else {
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long h, w;
cin >> h >> w;
if (h == 1) {
cout << 1 << endl;
} else if (w == 1) {
cout << 1 << endl;
} else if (h % 2 == 0) {
cout << h * w / 2 << endl;
} else {
if (w % 2 == 0) {
cout << h * w / 2 << endl;
} else {
... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 112 |
#include <iostream>
using namespace std;
int main() {
long long int h, w;
cin >> h >> w;
if (h == 1 || w == 1)
cout << "0";
else if (h * w % 2 == 0)
cout << h * w / 2;
else
cout << (h * w + 1) / 2;
} | #include <iostream>
using namespace std;
int main() {
long long int h, w;
cin >> h >> w;
if (h == 1 || w == 1)
cout << "1";
else if (h * w % 2 == 0)
cout << h * w / 2;
else
cout << (h * w + 1) / 2;
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 73 |
#include <iostream>
using namespace std;
int main() {
long long H, W;
cin >> H >> W;
if (H == 1 || W == 1) {
cout << 0 << endl;
} else if (H * W % 2 == 0) {
cout << H * W / 2 << endl;
} else {
cout << ((H * W - 1) / 2) + 1 << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
long long H, W;
cin >> H >> W;
if (H == 1 || W == 1) {
cout << 1 << endl;
} else if (H * W % 2 == 0) {
cout << H * W / 2 << endl;
} else {
cout << ((H * W - 1) / 2) + 1 << endl;
}
}
| [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13]] | 1 | 86 |
#!/usr/bin/env python3
h, w = map(int, input().split())
cnt = 0
if h == 1 or w == 1:
print(0)
exit()
cnt = (w * 2 // 2) * (h // 2)
if h % 2 == 1:
if w % 2 == 1:
cnt += w // 2 + 1
else:
cnt += w // 2
print(cnt)
| #!/usr/bin/env python3
h, w = map(int, input().split())
cnt = 0
if h == 1 or w == 1:
print(1)
exit()
cnt = (w * 2 // 2) * (h // 2)
if h % 2 == 1:
if w % 2 == 1:
cnt += w // 2 + 1
else:
cnt += w // 2
print(cnt)
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 83 |
h, w = map(int, input().split())
#print(h, w)
if h == 1 or w == 1:
print(0)
elif h % 2 == 0 or w % 2 == 0:
print(h*w//2)
else:
print((h*w//2) + 1) | h, w = map(int, input().split())
#print(h, w)
if h == 1 or w == 1:
print(1)
elif h % 2 == 0 or w % 2 == 0:
print(h*w//2)
else:
print((h*w//2) + 1) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 65 |
def resolve():
'''
code here
'''
H, W = [int(item) for item in input().split()]
if H == 1 or W == 1:
res = 1
elif H % 2 == 1 and W % 2 == 1:
res += H * W // 2 +1
else:
res = H * W // 2
print(res)
if __name__ == "__main__":
resolve()
| def resolve():
'''
code here
'''
H, W = [int(item) for item in input().split()]
if H == 1 or W == 1:
res = 1
elif H % 2 == 1 and W % 2 == 1:
res = H * W // 2 +1
else:
res = H * W // 2
print(res)
if __name__ == "__main__":
resolve()
| [["-", 75, 665, 64, 196, 0, 1, 0, 677, 17, 107], ["+", 75, 665, 64, 196, 0, 1, 0, 662, 0, 32]] | 5 | 85 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long h = sc.nextLong();
long w = sc.nextLong();
if (h == 1 || w == 1) {
System.out.println(1);
}
if (h * w % 2 == 1) {
System.out.println(h * w / 2 + 1);
} else... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long h = sc.nextLong();
long w = sc.nextLong();
if (h == 1 || w == 1) {
System.out.println(1);
} else if (h * w % 2 == 1) {
System.out.println(h * w / 2 + 1);
} els... | [["+", 8, 498, 0, 195, 8, 196, 0, 57, 0, 95]] | 3 | 122 |
# n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
H, W = map(int, input().split())
ans = 0
if H == 1 or W == 1:
ans = 0
else:
ans = (-H//2) * (-W//2) + (H//2) * (W//2)
print(an... | # n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
H, W = map(int, input().split())
ans = 0
if H == 1 or W == 1:
ans = 1
else:
ans = (-H//2) * (-W//2) + (H//2) * (W//2)
print(an... | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612]] | 5 | 74 |
import sys
H, W = map(int, input().split())
if H or W ==1:
print(1)
sys.exit()
a = H * W
if a % 2 == 0:
answer = a // 2
else:
answer = a // 2 + 1
print(answer)
| import sys
H, W = map(int, input().split())
if H == 1 or W == 1:
print(1)
sys.exit()
a = H * W
if a % 2 == 0:
answer = a // 2
else:
answer = a // 2 + 1
print(answer) | [["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612]] | 5 | 64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.