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
rt=list(map(int,input().split())) for i in range(0,4): if(rt[i]==0): print(i+1) break
rt=list(map(int,input().split())) for i in range(5): if(rt[i]==0): print(i+1) break
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
44
l=list().split() print(1+l.index("0"))
l=input().split() print(1+l.index("0"))
[["-", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22]]
5
22
#include <stdio.h> int main() { int x; int i; for (i = 0; i < 5; i++) { scanf("%d", x); if (x == 0) break; } printf("%d", (i + 1)); }
#include <stdio.h> int main() { int x; int i; for (i = 0; i < 5; i++) { scanf("%d", &x); if (x == 0) break; } printf("%d", (i + 1)); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
59
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a[5], i, j; for (i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) j = i; } cout << j << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a[5], i, j; for (i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) j = i + 1; } cout << j << endl; return 0; }
[["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13]]
1
87
a = gets.split.map(&:to_i) if a[0]==1 puts(1) elsif a[1]==1 then puts(2) elsif a[2]==1 then puts(3) elsif a[3]==1 then puts(4) else puts(5) end
a = gets.split.map(&:to_i) if a[0]==0 puts(1) elsif a[1]==0 then puts(2) elsif a[2]==0 then puts(3) elsif a[3]==0 then puts(4) else puts(5) end
[["-", 36, 36, 0, 493, 0, 121, 15, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 12, 612], ["-", 0, 493, 0, 121, 75, 759, 15, 738, 12, 612], ["+", 0, 493, 0, 121, 75, 759, 15, 738, 12, 612], ["-", 0, 121, 75, 759, 75, 759, 15, 738, 12, 612], ["+", 0, 121, 75, 759, 75, 759, 15, 738, 12, 612], ["-", 75, 759, 75, ...
4
64
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < n; i++) const double PI = 3.141592653589793; int main() { vector<int> n(5); rep(i, 5) cin >> n.at(i); rep(i, 5) { if (n.at(i) == 0) { cout << i << endl; break; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < n; i++) const double PI = 3.141592653589793; int main() { vector<int> n(5); rep(i, 5) cin >> n.at(i); rep(i, 5) { if (n.at(i) == 0) { cout << i + 1 << endl; break; ...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
100
#include <bits/stdc++.h> using namespace std; int main() { int n = 4; int A[n]; for (int i = 0; i < n; i++) { cin >> A[i]; } int c; for (int i = 0; i < n; i++) { if (A[i] == 0) { c = i + 1; } } cout << c; }
#include <bits/stdc++.h> using namespace std; int main() { int n = 5; int A[n]; for (int i = 0; i < n; i++) { cin >> A[i]; } int c; for (int i = 0; i < n; i++) { if (A[i] == 0) { c = i + 1; } } cout << c; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
86
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, a, b) for (int i = (a); i < (b); i++) #define repi(i, a, b) for (int i = (a); i > (b); i--) #define db(x) (cerr << #x << ": " << (x) << '\n') #define sync ios_base::sync_with_stdio(false), cin.tie(NULL)...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, a, b) for (int i = (a); i < (b); i++) #define repi(i, a, b) for (int i = (a); i > (b); i--) #define db(x) (cerr << #x << ": " << (x) << '\n') #define sync ios_base::sync_with_stdio(false), cin.tie(NULL)...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
718
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.stream.Collectors; import java.util.stream.Stream; public class Main { public static void main(String[] args) { try (var br = new BufferedReader(new InputStreamReader(System.in))) { var s = br.rea...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.stream.Collectors; import java.util.stream.Stream; public class Main { public static void main(String[] args) { try (var br = new BufferedReader(new InputStreamReader(System.in))) { var s = br.rea...
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
148
x = list(map(int, input().split())) if x[0] == 0: print(1) if x[1] == 0: print(2) if x[2] == 0: print(3) if x[3] == 0: print(4) else: print(5)
x = list(map(int, input().split())) if x[0] == 0: print(1) elif x[1] == 0: print(2) elif x[2] == 0: print(3) elif x[3] == 0: print(4) else: print(5)
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
71
#include <bits/stdc++.h> #define PI acos(-1) #define EPS 1e-12 #define pb push_back #define mp make_pair #define ff first #define ss second #define bitCount __builtin_popcount #define forn(i, n) for (i = 0; i < (ll)n; i++) #define for1(i, n) for (i = 1; i <= (ll)n; i++) #define forv(i, v) for (i = 0; i < v.size(); i++)...
#include <bits/stdc++.h> #define PI acos(-1) #define EPS 1e-12 #define pb push_back #define mp make_pair #define ff first #define ss second #define bitCount __builtin_popcount #define forn(i, n) for (i = 0; i < (ll)n; i++) #define for1(i, n) for (i = 1; i <= (ll)n; i++) #define forv(i, v) for (i = 0; i < v.size(); i++)...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
576
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i <= 5; i += 1) { int x; cin >> x; if (x == 0) { cout << i + 1; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 5; i += 1) { int x; cin >> x; if (x == 0) { cout << i + 1; } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]]
1
53
l=list(map(int,input.split(" "))) print(l.index("0")+1)
l=list(map(int,input().split(" "))) #print(l) print(l.index(0)+1)
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 657, 31, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 657, 31, 652, 3, 4, 0, 557, 0, 655]]
5
31
x = list(map(int, input.split())) print(x.index(0))
x = list(map(int, input().split())) print(x.index(0)+1)
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 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
24
#include <iostream> using namespace std; int main() { int a[5]; for (int i = 0; i < 5; i++) { cin >> a[i]; } for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << a[i] << "\n"; break; } } }
#include <iostream> using namespace std; int main() { int a[5]; for (int i = 0; i < 5; i++) { cin >> a[i]; } for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << i + 1 << "\n"; break; } } }
[["-", 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], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
81
n = 5 Si = n(n+1)/2 lst = list(map(int,input().split())) Sr = sum(lst) print(Si-Sr)
n = 5 Si = n*(n+1)/2 lst = list(map(int,input().split())) Sr = sum(lst) print(int(Si-Sr))
[["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["+", 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
42
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i; } cout << ans << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i; } cout << ans + 1 << "\n"; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
68
li = list(map(int,input().split())) for i in range(len(li)): if li[i] == 0: print(i) break
li = list(map(int,input().split())) for i in range(len(li)): if li[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], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
41
#include <bits/stdc++.h> using namespace std; int main() { int vals[5]; for (int i = 0; i < 5; i++) { cin >> vals[i]; } for (int j = 0; j < 5; j++) { if (vals[j] == 0) { cout << j << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int vals[5]; for (int i = 0; i < 5; i++) { cin >> vals[i]; } for (int j = 0; j < 5; j++) { if (vals[j] == 0) { cout << j + 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
77
/* author : s@if */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define NIL -1 #define fi first #define sec second #define MAX INT_MAX #define INF 1e9 #define ll long long #define PI acos(-1.0) #define MOD 1000000007 #define PLL pair<ll, ll>...
/* author : s@if */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define NIL -1 #define fi first #define sec second #define MAX INT_MAX #define INF 1e9 #define ll long long #define PI acos(-1.0) #define MOD 1000000007 #define PLL pair<ll, ll>...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
383
x = list(map(int, input().split())) for i in range(len(x)): if x[i] == 0: print(x + 1)
x = list(map(int, input().split())) for i in range(len(x)): if x[i] == 0: print(i + 1)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]]
5
42
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char const *argv[]) { int x, y; for (int i = 0; i < 5; ++i) { cin >> y; if (y == 0) x = y; } cout << x; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char const *argv[]) { int x, y; for (int i = 0; i < 5; ++i) { cin >> y; if (y == 0) x = i + 1; } cout << x; return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13]]
1
68
#include <bits/stdc++.h> using namespace std; int main() { vector<int> v(100); for (int &i : v) { cin >> i; } for (int i : v) { if (i == 0) { cout << i + 1; break; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> v(5); for (int &i : v) { cin >> i; } for (int i : v) { if (v[i] == 0) { cout << i + 1; break; } } return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 69, 28, 22], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73]]
1
63
l = list(map(int,input().split())) for i in range(len(l)): if l[i]==0: break; print(i)
l = list(map(int,input().split())) for i in range(len(l)): if l[i]==0: break; 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
# -*- coding: utf-8 -*- a, b, c, d, e = map(int, input().split()) suuji_list = ["", a, b, c, d, e] print(list.index(0))
# -*- coding: utf-8 -*- a, b, c, d, e = map(int, input().split()) suuji_list = ["", a, b, c, d, e] print(suuji_list.index(0))
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22]]
5
48
import java.lang.Math; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Scanner; public class Main { public static int useBs(int[] arr, int targetValue) { int a = Arrays.binarySearch(arr, targetValue); if (a >= 0 && a < ...
import java.lang.Math; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Scanner; public class Main { public static int useBs(int[] arr, int targetValue) { int a = Arrays.binarySearch(arr, targetValue); if (a >= 0 && a < ...
[["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 12, 499]]
3
512
import sys a = map(int, sys.stdin.readline().rstrip().split(' ')) for i in range(len(a)): if a[i] == 0: print(i+1) break
import sys a = list(map(int, sys.stdin.readline().rstrip().split(' '))) for i in range(len(a)): if a[i] == 0: print(i+1) break
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
53
#include <iostream> using namespace std; int main() { int arr[5]; int x; int index; for (int i = 0; i < 5; i++) { cin >> x; arr[i] = x; if (x == 0) { index = i; } } cout << index; return 0; }
#include <iostream> using namespace std; int main() { int arr[5]; int x; int index; for (int i = 0; i < 5; i++) { cin >> x; arr[i] = x; if (x == 0) { index = i; } } cout << index + 1; return 0; }
[["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
70
x = list(map(int,input().split())) print(x) for i in range(5): if x[i] == 0: print(i+1) else: pass
x = list(map(int,input().split())) for i in range(5): if x[i] == 0: print(i+1) else: pass
[["-", 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
46
def main(): input_number = list(map(int, input().split())) for i in range(5): if input_number[i]==0: print(i) break if __name__=='__main__': main()
def main(): input_number = list(map(int, input().split())) for i in range(5): if input_number[i]==0: print(i+1) exit() if __name__=='__main__': main()
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 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
53
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); // cin.tie(NULL); // int t; // cin>>t; // while(t--) // { // } int arr[5]; for (int i = 0; i < 5; i++) cin >> arr[i]; int ans = 0; for (int i = 0; i < 5; i++) { if (ar...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); // cin.tie(NULL); // int t; // cin>>t; // while(t--) // { // } int arr[5]; for (int i = 0; i < 5; i++) cin >> arr[i]; int ans = 0; for (int i = 0; i < 5; i++) { if (ar...
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
1
103
A = list(map(int, input().split())) k = A.find(0) print(k+1)
A = list(map(int, input().split())) k = A.index(0) print(k+1)
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]]
5
31
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) { cout << i << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 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
61
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[5]; } for (int i = 0; i < 5; i++) { if (x[5] == 0) cout << i + 1 << endl; } }
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; } for (int i = 0; i < 5; i++) { if (x[i] == 0) cout << i + 1 << endl; } }
[["-", 0, 1, 0, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 16, 12, 69, 341, 342, 0, 22], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22]]
1
74
inputs = gets.chomp.split("").map(&:to_i) output = inputs.find_index(0) if output >= 0 puts output end
inputs = gets.chomp.split(" ").map(&:to_i) # '1 2 3 0 4'.chomp.split(" ").map(&:to_i) output = inputs.find_index(0) if output >= 0 puts output + 1 end
[["+", 12, 652, 486, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 738, 17, 72], ["+", 64, 749, 0, 652, 3, 4, 0, 738, 12, 612]]
4
32
X = [int(i) for i in input().split()] for i in range(len(X)): if X[i] == 0: print (i)
X = [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
41
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; cin >> x[0] >> x[1] >> x[2] >> x[3] >> x[4]; for (int i = 0; i < 5; i++) if (x[i] == 0) { cout << i << endl; break; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; cin >> x[0] >> x[1] >> x[2] >> x[3] >> x[4]; for (int i = 0; i < 5; i++) if (x[i] == 0) { cout << i + 1 << endl; break; } return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
81
#include <algorithm> #include <climits> #include <fstream> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; typedef long long ll; /* typedef struct Name Name; struct Name { int a[3]; }; */ #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define F0R(i, a) for (in...
#include <algorithm> #include <climits> #include <fstream> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; typedef long long ll; /* typedef struct Name Name; struct Name { int a[3]; }; */ #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define F0R(i, a) for (in...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]]
1
90
nums = [int(x) for x in input()] for i in range(5): if nums[i] == 0: print(i + 1) exit(0)
nums = [int(x) for x in input().split(" ")] for i in range(5): if nums[i] == 0: print(i + 1) exit(0)
[["+", 12, 658, 0, 659, 12, 652, 63, 319, 0, 131], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 655], ["+", 12, 658, 0, 659, 12, 652, 3, 4...
5
40
#include <bits/stdc++.h> #define endl "\n" #define pb push_back #define ll long long #define d1(x) cerr << #x << "--> " << x << endl #define d2(x, y) cerr << #x << "--> " << x << " | " << #y << "--> " << y << endl #define d3(x, y, z) \ cerr << #x << "--> " <<...
#include <bits/stdc++.h> #define endl "\n" #define pb push_back #define ll long long #define d1(x) cerr << #x << "--> " << x << endl #define d2(x, y) cerr << #x << "--> " << x << " | " << #y << "--> " << y << endl #define d3(x, y, z) \ cerr << #x << "--> " <<...
[["-", 0, 14, 8, 9, 0, 1, 0, 191, 39, 78], ["-", 8, 9, 0, 1, 0, 191, 51, 83, 0, 45], ["-", 51, 83, 0, 2, 3, 4, 0, 25, 0, 46], ["-", 36, 36, 0, 30, 0, 14, 8, 9, 0, 46]]
1
405
#include <iostream> #include <string> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) { cout << x[i]; break; } } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) { cout << i + 1; break; } } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 69, 28, 22], ["-", 0, 1, 0, 16, 12, 69, 341, 342, 0, 70], ["-", 0, 1, 0, 16, 12, 69, 341, 342, 0, 73], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
66
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; #define PI 3.141592 #define all(a) (a).begin(), (a).end() int main() { vector<int> A; for (int i = 0; i < 5; i++) cin >> A[i]; for (int i = 0; i < 5; i++) { if (A[i] == 0) { ...
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; #define PI 3.141592 #define all(a) (a).begin(), (a).end() int main() { vector<int> A(5); for (int i = 0; i < 5; i++) cin >> A[i]; for (int i = 0; i < 5; i++) { if (A[i] == 0) ...
[["+", 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
103
#include <bits/stdc++.h> using namespace std; void solve() { vector<int> a(5); for (int i = 0; i < 5; i++) { cin >> a[i]; } for (int i = 1; i <= 5; i++) { bool ok = 0; for (int j = 0; j < 5; j++) if (a[i] == j) ok = 1; if (!ok) cout << i << endl; } } int main() { int t...
#include <bits/stdc++.h> using namespace std; void solve() { vector<int> a(5); for (int i = 0; i < 5; i++) { cin >> a[i]; } for (int i = 1; i <= 5; i++) { bool ok = 0; for (int j = 0; j < 5; j++) if (a[j] == i) ok = 1; if (!ok) cout << i << endl; } } int main() { int t...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["-", 0, 7, 8, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 12, 22]]
1
124
// NAME-ADITYYA OJHA /* GURU(MENTOR)-AARADHYA */ /* * Heart beats fast * Colors and promises * How to be brave * How can I love when I am afraid to fall... (courtesy-amnesiac_dusk) */ #include <bits/stdc++.h> #define ll lo...
// NAME-ADITYYA OJHA /* GURU(MENTOR)-AARADHYA */ /* * Heart beats fast * Colors and promises * How to be brave * How can I love when I am afraid to fall... (courtesy-amnesiac_dusk) */ #include <bits/stdc++.h> #define ll lo...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
141
#include <stdio.h> int main(void) { int i; int b[5]; for (i = 0; i < 5; i++) { scanf("%d", &b[i]); } for (i = 0; i < 5; i++) { if (b[i] != i + 1) { printf("%c", b[i - 1]); return 0; } } }
#include <stdio.h> int main(void) { int i; int b[5]; for (i = 0; i < 5; i++) { scanf("%d", &b[i]); } for (i = 0; i < 5; i++) { if (b[i] != i + 1) { printf("%d", i + 1); return 0; } } }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 69, 28, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 69, 0, 70], ["-", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 69, 0, 73]]
0
91
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
[["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 46]]
1
172
a=gets.split.map(&:to_i) a.each_with_index do |item,i| if item==0 puts i end end
a=gets.split.map(&:to_i) a.each_with_index do |item,i| if item==0 puts i+1 end end
[["+", 64, 749, 0, 652, 3, 4, 0, 738, 17, 72], ["+", 64, 749, 0, 652, 3, 4, 0, 738, 12, 612]]
4
28
#include <cstdio> #include <iostream> #include <string> #include <unordered_map> #include <vector> #define task "" using namespace std; using ll = long long; using ld = long double; const int N = 1e5 + 2; int n, a[N]; void Read() { n = 5; for (int i = 0; i <= n; ++i) cin >> a[i]; } void Solve() { for (int ...
#include <cstdio> #include <iostream> #include <string> #include <unordered_map> #include <vector> #define task "" using namespace std; using ll = long long; using ld = long double; const int N = 1e5 + 2; int n, a[N]; void Read() { n = 5; for (int i = 1; i <= n; ++i) cin >> a[i]; } void Solve() { for (int ...
[["-", 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, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]]
1
148
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a(5); for (int i = 1; i < 5; i++) { cin >> a.at(i); if (a.at(i) == 0) cout << i++ << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a(6); for (int i = 1; i < 6; i++) { cin >> a.at(i); if (a.at(i) == 0) cout << i++ << endl; } }
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
64
#include <bits/stdc++.h> using namespace std; int main() { int pos; for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) ; pos = i; } cout << pos; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int pos; for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) pos = i; } cout << pos; return 0; }
[["-", 0, 7, 8, 9, 0, 57, 64, 1, 0, 35]]
1
56
#include <stdio.h> int main() { int i, x; for (i = 1; i < 5; i++) { scanf("%d", &x); if (x == 0) { printf("%d\n", i); return 0; } } return 0; }
#include <stdio.h> int main() { int i, x; for (i = 1; i < 6; i++) { scanf("%d", &x); if (x == 0) { printf("%d\n", i); return 0; } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
0
62
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 4; i++) { cin >> x[i]; } int ans = 0; for (int i = 0; i < 4; i++) { if (x[i] == 0) { ans = i + 1; break; } } if (ans == 0) cout << "error" << endl; else cout << ans << endl; return 0;...
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; } int ans = 0; for (int i = 0; i < 5; i++) { if (x[i] == 0) { ans = i + 1; break; } } if (ans == 0) cout << "error" << endl; else cout << ans << endl; return 0;...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
105
#include <iostream> #include <vector> using namespace std; int main() { vector<int> a(4); for (int i = 0; i < 4; i++) { cin >> a[i]; if (a[i] == 0) cout << ++i << endl; } return 0; }
#include <iostream> #include <vector> using namespace std; int main() { vector<int> a(5); for (int i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) cout << ++i << endl; } return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
65
list1 = list(map(int,input().split())) ans = 100 for i in range(4): if list1[i] == 0: ans = i+1 print(ans)
list1 = list(map(int,input().split())) ans = 100 for i in range(5): if list1[i] == 0: ans = i+1 print(ans)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
45
// BISMILLAHIR RAHMANIR RAHIM // ALLAH HU AKABR #include <bits/stdc++.h> #define ll long long int using namespace std; int main() { int a[4]; for (int i = 0; i < 4; i++) { cin >> a[i]; } int ans = 0; for (int i = 0; i < 4; i++) { if (a[i] == 0) { ans = i + 1; break; } } cout << ans...
// BISMILLAHIR RAHMANIR RAHIM // ALLAH HU AKABR #include <bits/stdc++.h> #define ll long long int using namespace std; int main() { int a[6]; for (int i = 0; i < 5; i++) { cin >> a[i]; } int ans = 0; for (int i = 0; i < 5; i++) { if (a[i] == 0) { ans = i + 1; break; } } cout << ans...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
92
array = list(map(int, input().split())) target = 0 print(array.index(target))
array = list(map(int, input().split())) target = 0 print(array.index(target)+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
29
x1, x2, x3, x4, x5 = map(int, input().split()) l = [x1, x2, x3, x4, x5] ls = [str(n) for n in l] s = ''.join(ls).find('0') print(s)
x1, x2, x3, x4, x5 = map(int, input().split()) l = [x1, x2, x3, x4, x5] ls = [str(n) for n in l] s = ''.join(ls).find('0') print(s+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
67
#include <iostream> using namespace std; const int INF = 0x3f3f3f3f; // vector<int>v[maxn]; // map<int,string>mp[maxn]; // queue<int>q[maxn]; int a[5]; int main() { int i, j, k, ans = 0; for (i = 0; i < 5; i++) { cin >> a[i]; } for (i = 0; i < 5; i++) { if (a[i] == 0) cout << i << " "; } retur...
#include <iostream> using namespace std; const int INF = 0x3f3f3f3f; // vector<int>v[maxn]; // map<int,string>mp[maxn]; // queue<int>q[maxn]; int a[5]; int main() { int i, j, k, ans = 0; for (i = 0; i < 5; i++) { cin >> a[i]; } for (i = 0; i < 5; i++) { if (a[i] == 0) cout << i + 1 << " "; } r...
[["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
95
#include <stdio.h> int main(void) { 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\n", i); return 0; } } return 0; }
#include <stdio.h> int main(void) { 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\n", i + 1); return 0; } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
95
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define faster \ ios_base::sync_with_stdio(false); ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define faster \ ios_base::sync_with_stdio(false); ...
[["-", 8, 9, 0, 42, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 42, 0, 2, 3, 4, 0, 13]]
1
97
#include <bits/stdc++.h> using namespace std; int main() { int x, i, ans; for (i = 1; i <= 5; i++) { cin >> x; if (x == 0) { ans = i; } } cout << i << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, i, ans; for (i = 1; i <= 5; i++) { cin >> x; if (x == 0) { ans = i; } } cout << ans << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
59
A=input() list = A.split() answer = 0 for i in range (5): list[i] = int(list[i]) if list[i] == 0: answer = i+1 print(answer) print(list)
A=input() list = A.split() answer = 0 for i in range (5): list[i] = int(list[i]) if list[i] == 0: answer = i+1 print(answer)
[["-", 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
56
#include <bits/stdc++.h> typedef long long ll; using namespace std; void solve() { int ans, x; for (int i = 0; i < 4; i++) { cin >> x; if (x == 0) ans = i; } cout << ans + 1 << endl; } int main() { /*int t; cin >> t; while (t--) { solve(); }*/ solve(); return 0; }
#include <bits/stdc++.h> typedef long long ll; using namespace std; void solve() { int ans, x; for (int i = 0; i < 5; i++) { cin >> x; if (x == 0) ans = i; } cout << ans + 1 << endl; } int main() { /*int t; cin >> t; while (t--) { solve(); }*/ solve(); return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
74
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define all(x) x.begin(), x.end() #define MOD 998244353 const long doubl...
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define all(x) x.begin(), x.end() #define MOD 998244353 const long doubl...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
171
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define all(x) x.begin(), x.end() #define MOD 998244353 const long doubl...
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define all(x) x.begin(), x.end() #define MOD 998244353 const long doubl...
[["-", 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
175
x = list(map(int, input().split())) for i in range(0, len(x)): if x[i] == 0: print(i + 1) return
x = list(map(int, input().split())) for i in range(0, len(x)): if x[i] == 0: print(i + 1) break
[["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
45
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Integer result = 10; for (int i = 0; i < 5; i++) { Integer num = scan.nextInt(); result -= num; } System.out.println(result); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Integer result = 15; for (int i = 0; i < 5; i++) { Integer num = scan.nextInt(); result -= num; } System.out.println(result); } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
78
#include <stdio.h> signed main() { int x[5], i; for (i = 0; i < 5; i++) ; { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d\n", i + 1); } } return (0); }
#include <stdio.h> signed main() { int x[5], i; for (i = 0; i < 5; i++) { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d\n", i + 1); } } return (0); }
[["-", 0, 14, 8, 9, 0, 7, 8, 1, 0, 35]]
1
88
#include <stdio.h> signed main() { int a[5]; int i = 0; while (i < 5) { scanf("%d", a[i]); if (a[i] = 0) { printf("%d", i + 1); } i++; } return (0); }
#include <stdio.h> signed main() { int a[5]; int i = 0; while (i < 5) { scanf("%d", &a[i]); if (a[i] == 0) { printf("%d", i + 1); } i++; } return (0); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]]
0
69
#include <stdio.h> signed main() { int x[5]; int i; for (i = 0; i < 5; i++) { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] = 0) { printf("%d\n", i + 1); } } return (0); }
#include <stdio.h> signed main() { int x[5]; int i; for (i = 0; i < 5; i++) { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d\n", i + 1); } } return (0); }
[["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]]
0
88
#include <stdio.h> signed main() { int a[5], i; for (i = 0; i < 5; i++) { scanf("%d", &a[i]); } if (a[i] == 0) { printf("%d", i + 1); } return (0); }
#include <stdio.h> signed main() { int a[5], i; for (i = 0; i < 5; i++) { scanf("%d", &a[i]); if (a[i] == 0) { printf("%d", i + 1); } } return (0); }
[["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
0
71
#include <stdio.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\n"); } else if (a == 0) { printf("2\n"); } else if (a == 0) { printf("3\n"); } else if (a == 0) { printf("4\n"); } else if (a == b) { printf("5\n"); } retu...
#include <stdio.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\n"); } else if (b == 0) { printf("2\n"); } else if (c == 0) { printf("3\n"); } else if (d == 0) { printf("4\n"); } else if (e == 0) { printf("5\n"); } retu...
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 13]]
0
131
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) typedef long long ll; int main() { int x[5]; rep(i, 5) { cin >> x[i]; if (x[i] == 5) { cout << i + 1 << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) typedef long long ll; int main() { int x[5]; rep(i, 5) { cin >> x[i]; if (x[i] == 0) { cout << i + 1 << endl; return 0; } } }
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
79
n = [int(i) for i in input().split()] print(n.index(0))
import sys n = [int(i) for i in input().split()] print(n.index(0) + 1)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
27
#include <bits/stdc++.h> using namespace std; // 小数点以下桁数 // fixed << setprecision(i) int gcd(int a, int b) { if (a % b == 0) return (b); else return (gcd(b, a % b)); } int lcm(int a, int b) { return a * b / gcd(a, b); } int main() { int a, ans; for (int i = 1; i <= 5; i++) { cin >> a; if (a...
#include <bits/stdc++.h> using namespace std; // 小数点以下桁数 // fixed << setprecision(i) int gcd(int a, int b) { if (a % b == 0) return (b); else return (gcd(b, a % b)); } int lcm(int a, int b) { return a * b / gcd(a, b); } int main() { int a, ans; for (int i = 1; i <= 5; i++) { cin >> a; if (a...
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]]
1
115
#include <iostream> int main() { for (int i = 0; i < 5; ++i) { int x; std::cin >> x; if (x == 0) { std::cout << i << std::endl; } } return 0; }
#include <iostream> int main() { for (int i = 0; i < 5; ++i) { int x; std::cin >> x; if (x == 0) { std::cout << i + 1 << std::endl; } } return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
54
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #i...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #i...
[["-", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 140], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
152
a=input().sprit() x=0 for n in a: x+=1 if n=="0": aa=x print(aa)
a=input().split() x=0 for n in a: x+=1 if n=="0": aa=x print(aa)
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]]
5
34
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return...
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return...
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
344
#include <iostream> using namespace std; int main() { int a[5]; int ans; for (int i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) ans == i + 1; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int a[5]; int ans; for (int i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) ans = i + 1; } cout << ans << endl; return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]]
1
68
l = list(map(int,input().split())) cnt = 0 for i,s in enumerate(l): if s == 0: print(i) exit() else: pass
l = list(map(int,input().split())) cnt = 0 for i,s in enumerate(l): if s == 0: print(i+1) exit() else: pass
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
45
x = map(int,input().split()) y =15 print(y) print(y-sum(x))
x = map(int,input().split()) y =15 print(y-sum(x))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]]
5
30
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdlib> #include <deque> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <strin...
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdlib> #include <deque> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <strin...
[["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
1
132
#include <stdio.h> #define N 5 void main() { int x[N]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < N; i++) { if (x[i] == 0) { printf("%d", i); break; } } }
#include <stdio.h> #define N 5 void main() { int x[N]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < N; i++) { if (x[i] == 0) { printf("%d", i + 1); break; } } }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
92
a = list(map(int, input().split())) res = 0 for i in range(len(a)): if a[i] == i: res = i + 1 break print(res)
a = list(map(int, input().split())) res = 0 for i in range(len(a)): if a[i] == 0: res = i + 1 break print(res)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]]
5
49
#include <bits/stdc++.h> using namespace std; // SHORTCUTS #define ll long long #define endl '\n' #define i1(a) cin >> a #define i2(a, b) cin >> a >> b #define i3(a, b, c) cin >> a >> b >> c #define o1(a) cout << a << endl #define o2(a, b) cout << a << " " << b << endl #define o3(a, b, c) cout << a << " " << b << " "...
#include <bits/stdc++.h> using namespace std; // SHORTCUTS #define ll long long #define endl '\n' #define i1(a) cin >> a #define i2(a, b) cin >> a >> b #define i3(a, b, c) cin >> a >> b >> c #define o1(a) cout << a << endl #define o2(a, b) cout << a << " " << b << endl #define o3(a, b, c) cout << a << " " << b << " "...
[["+", 64, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 64, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
613
#include <stdio.h> int main() { int a[5]; for (int i = 0; i < 5; i++) scanf("%d", &a[i]); for (int i = 0; i < 5; i++) if (a[i] == 0) printf("%d\n", i); return 0; }
#include <stdio.h> int main() { int a[5]; for (int i = 0; i < 5; i++) scanf("%d", &a[i]); for (int i = 0; i < 5; i++) if (a[i] == 0) 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
77
#include <iostream> using namespace std; int main() { int x = 5; int arr[x]; for (int i = 0; i < 5; i++) cin >> arr[i]; if (arr[0] == 0) cout << 1 << endl; else if (arr[1] == 0) cout << 1 << endl; else if (arr[2] == 0) cout << 1 << endl; else if (arr[3] == 0) cout << 1 << endl; el...
#include <iostream> using namespace std; int main() { int x = 5; int arr[x]; for (int i = 0; i < 5; i++) cin >> arr[i]; if (arr[0] == 0) cout << 1 << endl; else if (arr[1] == 0) cout << 2 << endl; else if (arr[2] == 0) cout << 3 << endl; else if (arr[3] == 0) cout << 4 << endl; el...
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]]
1
126
lista = list(map(int,input().split())) for n in range(1,5): if lista[n-1] != n: print(n)
lista = list(map(int,input().split())) for n in range(1,6): if lista[n-1] != n: print(n)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
41
#include <stdio.h> int main() { int n[5]; scanf("%d%d%d%d%d", &n[0], &n[1], &n[2], &n[3], &n[4]); printf("%s", n[0] == 0 ? "0" : n[1] == 0 ? "1" : n[2] == 0 ? "2" : n[3] == 0 ? "3" : "4"); return 0; }
#include <stdio.h> int main() { int n[5]; scanf("%d%d%d%d%d", &n[0], &n[1], &n[2], &n[3], &n[4]); printf("%s", n[0] == 0 ? "1" : n[1] == 0 ? "2" : n[2] == 0 ? "3" : n[3] == 0 ? "4" : "5"); return 0; }
[["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 3, 4, 0, 41, 75, 41, 64, 5, 0, 6], ["+", 3, 4, 0, 41, 75, 41, 64, 5, 0, 6], ["-", 0, 41, 75, 41, 75, 41, 64, 5, 0, 6], ["+", 0, 41, 75, 41, 75, 41, 64, 5, 0, 6], ["-", 75, 41, 75, 41, 75, 41, 64, 5, 0, 6], ["+", 75, 41, 75, 41, 75, 41,...
0
109
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 1; i < 5; i++) { int x; cin >> x; if (x == 0) cout << i << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) cout << i << endl; } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
47
x = list(map(int,input().split())) for i in range(5): if(x[i] == 0): print(x[i])
x = list(map(int,input().split())) for i in range(5): if(x[i] == 0): print(i+1)
[["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
42
#include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; int ans = 0; if (x1 == 0) ans == 1; if (x2 == 0) ans == 2; if (x3 == 0) ans == 3; if (x4 == 0) ans == 4; if (x5 == 0) ans == 5; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; int ans = 0; if (x1 == 0) ans = 1; if (x2 == 0) ans = 2; if (x3 == 0) ans = 3; if (x4 == 0) ans = 4; if (x5 == 0) ans = 5; cout << ans << endl; return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]]
1
99
a = map(int,input().split()) for i in range(0,4): if a[i]==0: print(i+1)
a = list(map(int,input().split())) for i in range(0,5): if a[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, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
38
x = [0] * 5 x = input().split() x = [int(_) for _ in x] print(x) for i in range(5): if x[i] == 0: ans = i print(ans+1) break
x = [0] * 5 x = input().split() x = [int(_) for _ in x] # print(x) for i in range(5): if x[i] == 0: ans = i print(ans+1) break
[["-", 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
58
def main(): x = list(map(int,input().split())) for i in range(len(x)): if i==0 : print(i+1) break if __name__ == "__main__": main()
def main(): x = list(map(int,input().split())) for i in range(len(x)): if x[i]==0 : print(i+1) break if __name__ == "__main__": main()
[["+", 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
55
#include <bits/stdc++.h> #define ll long long #define vi vector<int> #define vll vector<long long> #define pii pair<int, int> #define pll pair<ll, ll> #define sll set<long long> #define si set<int> #define stk stack<int> #define que queue<int> #define pb push_back #define ff first #define ss second #define IOS ...
#include <bits/stdc++.h> #define ll long long #define vi vector<int> #define vll vector<long long> #define pii pair<int, int> #define pll pair<ll, ll> #define sll set<long long> #define si set<int> #define stk stack<int> #define que queue<int> #define pb push_back #define ff first #define ss second #define IOS ...
[["-", 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
124
import java.io.*; import java.io.BufferedReader; import java.util.*; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); i...
import java.io.*; import java.io.BufferedReader; import java.util.*; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); i...
[["-", 75, 196, 0, 1, 0, 492, 3, 4, 0, 499], ["+", 75, 196, 0, 1, 0, 492, 3, 4, 0, 499]]
3
206
#include <stdio.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("0"); } else if (b == 0) { printf("1"); } else if (c == 0) { printf("2"); } else if (d == 0) { printf("3"); } else if (e == 0) { printf("4"); } return 0; }
#include <stdio.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"); } else if (b == 0) { printf("2"); } else if (c == 0) { printf("3"); } else if (d == 0) { printf("4"); } else if (e == 0) { printf("5"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
124
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll a[5]; int n, ans; for (int i = 0; i < 4; i++) { cin >> n; if (n == 0) cout << i + 1; } return 0; }
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll a[5]; int n, ans; for (int i = 0; i < 5; i++) { cin >> n; if (n == 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
63