buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
a=list(map(int,input().split())) for i in range(1,5): if a[i-1]==0: print(i) break
a=list(map(int,input().split())) for i in range(1,6): if a[i-1]==0: print(i) break
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
42
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define test ...
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define test ...
[["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
128
p=list(map(int,input().split())) count=1 for item in p: if item==0: return count else: count+=1
p=list(map(int,input().split())) count=1 for item in p: if item==0: print(count) else: count+=1 continue
[["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 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], ["+", 0, 57, 75, 76, 8, 196, 0, 116, 0, 117]]
5
37
#include <bits/stdc++.h> #include <math.h> #include <stdio.h> using namespace std; int main() { vector<int> x(4); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) { cout << i + 1; break; } } }
#include <bits/stdc++.h> #include <math.h> #include <stdio.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) { cout << i + 1; break; } } }
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]]
1
87
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める int main() { int a, b, c, d, e; cin >> a >> b >> c >> e >> d; if (a == 0) cout << 1 << endl; else if (b == 0) cout << 2 <...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; if (a == 0) cout << 1 << endl; else if (b == 0) cout << 2 <...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
130
X=list(map(int,input().split())) for x in enumerate(X): if x[1]==0: print(x[0]) break
X=list(map(int,input().split())) for x in enumerate(X): if x[1]==0: print(x[0]+1) break
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
41
#include <stdio.h> int main() { for (int i = 0; i < 5; i++) { int n; scanf("%d", n); if (n == 0) printf("%d", i + 1); } return 0; }
#include <stdio.h> int main() { for (int i = 0; i < 5; i++) { int n; scanf("%d", &n); if (n == 0) printf("%d", i + 1); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
56
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll x[5]; cin >> x[0] >> x[1] >> x[2] >> x[3] >> x[4]; ll i; for (i = 0; i <= 4; i++) if (x[i] == 0) cout << i << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll x[5]; cin >> x[0] >> x[1] >> x[2] >> x[3] >> x[4]; ll i; for (i = 0; i <= 4; i++) if (x[i] == 0) cout << i + 1 << endl; }
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
81
a = input().split() x = 0 for i in range(5): if a[i] == "0": print(int(a[i]) + 1) break
a = input().split() x = 0 for i in range(5): if a[i] == "0": print(i + 1) break
[["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["-", 0, 657, 31, 652, 3, 4, 0, 206, 0, 70], ["-", 0, 657, 31, 652, 3, 4, 0, 206, 0, 73], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
43
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { vector<int> a(5); int ans = 0; rep(i, 5) { cin >> a[i]; if (a[i] == 0) ans = i + 1; return 0; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { vector<int> a(5); int ans = 0; rep(i, 5) { cin >> a[i]; if (a[i] == 0) ans = i + 1; } cout << ans << endl; }
[["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 38], ["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 13], ["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 35]]
1
81
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; if (a != 1) cout << 1 << endl; if (b != 2) cout << 2 << endl; if (c != 3) cout << 3 << endl; if (d != 1) cout << 4 << endl; if (e != 1) cout << 5 << endl; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; if (a != 1) cout << 1 << endl; if (b != 2) cout << 2 << endl; if (c != 3) cout << 3 << endl; if (d != 4) cout << 4 << endl; if (e != 5) cout << 5 << endl; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
101
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 1; i <= 5; i++) { cin >> x.at(i); if (x.at(i) == 0) { cout << i; break; } } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); if (x.at(i) == 0) { cout << i + 1; break; } } }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
65
#include <bits/stdc++.h> using namespace std; int main() { int a[5]; int answer; for (int i = 0; i < 5; ++i) { cin >> a[i]; if (a[i] == 0) answer = a[i]; } cout << answer << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a[5]; int answer; for (int i = 0; i < 5; ++i) { cin >> a[i]; if (a[i] == 0) answer = i + 1; } cout << answer << endl; return 0; }
[["-", 0, 57, 64, 1, 0, 11, 12, 69, 28, 22], ["-", 64, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["-", 64, 1, 0, 11, 12, 69, 341, 342, 0, 73], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13]]
1
69
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a1 = sc.nextInt(); int a2 = sc.nextInt(); int a3 = sc.nextInt(); int a4 = sc.nextInt(); int a5 = sc.nextInt(); if (a1 == 0) { System.out.println("1"); } ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a1 = sc.nextInt(); int a2 = sc.nextInt(); int a3 = sc.nextInt(); int a4 = sc.nextInt(); int a5 = sc.nextInt(); if (a1 == 0) { System.out.println("1"); } ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
175
l = list(map(int,input().split())) for i in range(5): if l[i] == 0: print(i + 1) break
l = list(map(int,input().split())) for i in range(5): if l[i] == 0: print(i + 1)
[["-", 0, 656, 0, 7, 8, 196, 0, 93, 0, 94]]
5
40
x=input().split() for i in range(5): if x[i]=="0": print(i) exit()
x=input().split() for i in range(5): if x[i]=="0": print(i+1) exit()
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
34
#include <bits/stdc++.h> using namespace std; typedef long long int lli; typedef long int li; void solve() { int x, ans; for (int i = 0; i < 4; i++) { cin >> x; if (x == 0) ans = i + 1; } cout << ans << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; ...
#include <bits/stdc++.h> using namespace std; typedef long long int lli; typedef long int li; void solve() { int x, ans; for (int i = 0; i <= 4; i++) { cin >> x; if (x == 0) ans = i + 1; } cout << ans << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; ...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
111
#include <bits/stdc++.h> using namespace std; int main() { int sum = 0, a; for (int i = 0; i < 5; i++) { cin >> a; sum += a; } cout << 15 - a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int sum = 0, a; for (int i = 0; i < 5; i++) { cin >> a; sum += a; } cout << 15 - sum << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
54
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef vector<int> vi; int main(void) { for (int i = 1; i < 5; i++) { ll a; cin >> a; if (a == 0) { cout << i; } } return 0; }
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef vector<int> vi; int main(void) { for (int i = 1; i <= 5; i++) { ll a; cin >> a; if (a == 0) { cout << i; } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
65
li = list(map(int,input().split())) for i in range(5): if li[i]==0: print(i) break
li = list(map(int,input().split())) for i in range(5): if li[i]==0: print(i+1) break
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a[5]; for (int i = 0; i < 4; ++i) { cin >> a[i]; if (a[i] == 0) { cout << i + 1; return 0; } } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a[5]; for (int i = 0; i < 5; ++i) { cin >> a[i]; if (a[i] == 0) { cout << i + 1; return 0; } } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
66
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007 #define f(i, a, b) for (ll i = a; i < b; i++) #define IOS \ ios::sync_with_stdio(0); \...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007 #define f(i, a, b) for (ll i = a; i < b; i++) #define IOS \ ios::sync_with_stdio(0); \...
[["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 46]]
1
184
num = input().split() for i in range(0,len(num)): if num[i] == 0: print(i+1)
num = input().split() for i in range(0,len(num)): if int(num[i]) == 0: print(i+1)
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
36
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { for (int i = 0; i < 5; i++) { int num; scanf(" %d", &num); if (!num) printf("%d\n", i); } return 0; }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { for (int i = 0; i < 5; i++) { int num; scanf(" %d", &num); if (!num) printf("%d\n", i + 1); } return 0; }
[["+", 64, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 64, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
62
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x; rep(i, 5) { cin >> x; if (x == 0) { cout << x + 1 << endl; } } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x; rep(i, 5) { cin >> x; if (x == 0) { cout << i + 1 << endl; } } }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22]]
1
57
a = map(int, input().split()) for i, v in enumerate(a): if v == 0: print(i) break
a = map(int, input().split()) for i, v in enumerate(a): if v == 0: print(i + 1) break
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
34
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { int num = 998244353; // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); St...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { int num = 998244353; // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); St...
[["-", 64, 196, 0, 1, 0, 492, 3, 4, 0, 499], ["+", 64, 196, 0, 1, 0, 492, 3, 4, 0, 499]]
3
243
A = list(map(int, input().split())) c = 0 for i in range(5): c += 1 if i == 0: print(c)
A = list(map(int, input().split())) c = 0 for i in A: c += 1 if i == 0: print(c)
[["-", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 12, 22]]
5
40
#include <bits/stdc++.h> using namespace std; int main(void) { int i, j; for (i = 0; i < 5; ++i) { int k; cin >> k; if (k == 0) { j = i; } } printf("%d\n", j); return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int i, j; for (i = 0; i < 5; ++i) { int k; cin >> k; if (k == 0) { j = i + 1; } } printf("%d\n", j); return 0; }
[["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
65
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { for (int i = 0; i < 4; i++) { int x; cin >> x; if (x == 0) cout << i + 1 << endl; } }
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { for (int i = 0; i < 5; i++) { int x; cin >> x; if (x == 0) cout << i + 1 << endl; } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
57
lists = list(input().split()) counter = 0 for i in lists: if i == '0': break counter = counter + 1 print(str(counter))
lists = list(input().split()) counter = 1 for i in lists: if i == '0': break counter = counter + 1 print(str(counter))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
40
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
181
N = map(int. input().split()) for x, n in enumarate(N, 1): if n == 0: print(x) break
N = map(int, input().split()) for x, n in enumerate(N, 1): if n == 0: print(x) break
[["-", 0, 652, 63, 319, 500, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22]]
5
36
a,b,c,d,e=input().split() if a==0: print(1) elif b==0: print(2) elif c==0: print(3) elif d==0: print(4) else: print(5)
a,b,c,d,e=map(int, input().split()) if a==0: print(1) elif b==0: print(2) elif c==0: print(3) elif d==0: print(4) else: print(5)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
59
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 4; i++) { int t; cin >> t; if (!t) { cout << i + 1 << endl; return 0; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 5; i++) { int t; cin >> t; if (!t) { cout << i + 1 << endl; return 0; } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
56
lst = list(input().split()) print(lst) for i in range(5): if lst[i] == "0": print(i + 1)
lst = list(input().split()) for i in range(5): if lst[i] == "0": print(i + 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, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
40
# A x = list(map(int, input().split())) ans = 0 for i in range(5): if x[i] == i + 1: ans = i + 1 print(ans)
# A x = list(map(int, input().split())) ans = 0 for i in range(5): if x[i] != i + 1: ans = i + 1 print(ans)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
48
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { for (int i = 0; i < 4; i++) { int temp; cin >> temp; if (temp == 0) cout << i + 1 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { for (int i = 0; i < 5; i++) { int temp; cin >> temp; if (temp == 0) cout << i + 1 << endl; } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
63
// // Created by 26019 on 2020/6/14/014. // #include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; if (x1 == 0) { cout << "1" << endl; } if (x2 == 0) { cout << "1" << endl; } if (x3 == 0) { cout << "1" << endl; } if (x4 == 0) { ...
// // Created by 26019 on 2020/6/14/014. // #include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; if (x1 == 0) { cout << "1" << endl; } if (x2 == 0) { cout << "2" << endl; } if (x3 == 0) { cout << "3" << endl; } if (x4 == 0) { ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
121
#include <bits/stdc++.h> #include <cmath> #define pb push_back #define ld long double #define mp make_pair #define vl vector<ll> #define vd vector<double> #define vld vector<long double> #define ll long long int #define pl pair<ll, ll> #define all(a) a.begin(), a.end() #define forr(i, n) for (ll i = 0; i < n; i++) #def...
#include <bits/stdc++.h> #include <cmath> #define pb push_back #define ld long double #define mp make_pair #define vl vector<ll> #define vd vector<double> #define vld vector<long double> #define ll long long int #define pl pair<ll, ll> #define all(a) a.begin(), a.end() #define forr(i, n) for (ll i = 0; i < n; i++) #def...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 1, 0, 16, 12, 27, 17, 68]]
1
128
arr = [int(x) for x in input().split()] for i,x in enumerate(arr): if x == 0: print(i)
arr = [int(x) for x in input().split()] for i, x in enumerate(arr): if x == 0: print(i+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
37
a = list(map(int, input().split())) for i in range(5): if i == 0: print(i + 1) break
a = list(map(int, input().split())) for i in range(5): if a[i] == 0: print(i + 1) break
[["+", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
37
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { vector<int> v(5); for (int i = 0; i < 4; i++) { cin >> v[i]; if (v[i] == 0) cout << i + 1 << endl; } }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { vector<int> v(5); for (int i = 0; i < 5; i++) { cin >> v[i]; if (v[i] == 0) cout << i + 1 << endl; } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
67
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 #include <iter...
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 #include <iter...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
241
def main(): from operator import itemgetter import sys sys.setrecursionlimit(10**9) input = sys.stdin.readline X = list(map(int,input().split)) for i in range(X): if X[i] == 0: print(i+1) return main()
def main(): from operator import itemgetter import sys sys.setrecursionlimit(10**9) input = sys.stdin.readline X = list(map(int, input().split())) for i in range(len(X)): if X[i] == 0: print(i+1) return main()
[["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 7, 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]]
5
67
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d", i); break; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d", i + 1); break; } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
96
package main import "fmt" func main() { var x int for i := 0; i < 5; i++ { fmt.Scan(&x) if x == 0 { fmt.Println(x + 1) } } }
package main import "fmt" func main() { var x int for i := 0; i < 5; i++ { fmt.Scan(&x) if x == 0 { fmt.Println(i + 1) } } }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22]]
7
57
xs = list(map(int, input().split())) for i in range(5): if xs(i) == 0: print(i+1)
xs = list(map(int, input().split())) for i in range(5): if xs[i] == 0: print(i+1)
[["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
39
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) #define repk(i, k, n...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) #define repk(i, k, n...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
261
#include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, n, m) for (int i = m; i < (n); ++i) #define repl(i, n) for (long long i = 0; i < (n); ++i) #d...
#include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, n, m) for (int i = m; i < (n); ++i) #define repl(i, n) for (long long i = 0; i < (n); ++i) #d...
[["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 38], ["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 13], ["-", 0, 14, 8, 9, 0, 9, 0, 37, 0, 35]]
1
380
/* The Island Was Silent before. ..... And One day again it became Silent. */ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define modd(a, b) ((a + 2 * b) % b) #define debug(a) cout << #a << ": " << (a) << "\n" #define ioso ios_base::sync_with_stdio(0), cin.tie(0), cout.ti...
/* The Island Was Silent before. ..... And One day again it became Silent. */ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define modd(a, b) ((a + 2 * b) % b) #define debug(a) cout << #a << ": " << (a) << "\n" #define ioso ios_base::sync_with_stdio(0), cin.tie(0), cout.ti...
[["-", 0, 14, 8, 9, 0, 171, 0, 43, 39, 78], ["-", 0, 14, 8, 9, 0, 171, 0, 43, 49, 22], ["-", 8, 9, 0, 171, 0, 43, 49, 22, 0, 35], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]]
1
105
a = list(map(int, input().split())) for i in range(len(a)): if a[i]==0: print(i) exit()
a = list(map(int, input().split())) for i in range(len(a)): if a[i]==0: print(i+1) exit()
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
43
#include <bits/stdc++.h> #define INF 1e18 #define Rep(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) Rep(i, 0, n) #define all(a) (a).begin(), (a).end() #define MAX 1000 #define ll long long #define P pair<int, int> #define cout_set(n) cout << setprecision(10) << (n) << endl; const double PI = 3.141592653589...
#include <bits/stdc++.h> #define INF 1e18 #define Rep(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) Rep(i, 0, n) #define all(a) (a).begin(), (a).end() #define MAX 1000 #define ll long long #define P pair<int, int> #define cout_set(n) cout << setprecision(10) << (n) << endl; const double PI = 3.141592653589...
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
138
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) cout << 1 << endl; } }
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) cout << i << endl; } }
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22]]
1
56
x = list(map(int, input().split())) for i in range(1, 5): if i not in x: print(i) break
x = list(map(int, input().split())) for i in range(1, 6): if i not in x: print(i) break
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
38
x = list(map(int, input().split())) for i in range(5): if i == 0: print(i+1) exit()
x = list(map(int, input().split())) for i in range(5): if x[i] == 0: print(i+1) exit()
[["+", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
39
#include <bits/stdc++.h> #define int long long int #define endl '\n' #define pb push_back #define mod 1000000007 #define db(i) cout << i << " "; #define db1(i) cout << "(" << i << ")"; #define db2(i) cout << "[" << i << "]"; #define db3(i) cout << "{" << i << "}"; #define ff first #define ss second #define vv vector #d...
#include <bits/stdc++.h> #define int long long int #define endl '\n' #define pb push_back #define mod 1000000007 #define db(i) cout << i << " "; #define db1(i) cout << "(" << i << ")"; #define db2(i) cout << "[" << i << "]"; #define db3(i) cout << "{" << i << "}"; #define ff first #define ss second #define vv vector #d...
[["-", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13]]
1
530
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans = 0; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans = 0; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i + 1; } cout << ans << endl; return 0; }
[["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13]]
1
68
import java.io.*; import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); for (int i = 0; i < 4; i++) { int curr = sc.nextInt(); if (curr == 0) { System.out.println(i + 1); break; ...
import java.io.*; import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); for (int i = 0; i < 5; i++) { int curr = sc.nextInt(); if (curr == 0) { System.out.println(i + 1); break; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]]
3
97
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
[["-", 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
267
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define pb push_back #define mk make_pair #define ff first #define ss second typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout ...
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define pb push_back #define mk make_pair #define ff first #define ss second typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout ...
[["-", 0, 57, 64, 1, 0, 16, 12, 16, 17, 72], ["-", 0, 57, 64, 1, 0, 16, 12, 16, 12, 13]]
1
89
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL); #define Mod 1...
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL); #define Mod 1...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
307
#include <bits/stdc++.h> using namespace std; signed main() { int a; for (int i = 0; i < 5; i++) { cin >> a; if (i == 0) { cout << i + 1 << endl; } } return (0); }
#include <bits/stdc++.h> using namespace std; signed main() { int a; for (int i = 0; i < 5; i++) { cin >> a; if (a == 0) { cout << i + 1 << endl; } } return (0); }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
56
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; ++i) { cin >> x; if (x == 0) { cout << i << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; ++i) { cin >> x; if (x == 0) { cout << i + 1 << endl; return 0; } } }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
52
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
157
#include <iostream> using namespace std; int main() { int a[5]; for (int x = 0; x < 5; x++) { cin >> a[x]; if (a[x] == 0) cout << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a[5]; for (int x = 0; x < 5; x++) { cin >> a[x]; if (a[x] == 0) cout << x + 1 << endl; } return 0; }
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
59
X = input().split() for i in range(5): if (X[i] == 0): print(i+1)
X = input().split() for i in range(5): if (X[i] == "0"): print(i+1)
[["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655]]
5
33
p=list(map(int,input().split())) n=sum(p) print(n-15)
p=list(map(int,input().split())) n=sum(p) print(15-n)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
29
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int a, b, c, d, e; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (a == 0) { printf("1"); } if (b == 0) { printf("1"); } if (c == 0) { printf("1"); } if (d == 0) { printf("1"); } if (e =...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int a, b, c, d, e; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (a == 0) { printf("1"); } if (b == 0) { printf("2"); } if (c == 0) { printf("3"); } if (d == 0) { printf("4"); } if (e =...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
123
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include ...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 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, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
703
#pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> // #include<ext/pb_ds/assoc_container.hpp> // #include<ext/pb_ds/tree_policy.hpp> // #include<ext/pb_ds/tag_and_trait.hpp> // using namespace __gnu_pbds; // #include<boost/multiprecision/cpp_int.hpp> // na...
#pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> // #include<ext/pb_ds/assoc_container.hpp> // #include<ext/pb_ds/tree_policy.hpp> // #include<ext/pb_ds/tag_and_trait.hpp> // using namespace __gnu_pbds; // #include<boost/multiprecision/cpp_int.hpp> // na...
[["-", 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
1,030
#: Author - Soumya Saurav import sys,io,os,time from collections import defaultdict from collections import OrderedDict from collections import deque from itertools import combinations from itertools import permutations import bisect,math,heapq alphabet = "abcdefghijklmnopqrstuvwxyz" input = sys.stdin.readline ######...
#: Author - Soumya Saurav import sys,io,os,time from collections import defaultdict from collections import OrderedDict from collections import deque from itertools import combinations from itertools import permutations import bisect,math,heapq alphabet = "abcdefghijklmnopqrstuvwxyz" input = sys.stdin.readline ######...
[["+", 0, 7, 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]]
5
90
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define pb push_back #define F first #define S second using namespace std; using ll = long long; const ll maxn = 1e5 + 5, inf = 1e18 + 18; ll n, m, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); for (int i = 0; i < 4; i...
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define pb push_back #define F first #define S second using namespace std; using ll = long long; const ll maxn = 1e5 + 5, inf = 1e18 + 18; ll n, m, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); for (int i = 0; i <= 4; ...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
107
// May this submission get accepted #include <bits/stdc++.h> // エイリアス using ll = long signed long; using ull = long unsigned long; using ld = long double; using namespace std; // AtCoder/Codeforces 用 デバッグ検知 #ifdef ONLINE_JUDGE constexpr bool DEBUG_MODE = false; #else constexpr bool DEBUG_MODE = true; #endif // エイリアス...
// May this submission get accepted #include <bits/stdc++.h> // エイリアス using ll = long signed long; using ull = long unsigned long; using ld = long double; using namespace std; // AtCoder/Codeforces 用 デバッグ検知 #ifdef ONLINE_JUDGE constexpr bool DEBUG_MODE = false; #else constexpr bool DEBUG_MODE = true; #endif // エイリアス...
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
1,079
x = map(int, input().split()) for i in range(5): if x[i] == 0: print(i)
x = list(map(int, input().split())) for i in range(5): if x[i] == 0: print(i+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, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
34
x=list(int(i) for i in input().split()) for i in range(len(x)): if x[i]==0: print(i)
x=list(int(i) for i in input().split()) for i in range(len(x)): if x[i]==0: print(i+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
42
#include <assert.h> #include <bits/stdc++.h> #include <time.h> using namespace std; #define For(i, x, n) for (long long i = x; i < n; i++) #define rFor(i, x, n) for (long long i = x; i >= n; i--) #define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++) #define MOD 1000000007 #define PI 3.141592653589793...
#include <assert.h> #include <bits/stdc++.h> #include <time.h> using namespace std; #define For(i, x, n) for (long long i = x; i < n; i++) #define rFor(i, x, n) for (long long i = x; i >= n; i--) #define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++) #define MOD 1000000007 #define PI 3.141592653589793...
[["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 52, 8, 9, 0, 9, 0, 93, 0, 94], ["+", 0, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 0, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 46]]
1
279
line=input().split(" ") j=0 for i in line: j=j+1 if i==0: print(j)
line=input().split(" ") j=0 for i in line: j=j+1 if i=="0": print(j)
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
34
// -------------- // Tejas Pandey | // 14 - 06 - 20 | // Atcoder BC 170| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
// -------------- // Tejas Pandey | // 14 - 06 - 20 | // Atcoder BC 170| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
[["+", 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]]
1
125
/* *********************************************************************************************************** Created By - TANISHQ GUPTA (tanishq_code_c) *********************************************************************************************...
/* *********************************************************************************************************** Created By - TANISHQ GUPTA (tanishq_code_c) *********************************************************************************************...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
324
//#pragma GCC optimize("O3") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define trav(x, a) for (const auto &x : a) #define sz(x) (int)(x).size() #define all(x) (x).begin(), x.end() #define mem(a, v) memset((a), (v), sizeof(a)) #define enl printf("\n") #define ...
//#pragma GCC optimize("O3") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define trav(x, a) for (const auto &x : a) #define sz(x) (int)(x).size() #define all(x) (x).begin(), x.end() #define mem(a, v) memset((a), (v), sizeof(a)) #define enl printf("\n") #define ...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
246
// Author : Hardik Upadhyay // college: SVNIT // slogan : Ab to phod dunga #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> #define F first #define S second #define pb push_back #define mp make_pair #define rep(i, a, b) for (int i = a; i <= b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #...
// Author : Hardik Upadhyay // college: SVNIT // slogan : Ab to phod dunga #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> #define F first #define S second #define pb push_back #define mp make_pair #define rep(i, a, b) for (int i = a; i <= b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #...
[["-", 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, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
178
num_list = list(map(int,input().split())) for i in range(len(num_list)): if i+1 == num_list[i]: print(i+1) break
num_list = list(map(int,input().split())) for i in range(len(num_list)): if i+1 != num_list[i]: print(i+1) break
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
45
x = [int(x) for x in input().split()] for i in range(len(x)): if(x[i]==0): print(i)
x = [int(x) for x in input().split()] for i in range(len(x)): if(x[i]==0): print(i+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
43
package main import "fmt" func main() { x := make([]int, 5) for i, _ := range x { fmt.Scan(&x[i]) } for i, v := range x { if v == 0 { fmt.Println(i) } } }
package main import "fmt" func main() { x := make([]int, 5) for i, _ := range x { fmt.Scan(&x[i]) } for i, v := range x { if v == 0 { fmt.Println(i + 1) } } }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 433]]
7
70
#include <bits/stdc++.h> using namespace std; signed main() { int n; for (int i = 1; i <= n; ++i) { scanf("%d", &n); if (n) continue; else { printf("%d\n", i); return 0; } } }
#include <bits/stdc++.h> using namespace std; signed main() { int n; for (int i = 1; i <= 5; ++i) { scanf("%d", &n); if (n) continue; else { printf("%d\n", i); return 0; } } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
63
#pragma GCC optimize("Ofast") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define all(x) std::begin(x), std::end(x) #define isz(x) (int)std::size(x) const auto ready = []() { std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout << std::fixed << std::setprecision(12); return 1; }(); //...
#pragma GCC optimize("Ofast") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define all(x) std::begin(x), std::end(x) #define isz(x) (int)std::size(x) const auto ready = []() { std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout << std::fixed << std::setprecision(12); return 1; }(); //...
[["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
2,696
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) int main() { int X, Y; scanf("%d %d", &X, &Y); for (int i = 1; i <= X; i++) { if (Y == 2 * i + (X - i) * 4) { printf("Yes"); return 0; } } printf("No"); return 0; }
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) int main() { int X, Y; scanf("%d %d", &X, &Y); for (int i = 0; i <= X; i++) { if (Y == 2 * i + (X - i) * 4) { printf("Yes"); return 0; } } printf("No"); return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
0
84
X, Y = list(map(int, input().split())) flag = True for kame in range(X): tsuru = X - kame if (4 * kame + 2 * tsuru == Y): print('Yes') flag = False break if(flag): print('No')
X, Y = list(map(int, input().split())) flag = True for kame in range(X + 1): tsuru = X - kame if (4 * kame + 2 * tsuru == Y): print('Yes') flag = False break if(flag): print('No')
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
69
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 5; i++) { cin >> x; if (x == 0) { cout << 0 << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 5; i++) { cin >> x; if (x == 0) { cout << i << endl; return 0; } } }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
52
#include <bits/stdc++.h> #define INF 0x3f3f3f3f #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (a); i > (n); i--) typedef long long ll; const int maxn = 2e5 + 5; const int mod = 1e9 + 7; using namespace std; void solve() { ll t; rep(i, 1, 5) { cin >> t; if (t == 0) {...
#include <bits/stdc++.h> #define INF 0x3f3f3f3f #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (a); i > (n); i--) typedef long long ll; const int maxn = 2e5 + 5; const int mod = 1e9 + 7; using namespace std; void solve() { ll t; rep(i, 1, 6) { cin >> t; if (t == 0) {...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
141
import sys, io, os, re import bisect from pprint import pprint from math import sin, cos, pi, radians, sqrt, floor from copy import copy, deepcopy from collections import deque from math import gcd from functools import reduce from itertools import groupby n1 = lambda: int(sys.stdin.readline().strip()) nn = lambda: l...
import sys, io, os, re import bisect from pprint import pprint from math import sin, cos, pi, radians, sqrt, floor from copy import copy, deepcopy from collections import deque from math import gcd from functools import reduce from itertools import groupby n1 = lambda: int(sys.stdin.readline().strip()) nn = lambda: li...
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
378
#include <bits/stdc++.h> using namespace std; int main(void) { int a[5], i; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << i; break; } } }
#include <bits/stdc++.h> using namespace std; int main(void) { int a[5], i; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << i + 1; break; } } }
[["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
81
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
108
// A #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout << x; } return 0; }
// A #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout << i; } return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 22]]
1
53
x,y=map(int,input().split()) flag=0 for i in range(x): if i*2+(x-i)*4==y: print("Yes") flag=1 break if flag==0: print("No")
x,y=map(int,input().split()) flag=0 for i in range(x+1): if i*2+(x-i)*4==y: print("Yes") flag=1 break if flag==0: print("No")
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
63
a,b =map(int,input().split()) c = 1 for i in range(0,a): if 2*i+4*(a-i) ==b: c = 0 break if c ==0: print("Yes") else: print("No")
a,b =map(int,input().split()) c = 1 for i in range(0,a+1): if 2*i+4*(a-i) ==b: c = 0 break if c ==0: print("Yes") else: print("No")
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
67
#include <iostream> typedef long long ll; using namespace std; int main() { ll x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
#include <iostream> typedef long long ll; using namespace std; int main() { ll x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
65
x, y = map(int, input().split()) if x * 4 < y: print('No') else: for i in range(x+1): for j in range(x+1): if (i + j == y) and (2*i + 4*j == y): print('Yes') exit() print('No')
x, y = map(int, input().split()) if x * 4 < y: print('No') else: for i in range(x+1): for j in range(x+1): if (i + j == x) and (2*i + 4*j == y): print('Yes') exit() print('No')
[["-", 0, 57, 15, 679, 31, 23, 0, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 23, 0, 666, 0, 22]]
5
87
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num; cin >> a >> b; for (int i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "YES" << endl; return 0; break; } } cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num; cin >> a >> b; for (int i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "Yes" << endl; return 0; break; } } cout << "No" << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
86