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
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define endl "\n" #define sz(x) ((ll)(x).size()) #define pb push_back #define all(x) (x).begin(), (x).end() #define prt(x) cout << (x) #define prtl(x) cout << (x) << endl #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i > b; i--) ...
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define endl "\n" #define sz(x) ((ll)(x).size()) #define pb push_back #define all(x) (x).begin(), (x).end() #define prt(x) cout << (x) #define prtl(x) cout << (x) << endl #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i > b; i--) ...
[["-", 0, 30, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 0, 30, 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
563
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) #define fi first #define se second typedef vector<int> VI; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) #define fi first #define se second typedef vector<int> VI; ...
[["+", 0, 9, 0, 9, 0, 7, 15, 16, 17, 98], ["+", 0, 9, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 0, 9, 0, 7, 15, 16, 12, 16, 17, 19], ["+", 0, 9, 0, 7, 15, 16, 12, 16, 12, 22]]
1
536
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T1, typename T2> bool chmin(T1 &a, T2 b) { if (a <= b) return 0; a = b; return 1; } template <typename T1, typename T2> bool chmax(T1 &a, T2 b) { if (a >= b) return 0; a = b; return 1; } int dx[4] = {0, 1, -1, 0};...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T1, typename T2> bool chmin(T1 &a, T2 b) { if (a <= b) return 0; a = b; return 1; } template <typename T1, typename T2> bool chmax(T1 &a, T2 b) { if (a >= b) return 0; a = b; return 1; } int dx[4] = {0, 1, -1, 0};...
[["-", 28, 69, 341, 342, 0, 69, 341, 342, 0, 13], ["+", 28, 69, 341, 342, 0, 69, 341, 342, 0, 13]]
1
629
s,k = input().split() K = int(k) if s[-1] == "1": s += "0" n = len(s) ls = [] cnt = 0 for i in range(n): if s[i] == "0": ls.append(cnt) cnt = 0 else: cnt += 1 l = len(ls) sm = sum(ls) mod = 998244353 dp = [[[0 for i in range(sm+1)] for j in range(sm+1)] for k in range(l+1)] dp[0][0][0] = 1 smprv = 0 f...
s,k = input().split() K = int(k) if s[-1] == "1": s += "0" n = len(s) ls = [] cnt = 0 for i in range(n): if s[i] == "0": ls.append(cnt) cnt = 0 else: cnt += 1 l = len(ls) sm = sum(ls) mod = 998244353 dp = [[[0 for i in range(sm+1)] for j in range(sm+1)] for k in range(l+1)] dp[0][0][0] = 1 smprv = 0 f...
[["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 12, 612], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 12, 612]]
5
323
#include <bits/stdc++.h> using namespace std; #ifdef Adrian #include "debug.h" #else #define debug(...) 9999 #endif typedef long long ll; typedef long double ld; typedef complex<ld> point; #define F first #define S second #define ii pair<ll, ll> template <typename G> struct triple { G F, S, T; }; #define iii triple...
#include <bits/stdc++.h> using namespace std; #ifdef Adrian #include "debug.h" #else #define debug(...) 9999 #endif typedef long long ll; typedef long double ld; typedef complex<ld> point; #define F first #define S second #define ii pair<ll, ll> template <typename G> struct triple { G F, S, T; }; #define iii triple...
[["+", 8, 9, 0, 7, 15, 16, 12, 2, 63, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]]
1
691
#include <bits/stdc++.h> char s[305]; int n = 0, len, k, a[305], b[305], mod = 998244353; long long f[305][305][305]; int main() { std::cin >> s >> k; len = strlen(s); n = 1; for (int i = 0; i < len; ++i) { if (s[i] == '0') ++n; else ++a[n]; } for (int i = n - 1; i >= 0; --i) b[i] =...
#include <bits/stdc++.h> char s[305]; int n = 0, len, k, a[305], b[305], mod = 998244353; long long f[305][305][305]; int main() { std::cin >> s >> k; len = strlen(s); n = 1; for (int i = 0; i < len; ++i) { if (s[i] == '0') ++n; else ++a[n]; } ++n; for (int i = n - 1; i >= 0; --i) ...
[["+", 0, 14, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
420
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> static const int MOD = 998244353; using ll = long long; using u32 = unsigned; using u64 = unsigned long long; using namespace std; template <class T> constexpr...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> static const int MOD = 998244353; using ll = long long; using u32 = unsigned; using u64 = unsigned long long; using namespace std; template <class T> constexpr...
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
1,231
// header #ifdef LOCAL #include "/Users/takakurashokichi/Desktop/atcoder/cxx-prettyprint-master/prettyprint.hpp" #define debug(x) cout << x << endl #else #define debug(...) 42 #endif #pragma GCC optimize("Ofast") #include <bits/stdc++.h> // types using namespace std; using ll = long long; using ull = unsigned long long...
// header #ifdef LOCAL #include "/Users/takakurashokichi/Desktop/atcoder/cxx-prettyprint-master/prettyprint.hpp" #define debug(x) cout << x << endl #else #define debug(...) 42 #endif #pragma GCC optimize("Ofast") #include <bits/stdc++.h> // types using namespace std; using ll = long long; using ull = unsigned long long...
[["+", 3, 4, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
1,787
#include <bits/stdc++.h> #define all(vec) vec.begin(), vec.end() #define pb push_back #define eb emplace_back #define fi first #define se second using namespace std; using ll = long long; using P = pair<ll, ll>; template <class T> using V = vector<T>; template <class T> inline void chmin(T &a, const T &b) { a = min(a, ...
#include <bits/stdc++.h> #define all(vec) vec.begin(), vec.end() #define pb push_back #define eb emplace_back #define fi first #define se second using namespace std; using ll = long long; using P = pair<ll, ll>; template <class T> using V = vector<T>; template <class T> inline void chmin(T &a, const T &b) { a = min(a, ...
[["+", 8, 9, 0, 7, 15, 16, 12, 2, 63, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]]
1
1,334
#include <algorithm> #include <cassert> #include <cmath> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 31, 69, 28, 69, 28, 69, 341, 342, 0, 22], ["+", 31, 69, 28, 69, 28, 69, 341, 342, 0, 22], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 31, 22], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 31, 22]]
1
453
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; const long long INF = 1LL << 60; const int MOD = 1000000007; using pint = pair<ll, ll>; int main() { ll a[5]; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { c...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; const long long INF = 1LL << 60; const int MOD = 1000000007; using pint = pair<ll, ll>; int main() { ll a[5]; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { c...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
117
a,b,c,d,e = (int(x) for i in input().split()) if a == 0: print(1) if b == 0: print(2) if c == 0: print(3) if d == 0: print(4) if e == 0: print(5)
a,b,c,d,e = (int(i) for i in input().split()) if a == 0: print(1) if b == 0: print(2) if c == 0: print(3) if d == 0: print(4) if e == 0: print(5)
[["-", 0, 662, 12, 668, 8, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 668, 8, 652, 3, 4, 0, 22]]
5
71
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define oo 1000000000000000000 #define forr(i, n) for (ll i = 0; i < n; i++) #define fastio \ ios_base::sync_with_stdio(false)...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define oo 1000000000000000000 #define forr(i, n) for (ll i = 0; i < n; i++) #define fastio \ ios_base::sync_with_stdio(false)...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 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, 22], ["+", 0, 1, 0, 16, 12, 69, 341, 342, 0, 73]]
1
349
def main(): xs = list(map(int, input().split())) print(xs.count(0)) if __name__ == '__main__': main()
def main(): xs = list(map(int, input().split())) print(xs.index(0) + 1) if __name__ == '__main__': main()
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
41
import java.util.*; public class Main { public void solve() { Scanner scan = new Scanner(System.in); int[] X = new int[4]; for (int i = 0; i <= 5; i++) { X[i] = scan.nextInt(); if (X[i] == 0) System.out.println(i + 1); } } public static void main(String[] args) { new Main().sol...
import java.util.*; public class Main { public void solve() { Scanner scan = new Scanner(System.in); int[] X = new int[5]; for (int i = 0; i <= 4; i++) { X[i] = scan.nextInt(); if (X[i] == 0) System.out.println(i + 1); } } public static void main(String[] args) { new Main().sol...
[["-", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499], ["+", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]]
3
109
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e2 + 5; const int INF = 1e9 + 7; int a; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); for (int i = 0; i < 5; i++) { cin >> a; if (a == 0) { cout << i; return 0; } } return 0; } // 1...
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e2 + 5; const int INF = 1e9 + 7; int a; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); for (int i = 1; i <= 5; i++) { cin >> a; if (a == 0) { cout << i; return 0; } } return 0; } // ...
[["-", 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, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
87
#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] == 1) { 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; } } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
76
#include <bits/stdc++.h> using namespace std; int main() { int a; vector<int> n(5); for (int i = 0; i < 5; i++) { cin >> n.at(i); if (n.at(i) != i + 1) a = i + 1; break; } cout << a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a; vector<int> n(5); for (int i = 0; i < 5; i++) { cin >> n.at(i); if (n.at(i) != i + 1) { a = i + 1; break; } } cout << a << endl; }
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
1
76
<?php $str = trim(fgets(STDIN)); $array = explode(" ", $str); foreach($value as $index => $array) { if($value == 0) { echo $index+1; } }
<?php $str = trim(fgets(STDIN)); $array = explode(" ", $str); foreach($array as $index => $value) { if($value == 0) { echo $index+1; } }
[["-", 36, 36, 0, 493, 0, 614, 0, 606, 0, 141], ["+", 36, 36, 0, 493, 0, 614, 0, 606, 0, 141], ["-", 0, 493, 0, 614, 0, 569, 0, 606, 0, 141], ["+", 0, 493, 0, 614, 0, 569, 0, 606, 0, 141]]
6
53
x = list(map(int, input().split())) for i in range(len(x)-1): if x[i] == 0: print(i+1)
x = list(map(int, input().split())) for i in range(len(x)): if x[i] == 0: print(i+1)
[["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
44
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define endl "\n" #define all(s) s.begin(), s.end() #define pb push_back #define uno unordered_map #define pi 3.1415926536 #define dig(a) fixed << setprecision(a) #define test(zz) \ int zz...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define endl "\n" #define all(s) s.begin(), s.end() #define pb push_back #define uno unordered_map #define pi 3.1415926536 #define dig(a) fixed << setprecision(a) #define test(zz) \ int zz...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
340
#include <iostream> using namespace std; int main() { int a; for (int i = 1; i < 6; i++) { cin >> a; if (a == 0) { cout << a << endl; } } }
#include <iostream> using namespace std; int main() { int a; for (int i = 1; i < 6; i++) { cin >> a; if (a == 0) { cout << i << endl; } } }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
49
x = list(map(int, input().split())) for i,j in enumerate(x): if j == 0: print(i) break
x = list(map(int, input().split())) for i,j in enumerate(x): if j == 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
37
num_list = input().split() i = 0 while True: if num_list[i] == 0: print(i + 1) break i += 1
num_list = input().split() i = 0 while True: if int(num_list[i]) == 0: print(i + 1) break 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
33
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int idx = 0; for (int i = 0; i < 5; i++) { int num; c...
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int idx = 0; for (int i = 0; i < 5; i++) { int num; c...
[["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
83
#include <iostream> using namespace std; int main(void) { int x[5], i; for (i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) break; } cout << x[i]; }
#include <iostream> using namespace std; int main(void) { int x[5], i; for (i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) break; } cout << i + 1; }
[["-", 8, 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], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
61
a = map(int,input().split()) for i in range(len(a)): if a[i] == 0: print(i+1) break
a = list(map(int,input().split())) for i in range(len(a)): 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, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
40
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); int num = 0; cin >> x[1] >> x[2] >> x[3] >> x[4] >> x[5]; for (int i = 1; i < x.size(); i++) { if (x[i] == 0) { num = i; } } cout << num << endl; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); int num = 0; cin >> x[1] >> x[2] >> x[3] >> x[4] >> x[5]; for (int i = 1; i <= x.size(); i++) { if (x[i] == 0) { num = i; } } cout << num << endl; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
94
#include <iostream> using namespace std; int main() { int a[5]; for (int i = 0; i < 5; i++) { cin >> a[i]; if (a[i] == 0) cout << i - 1; } return 0; }
#include <iostream> using namespace std; 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, 57, 64, 1, 0, 16, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 16, 12, 16, 17, 72]]
1
59
x = list(map(int, input().split())) n = len(x) for _ in range(n): if x[i] == 0: print(i + 1)
x = list(map(int, input().split())) n = len(x) for i in range(n): if x[i] == 0: print(i + 1)
[["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22]]
5
45
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x(5); int answer = 0; for (int i = 0; i < 5; i++) { cin >> x.at(i); if (x.at(i) == 0) { answer = i; break; } } cout << answer << endl; }
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x(5); int answer = 0; for (int i = 0; i < 5; i++) { cin >> x.at(i); if (x.at(i) == 0) { answer = (i + 1); break; } } cout << answer << endl; }
[["+", 64, 9, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 23, 0, 25]]
1
78
x = list(map(int,input())) for i in range(5): if x[i]==0: print(i+1)
x = list(map(int,input().split())) for i in range(5): if x[i] == 0: print(i+1)
[["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
35
X = list(map(int,input().split())) for i in len(5): if X[i]==0: print(i+1)
X = list(map(int,input().split())) for i in range(5): if X[i]==0: print(i+1)
[["-", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22]]
5
39
#include <bits/stdc++.h> using namespace std; int main() { vector<int> arr; for (int i = 0; i < 5; ++i) { int x; cin >> x; arr.push_back(x); } for (int i = 0; i < 5; ++i) { if (arr[i] == 0) { cout << i << endl; break; } } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> arr; for (int i = 0; i < 5; ++i) { int x; cin >> x; arr.push_back(x); } for (int i = 0; i < 5; ++i) { if (arr[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
83
if __name__ == "__main__": x1, x2 , x3, x4, x5 = map(int, input().split()) X = [x1, x2 , x3, x4, x5] for i in range(4): if X[i] == 0: print(i+1)
if __name__ == "__main__": x1, x2 , x3, x4, x5 = map(int, input().split()) X = [x1, x2 , x3, x4, x5] for i in range(5): if X[i] == 0: print(i+1)
[["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612]]
5
64
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[0]; if (x[i] == 0) { cout << i + 1 << endl; break; } } return 0; }
#include <iostream> 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; break; } } return 0; }
[["-", 0, 1, 0, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 16, 12, 69, 341, 342, 0, 22]]
1
65
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); i++) #define INF 1001001001 #define LLINF 1001001001001001001 #define MOD 1000000007 template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a,...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); i++) #define INF 1001001001 #define LLINF 1001001001001001001 #define MOD 1000000007 template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a,...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
168
a,b,c,d,e = map(int,input().split()) x = [a,b,c,d,e] for i in range(4): if x[i] == 0: print(i+1)
a,b,c,d,e = map(int,input().split()) x = [a,b,c,d,e] for i in range(len(x)): if x[i] == 0: print(i+1)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 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, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
57
a,b,c,d,e = map(int,input().split()) x = [a,b,c,d,e] for i in range(4): if x[i] == 0: print(i+1)
a,b,c,d,e = map(int,input().split()) x = [a,b,c,d,e] for i in range(5): if x[i] == 0: print(i+1)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
57
a=[int(i) for i in input()] for i,j in enumerate(a): if j==0: print(i+1)
a=[int(i) for i in input().split()] for i,j in enumerate(a): if j==0: print(i+1)
[["+", 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], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]]
5
35
x = gets.split.map(&:to_i) for i in 0..4 if x[i] == 0 puts x+1 break end end
x = gets.split.map(&:to_i) for i in 0..4 if x[i] == 0 puts i+1 break end end
[["-", 64, 749, 0, 652, 3, 4, 0, 738, 31, 22], ["+", 64, 749, 0, 652, 3, 4, 0, 738, 31, 22]]
4
31
#include <bits/stdc++.h> #define Vsort(a) sort(a.begin(), a.end()) #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int ans; vector<int> x(5); rep(i, 5) { cin >> x[i]; if (x[i] == 0) cout << i << endl; } }
#include <bits/stdc++.h> #define Vsort(a) sort(a.begin(), a.end()) #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int ans; vector<int> x(5); rep(i, 5) { cin >> x[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
85
x = list(map(int,input().split())) for i in range(4): if x[i] == 0: print(i+1) break
x = list(map(int,input().split())) for i in range(5): if x[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, 612]]
5
40
// list index out of rangeエラー表示用 #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep1(i, n) for (int i = 0; i < (int)(n); i++) int main() { int a; rep1(i, 5) { cin >> a; if (a == 0) { cout << a; } } }
// list index out of rangeエラー表示用 #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep1(i, n) for (int i = 0; i < (int)(n); i++) int main() { int a; rep1(i, 5) { cin >> a; if (a == 0) { cout << (i + 1); } } }
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 1, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 1, 0, 16, 12, 23, 0, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
51
X = input() ans = X.index('0') print(int(ans)+1)
X = input().split() ans = X.index('0') print(int(ans)+1)
[["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
24
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; int ans; if (a = 0) ans = 1; else if (b == 0) ans = 2; else if (c == 0) ans = 3; else if (d == 0) ans = 4; else if (e == 0) ans = 5; cout << ans << en...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; int ans; if (a == 0) ans = 1; else if (b == 0) ans = 2; else if (c == 0) ans = 3; else if (d == 0) ans = 4; else if (e == 0) ans = 5; cout << ans << e...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
106
#include <bits/stdc++.h> using namespace std; int main() { int ans = 0; for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) { ans++; } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int ans = 0; for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) { ans = i; break; } } cout << ans << endl; }
[["-", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]]
1
57
A=list(map(int,input().split())) for i in range(1): if A[i]==0: print(i)
A=list(map(int,input().split())) for i in range(1,6): if A[i-1]==0: print(i)
[["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]]
5
37
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; int ans = 0; if (a == 0) ans = '1'; if (b == 0) ans = '2'; if (c == 0) ans = '3'; if (d == 0) ans = '4'; if (e == 0) ans = '5'; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; int ans = 0; if (a == 0) ans = 1; if (b == 0) ans = 2; if (c == 0) ans = 3; if (d == 0) ans = 4; if (e == 0) ans = 5; cout << ans << endl; return 0; }
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104]]
1
109
X = list(map(int,input().split())) for i in range(X): if X[i] == 0: print(i+1)
X = list(map(int,input().split())) for i in range(len(X)): if X[i] == 0: print(i+1) break
[["+", 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], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
39
x = list(map(int, input().split())) # n個の数字がリストに格納される for i in range(x): if x[i] is 0: print(i+1)
x = list(map(int, input().split())) for i in range(len(x)): if x[i] == 0: print(i+1)
[["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 709], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60]]
5
40
x = list(map(int, input().split())) # n個の数字がリストに格納される for i in range(x): if x[i] is 0: print(i+1)
x = list(map(int, input().split())) for i in range(len(x)): if x[i] is 0: print(i+1)
[["+", 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
40
x = list(map(int, input().split())) # n個の数字がリストに格納される for i in range(x): if x[i] is 0: print(i+1)
x = list(map(int, input().split())) # n個の数字がリストに格納される for i in range(5): if x[i] is 0: print(i+1)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
40
x = list(map(int, input().split())) print(10 - sum(x))
x = list(map(int, input().split())) print(15 - sum(x))
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612]]
5
26
#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 < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define each(i, mp) for (auto &i : mp) const int INF = 1001001001; int main() { std::vector<int> x(5); rep(i, 5) cin...
#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 < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define each(i, mp) for (auto &i : mp) const int INF = 1001001001; int main() { std::vector<int> x(5); rep(i, 5) cin...
[["+", 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
124
#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 << x + 1 << endl; return 0; }
#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; return 0; }
[["-", 64, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 31, 22]]
1
76
nums = input().split() print(nums) index = 0 for num in nums: index += 1 if num == "0": print(index) break
nums = input().split() #print(nums) index = 0 for num in nums: index += 1 if num == "0": print(index) 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
36
#include <algorithm> #include <array> #include <iostream> #include <numeric> #include <string> #include <tuple> #include <vector> using namespace std; using ll = long long; #define rep(i, n) for (decltype(n) i = 0; i < n; ++i) inline constexpr ll Inf = (1ULL << 62) - 1; template <class T> void updatemax(T &a, T b) { ...
#include <algorithm> #include <array> #include <iostream> #include <numeric> #include <string> #include <tuple> #include <vector> using namespace std; using ll = long long; #define rep(i, n) for (decltype(n) i = 0; i < n; ++i) inline constexpr ll Inf = (1ULL << 62) - 1; template <class T> void updatemax(T &a, T b) { ...
[["-", 0, 1, 0, 11, 12, 16, 12, 66, 17, 48], ["+", 12, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 2, 63, 22], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 22]]
1
132
l = map(int, input().split()) for i in range(5): if not i+1 == l[i]: print(i+1)
l = list(map(int, input().split())) for i in range(5): if not i+1 == l[i]: print(i+1)
[["+", 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
39
#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; } } }
#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; } } }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
54
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; if (a == '0') { cout << 1 << endl; return 0; } if (b == '0') { cout << 2 << endl; return 0; } if (c == '0') { cout << 3 << endl; return 0; } if (d == '0') { cout << 4...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; if (a == 0) { cout << 1 << endl; return 0; } if (b == 0) { cout << 2 << endl; return 0; } if (c == 0) { cout << 3 << endl; return 0; } if (d == 0) { cout << 4 << endl...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
130
x = list(map(int, input().split())) counter = 0 for i in x: counter += 1 if x == 0: print(counter)
x = list(map(int, input().split())) counter = 0 for i in x: counter += 1 if i == 0: print(counter)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
37
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b, c, d = 0, e = 0; for (int i = 0; i < 5; i++) { cin >> a; if (a == 0) { cout << i; return 0; } } cout << '0'; return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b, c, d = 0, e = 0; for (int i = 1; i < 6; i++) { cin >> a; if (a == 0) { cout << i; return 0; } } cout << '0'; return 0; }
[["-", 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, 13]]
1
74
a=list(map(int,input().split())) print(a.find(0)+1)
a=list(map(int,input().split())) print(a.index(0)+1)
[["-", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22]]
5
28
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define repl(i, l, r) for (ll i = (l); i < (r); i++) #define per(i, n) for (ll i = n - 1; i >= 0; i--) #define perl(i, r, l) for (ll i = r - 1; i >= l; i--) #define fi first #define se second #define pb push_back #define ins inse...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define repl(i, l, r) for (ll i = (l); i < (r); i++) #define per(i, n) for (ll i = n - 1; i >= 0; i--) #define perl(i, r, l) for (ll i = r - 1; i >= l; i--) #define fi first #define se second #define pb push_back #define ins inse...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22]]
1
941
package main import ( "fmt" ) func main() { var x [5]int for i := 0; i < 5; i++ { fmt.Scan(&x[i]) if x[i] == 0 { fmt.Println(i) return } } }
package main import ( "fmt" ) func main() { var x [5]int for i := 0; i < 5; i++ { fmt.Scan(&x[i]) if x[i] == 0 { fmt.Println(i + 1) return } } }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 433]]
7
69
#include <iostream> using namespace std; int main() { int x; for (int i = 0; i < 5; i++) { cin >> x; if (x == 0) { cout << i; } } return 0; }
#include <iostream> using namespace std; int main() { int x; for (int i = 0; i < 5; i++) { cin >> x; if (x == 0) { cout << i + 1; } } return 0; }
[["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
50
import java.io.*; class Main { BufferedReader bf; PrintWriter writer; StringBuilder sb; static boolean local_system = false; void run() throws IOException { int[] c = ni(); int i = 0; for (; i < c.length; i++) if (c[i] == 0) break; writer.println(i); } public static void m...
import java.io.*; class Main { BufferedReader bf; PrintWriter writer; StringBuilder sb; static boolean local_system = false; void run() throws IOException { int[] c = ni(); int i = 0; for (; i < c.length; i++) if (c[i] == 0) break; writer.println(i + 1); } public static vo...
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
417
x=map(int,input().split()) for i in range(5): if x[i]==0: print(i+1)
x = list(map(int, input().split())) for i in range(0,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, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]]
5
36
x1, x2, x3, x4, x5 = map(int, input().split()) numbers = [x1,x2,x3,x4,x5] for number in numbers: if number == 0: a = numbers.index(0) print(a)
x1, x2, x3, x4, x5 = map(int, input().split()) numbers = [x1,x2,x3,x4,x5] for number in numbers: if number == 0: a = numbers.index(0) print(a + 1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
57
#include <iostream> using namespace std; int main() { int n, p; cin >> n; for (int i = 1; i <= n; i++) { cin >> p; if (p == 0) { cout << i; } } return 0; }
#include <iostream> using namespace std; int main() { int n, p; // cin >> n; for (int i = 1; i <= 5; i++) { cin >> p; if (p == 0) { cout << i; } } return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
56
X = [int(i) for i in input().split(' ')] print(X.index(0))
X = [int(i) for i in input().split(' ')] print(X.index(0) + 1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
30
return input().strip().split().index("0") + 1
print(input().strip().split().index("0") + 1)
[["-", 36, 36, 36, 36, 0, 656, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
21
#include <stdio.h> int main() { int x[5]; int x_length = sizeof x / sizeof x[0]; for (int i = 0; i < x_length; i++) { scanf("%d", &x[i]); } for (int i = 0; i < x_length; i++) { if (x[i] == 0) { printf("x%d", i + 1); } } return 0; }
#include <stdio.h> int main() { int x[5]; int x_length = sizeof x / sizeof x[0]; for (int i = 0; i < x_length; i++) { scanf("%d", &x[i]); } for (int i = 0; i < x_length; i++) { if (x[i] == 0) { 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
96
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
40
#include <algorithm> #include <cmath> #include <cstdlib> #include <ctime> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <unistd.h> #include <utility> using namespace std; #define int long long signed main() { int su...
#include <algorithm> #include <cmath> #include <cstdlib> #include <ctime> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <unistd.h> #include <utility> using namespace std; #define int long long signed main() { int su...
[["+", 0, 7, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
81
n = map(int,input().split()) for i,num in enumerate(n): if num == 0: print(i)
n = map(int,input().split()) for i,num in enumerate(n): if num == 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
33
#include <bits/stdc++.h> #include <cstdio> // popen, pclose, fgets #include <cstdlib> #include <iostream> using namespace std; #define rep0(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() using vi = vector<int>; // intの1次元の型に vi という別名を...
#include <bits/stdc++.h> #include <cstdio> // popen, pclose, fgets #include <cstdlib> #include <iostream> using namespace std; #define rep0(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() using vi = vector<int>; // intの1次元の型に vi という別名を...
[["-", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
155
a = int(input().replace(' ', '')) b = 12345 c = b-a while c > 10: c = c//10 print(c)
a = int(input().replace(' ', '')) b = 12345 c = b-a while c >= 10: c = c//10 print(c)
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]]
5
40
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #pragma GCC target("avx") #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int(i) = 0; i < (n); i++) #define rrep(i, n) for (int(i) = 1; i <= (n); i++) #define REP(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define MOD 1000000007...
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #pragma GCC target("avx") #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int(i) = 0; i < (n); i++) #define rrep(i, n) for (int(i) = 1; i <= (n); i++) #define REP(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define MOD 1000000007...
[["-", 12, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 16, 31, 16, 17, 33], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, ...
1
362
x = map(int,input().split()) for i in range(len(x)): if x[i] == 0: print(i+1)
x = list(map(int,input().split())) for i in range(len(x)): 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, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
39
a = input() l = a.split("") b = l.index("0") print(b+1)
a=input() l=a.split(" ") b=l.index("0") print(b+1)
[["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
30
#include <stdio.h> int main(void) { int x[5], i, count; for (i = 0; i < 5; i++) { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] == 0) printf("%d", i); } return 0; }
#include <stdio.h> int main(void) { int x[5], i, count; for (i = 0; i < 5; i++) { scanf("%d", &x[i]); } for (i = 0; i < 5; i++) { if (x[i] == 0) printf("%d", 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
83
#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; } 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; } 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
84
a = input() b = a.split(" ") for i in len(b): if b[i] == "0": print(i+1) break
a = input() b = a.split(" ") for i in range(len(b)): if b[i] == "0": print(i + 1) break
[["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
40
lst = [int(s) for s in input().split()] print(lst.index(0))
lst = [int(s) for s in input().split()] print(lst.index(0) + 1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
27
n=list(map(int,input.split())) for i in range(len(n)): if(n[i]==0): cout<<i+1 break
n=list(map(int,input().split())) for i in range(len(n)): if(n[i]==0): print(i+1) break
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 657, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 657, 17, 151], ["+", 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
42
list_sunuke = input().split() list_m = [] for i in range(5): list_m.append(i+1) for i in range(5): if list_sunuke[i] != list_m[i]: print(list_m[i])
list_sunuke = input().split() list_m = [] for i in range(5): list_m.append(i+1) for i in range(5): if int(list_sunuke[i]) != list_m[i]: print(list_m[i])
[["+", 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
55
abcde=input().split() for i in range(5): if int(abcde[i]) == 0: print(i)
data=input().split() for i in range(5): if int(data[i]) == 0: print(i+1)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 15, 666, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 15, 666, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
32
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set; const int MAX_N = 1e5 + 5; const int MAX_...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set; const int MAX_N = 1e5 + 5; const int MAX_...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 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, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
245
X = map(int,input().split()) for i in range(5): if X[i] != i : print(i+1)
X = list(map(int,input().split())) for i in range(5): if X[i] != i+1 : 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], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]]
5
36
#include <bits/stdc++.h> using namespace std; int main() { int x[6], i; for (i = 1; i <= 5; i++) { cin >> x[i]; } for (i = 1; i <= 5; i++) { if (x[i] == 0) cout << i << endl; break; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[6], i; for (i = 1; i <= 5; i++) { cin >> x[i]; } for (i = 1; i <= 5; i++) { if (x[i] == 0) { cout << i << endl; break; } } return 0; }
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
1
77
import sys array = list(map(int,input().split())) print(array.index(0))
import sys array = list(map(int,input().split())) print(array.index(0)+1)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
28
#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; } } }
#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; } } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
52
x = list(map(int,input().split())) for i in range(5): if x[i] == 0: print(i) else: pass
x = list(map(int,input().split())) for i in range(5): if x[i] == 0: print(i+1) else: pass
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
40
x = list(map(int,inpt().split())) for i in range(5): if x[i] ==0: ans = i print(ans)
x = list(map(int,input().split())) for i in range(5): if x[i] ==0: ans = i+1 print(ans)
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612]]
5
40
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // Common file //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define pb push_back #define ff first #define ss second #define ii insert #define ld long double #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() #define ppb pop_b...
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // Common file //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define pb push_back #define ff first #define ss second #define ii insert #define ld long double #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() #define ppb pop_b...
[["-", 0, 14, 8, 9, 0, 43, 0, 42, 0, 22]]
1
345
x = list(int, input().split()) for i in range(5): if x[i] == 0: print(i) break
x = list(map(int, input().split())) for i in range(5): if x[i] == 0: print(i+1) break
[["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 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
35
import java.util.Scanner; public class Main { public static void main(String[] args) { a(); } public static void a() { try (Scanner sc = new Scanner(System.in)) { int[] a = new int[5]; a[0] = Integer.parseInt(sc.next()); a[1] = Integer.parseInt(sc.next()); a[2] = Integer.parseInt(sc.ne...
import java.util.Scanner; public class Main { public static void main(String[] args) { a(); } public static void a() { try (Scanner sc = new Scanner(System.in)) { int[] a = new int[5]; a[0] = Integer.parseInt(sc.next()); a[1] = Integer.parseInt(sc.next()); a[2] = Integer.parseInt(sc.ne...
[["-", 3, 4, 0, 16, 31, 504, 71, 16, 17, 33], ["+", 3, 4, 0, 16, 31, 504, 71, 16, 17, 72], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 33]]
3
208
#include <algorithm> #include <functional> #include <iostream> using namespace std; int main(void) { // Your code here! int b; for (int z = 0; z <= 5; z++) { cin >> b; if (b != z) { cout << z << endl; break; } } }
#include <algorithm> #include <functional> #include <iostream> using namespace std; int main(void) { // Your code here! int b; for (int z = 1; z <= 5; z++) { cin >> b; if (b != z) { cout << z << endl; break; } } }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
57