buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <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 << endl;
}
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 << endl;
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 65 |
X = list(map(int, input().split()))
for i in range(len(X)):
if X[i] == i:
print(i + 1)
| X = list(map(int, input().split()))
for i in range(len(X)):
if X[i] == 0:
print(i + 1)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 42 |
lis=list(map(int,input(),split()))
print(lis.index(0)+1) | lis=list(map(int,input().split()))
print(lis.index(0)+1)
| [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 28 |
#include <iostream>
using namespace std;
int main() {
long long int x[5];
long int ans;
for (int i = 0; i < 5; i++) {
cin >> x[i];
if (x[i] == 0)
ans = i;
}
cout << ans;
} | #include <iostream>
using namespace std;
int main() {
long long int x[5];
long int ans;
for (int i = 0; i < 5; i++) {
cin >> x[i];
if (x[i] == 0)
ans = i;
}
cout << ans + 1;
} | [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 64 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int arrys[] = new int[5];
// sc.close();
for (int i = 0; i < arrys.length; i++) {
arrys[i] = sc.nextInt();
}
for (int j = 0; j < arrys.length; j++) {
if (... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int arrys[] = new int[5];
// sc.close();
for (int i = 0; i < arrys.length; i++) {
arrys[i] = sc.nextInt();
}
for (int j = 0; j < arrys.length; j++) {
if (... | [["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]] | 3 | 114 |
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a[] = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = sc.nextInt();
}
for (int i = 0; i < 5; i++) {
if (a[i] == 0) {
System.out.println(i);
break;
... | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a[] = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = sc.nextInt();
}
for (int i = 0; i < 5; i++) {
if (a[i] == 0) {
System.out.println(i + 1);
bre... | [["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]] | 3 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
vector<int> a(5);
for (int i = 0; i < 5; i++) {
cin >> a.at(i);
if (a.at(i) == 0) {
ans = i;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
vector<int> a(5);
for (int i = 0; i < 5; i++) {
cin >> a.at(i);
if (a.at(i) == 0) {
ans = i;
}
}
cout << ans + 1 << endl;
}
| [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 74 |
x= list(map(int, input().strip().split()))
for i in range(len(x)):
if x[i]==3:
print(i+1)
break | x= list(map(int, input().strip().split()))
for i in range(len(x)):
if x[i]==0:
print(i+1)
break | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
#define mod 1e9 + 7
int main()
{
int a[4], ans;
for (int i = 0; i < 4; i++)
{
cin >> a[i];
if (a[i] == 0)
{
ans = i + 1;
}
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define mod 1e9 + 7
int main()
{
int a[5], ans = 0;
for (int i = 0; i < 5; i++)
{
cin >> a[i];
if (a[i] == 0)
{
ans = i + 1;
}
}
cout << ans;
return 0;
} | [["-", 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, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 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 | 70 |
x = gets.split.map(&:to_i) # スペースで区切られた複数の整数
for num in 0..x.length-1 do
if x[num] == 0 then
puts num
end
end | x = gets.split.map(&:to_i) # スペースで区切られた複数の整数
for num in 0..x.length-1 do
if x[num] == 0 then
puts num + 1
end
end | [["+", 64, 749, 0, 652, 3, 4, 0, 738, 17, 72], ["+", 64, 749, 0, 652, 3, 4, 0, 738, 12, 612]] | 4 | 35 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int arr[5];
for (int i = 1; i <= 4; i++) {
cin >> arr[i];
}
for (int i = 1; i <= 4; i++) {
if (arr[i] == 0) {
cout << i << endl;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int arr[6];
for (int i = 1; i <= 5; i++) {
cin >> arr[i];
}
for (int i = 1; i <= 5; i++) {
if (arr[i] == 0) {
cout << i << endl;
}
}
} | [["-", 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 | 74 |
// saikh seraj fahim, cse-19-hstu, bangladesh.
#include <iostream>
using namespace std;
int main() {
long long int x1, x2, x3, x4, x5;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
if (x1 == 0)
cout << "x1" << endl;
else if (x2 == 0)
cout << "x2" << endl;
else if (x3 == 0)
cout << "x3" << endl;
else if (x... | // SAIKH SERAJ FAHIM, CSE-19-HSTU, BANGLADESH.
#include <iostream>
using namespace std;
int main() {
long long int x1, x2, x3, x4, x5;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
if (x1 == 0)
cout << "1" << endl;
else if (x2 == 0)
cout << "2" << endl;
else if (x3 == 0)
cout << "3" << endl;
else if (x4 =... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 115 |
#include "iostream"
#include "string"
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a == 0) {
cout << "1";
} else if (b == 0) {
cout << "2";
} else if (c == 0) {
cout << "3";
} else if (d == 0) {
cout << "4";
} else if (b == 0) {
cout << "5";
... | #include "iostream"
#include "string"
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a == 0) {
cout << "1";
} else if (b == 0) {
cout << "2";
} else if (c == 0) {
cout << "3";
} else if (d == 0) {
cout << "4";
} else if (e == 0) {
cout << "5";
... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 115 |
#include <iostream>
using namespace std;
int main() {
int n = 0, temp = 0;
cin >> n;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> temp;
if (temp == 0)
ans = i + 1;
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
int n = 5, temp = 0;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> temp;
if (temp == 0)
ans = i + 1;
}
cout << ans << endl;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 68 |
/*
* Author:sam51305
*/
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define mp make_pair
... | /*
* Author:sam51305
*/
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define mp make_pair
... | [["-", 8, 9, 0, 7, 8, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 7, 8, 9, 0, 93, 0, 35]] | 1 | 89 |
#include <cstdio>
using namespace std;
int main(void) {
int x[5];
scanf("%i%i%i%i%i", &x[0], &x[1], &x[2], &x[3], &x[4]);
int i;
for (i = 0; i < 5; i++) {
if (x[i] == 0) {
printf("%i/n", (i + 1));
}
}
return 0;
} | #include <cstdio>
using namespace std;
int main(void) {
int x[5];
scanf("%i%i%i%i%i", &x[0], &x[1], &x[2], &x[3], &x[4]);
int i;
for (i = 0; i < 5; i++) {
if (x[i] == 0) {
printf("%i\n", (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, 5, 0, 44]] | 1 | 101 |
fscanf(STDIN, "%d%d%d%d%d", $a[], $a[], $a[], $a[], $a[]);
$search = array_search(0 , $a);
echo $search+1; | <?php
fscanf(STDIN, "%d%d%d%d%d", $a[], $a[], $a[], $a[], $a[]);
$search = array_search(0 , $a);
echo $search+1; | [["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]] | 6 | 51 |
data = input().split()
print(data)
count = 0
for num in data:
num2 = int(num)
if num2 == 0:
result = count
count += 1
result += 1
print(result) | data = input().split()
count = 0
for num in data:
num2 = int(num)
if num2 == 0:
result = count
count += 1
result += 1
print(result) | [["-", 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 | 45 |
a = input().split(" ")
temp = 0
for i, ai in enumerate(a):
if ai==0:
temp=i
print(temp+1)
| a = input().split(" ")
temp = 0
for i, ai in enumerate(a):
if int(ai)==0:
temp=i
break
print(temp+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], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 39 |
#include <stdio.h>
int main() {
int a[5];
int x;
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
if (a[i] == 0) {
x = i;
}
}
printf("%d", x);
return 0;
}
| #include <stdio.h>
int main() {
int a[5];
int x;
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
if (a[i] == 0) {
x = i + 1;
}
}
printf("%d", x);
return 0;
}
| [["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 0 | 73 |
r = require("fs").readFileSync("/dev/stdin", "utf8").split(" ");
for (i in r)
if (r[i] == "0")
console.log(i - 0 + 1); | r = require("fs").readFileSync("/dev/stdin", "utf8").split(" ");
for (i in r)
if (parseInt(r[i], 10) == 0)
console.log(i - 0 + 1); | [["+", 8, 57, 15, 23, 0, 16, 31, 2, 63, 22], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 24], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 21], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 555], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 25], ["-", 8, 57, 15, 23, 0, 16, 12, 557, 0, 62]] | 2 | 55 |
a=list(map(int,input().split()))
for i in range(len(a)):
if a[i]==0:
print(i)
break
| a=list(map(int,input().split()))
for i in range(len(a)):
if a[i]==0:
print(i+1)
break | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 41 |
a = list(map(int,input().split()))
for i in range(len(a)):
if a[i-1] == 0:
print(i)
break
| a = list(map(int,input().split()))
for i in range(len(a)):
if a[i] == 0:
print(i+1)
break
| [["-", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["-", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 43 |
array = [int(i) for i in input().split()]
i = 0
for x in array:
if x == 0:
print(i)
break
i += 1 | array = [int(i) for i in input().split()]
i = 1
for x in array:
if x == 0:
print(i)
break
i += 1 | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 39 |
package main
import "fmt"
func main() {
x := make([]int, 5)
for i := 0; i < 5; i++ {
fmt.Scan(&x[i])
if x[i] == 0 {
fmt.Println(i)
}
}
return
}
| package main
import "fmt"
func main() {
x := make([]int, 5)
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 | 70 |
#pragma GCC optimize("O3")
#include "bits/stdc++.h"
using namespace std;
#define I_AM_SPEED \
ios::sync_with_stdio(0); \
cin.tie(0); \
co... | #pragma GCC optimize("O3")
#include "bits/stdc++.h"
using namespace std;
#define I_AM_SPEED \
ios::sync_with_stdio(0); \
cin.tie(0); \
co... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 129 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x1, x2, x3, x4, x5, answer;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
if (x1 == 0) {
/* code */ answer == 1;
} else if (x2 == 0) {
answer == 2;
/* code */
} else if (x3 == 0) {
/* code */ answer == 3;
} else if (x4 == 0) {
/* code... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x1, x2, x3, x4, x5, answer;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
if (x1 == 0) {
/* code */ answer = 1;
} else if (x2 == 0) {
answer = 2;
/* code */
} else if (x3 == 0) {
/* code */ answer = 3;
} else if (x4 == 0) {
/* code */... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 60], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32]] | 1 | 108 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include ... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 1,084 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
using namespace std;
int main() {
int ans = 1;
rep(i, 4) {
int n;
cin >> n;
if (n == 0) {
cout << ans << endl;
return 0;
}
ans++;
}
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
using namespace std;
int main() {
int ans = 1;
rep(i, 5) {
int n;
cin >> n;
if (n == 0) {
cout << ans << endl;
return 0;
}
ans++;
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 67 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int pos = -1;
Scanner sc = new Scanner(System.in);
int[] a = new int[4];
for (int i = 0; i < 4; i++) {
a[i] = sc.nextInt();
if (a[i] == 0)
pos = i;
}
System.out.println(pos + 1);
}
}
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int pos = -1;
Scanner sc = new Scanner(System.in);
int[] a = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = sc.nextInt();
if (a[i] == 0)
pos = i;
}
System.out.println(pos + 1);
}
}
| [["-", 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 | 103 |
#include <bits/stdc++.h>
#define forn(i, a, b) for (int i = a; i <= b; i++)
#define MOD 1000000007
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a[5];
forn(i, 0, 4) {
cin >> a[i];
if (a[i] == 0)
cout << i << "\n";
}
} | #include <bits/stdc++.h>
#define forn(i, a, b) for (int i = a; i <= b; i++)
#define MOD 1000000007
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a[6];
forn(i, 1, 5) {
cin >> a[i];
if (a[i] == 0)
cout << i << "\n";
}
} | [["-", 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 | 87 |
#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;
} else if (b == 0) {
cout << 2 << endl;
} else if (c == 0) {
cout << 3 << endl;
} else if (a == 0) {
cout << 4 << endl;
} else if (e == 0) {
cou... | #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;
} else if (b == 0) {
cout << 2 << endl;
} else if (c == 0) {
cout << 3 << endl;
} else if (d == 0) {
cout << 4 << endl;
} else if (e == 0) {
cou... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 109 |
#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 << a[i];
}
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, 69, 28, 22], ["-", 64, 1, 0, 16, 12, 69, 341, 342, 0, 70], ["-", 64, 1, 0, 16, 12, 69, 341, 342, 0, 73], ["+", 0, 57, 64, 1, 0, 16, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 16, 12, 16, 12, 13]] | 1 | 60 |
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 | 46 |
x1, x2, x3, x4, x5 = input().split()
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
if int(j) == 0:
ans = j
print(int(ans)) | x1, x2, x3, x4, x5 = input().split()
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
if int(j) == 0:
ans = i+1
print(int(ans))
| [["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[6];
for (int i = 1; i <= 5; i++) {
cin >> a[i];
}
sort(a + 1, a + 6);
for (int i = 1; i <= 4; i++) {
if (a[i] + 1 != a[i + 1]) {
cout << a[i] + 1;
break;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[6];
for (int i = 1; i <= 5; i++) {
cin >> a[i];
}
sort(a + 1, a + 5);
for (int i = 1; i <= 4; i++) {
if (a[i] + 1 != a[i + 1]) {
cout << a[i] + 1;
break;
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 100 |
a,b,c,d,e=(int(x) for x in input().split())
if a==1:
print(1)
elif b==1:
print(2)
elif c==1:
print(3)
elif d==1:
print(4)
elif e==1:
print(5) | a,b,c,d,e=(int(x) for x in input().split())
if a==0:
print(1)
elif b==0:
print(2)
elif c==0:
print(3)
elif d==0:
print(4)
elif e==0:
print(5) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 71 |
a = list(map(int,input("").split()))
for i in a :
if i == 0 :
print(a.index(i))
break
| a = list(map(int,input("").split()))
for i in a :
if i == 0 :
print(a.index(i) +1)
break
| [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 39 |
arr = [int(x) for x in input().split()]
for i, a in enumerate(arr, 1):
if a == 0:
return i | arr = [int(x) for x in input().split()]
for i, a in enumerate(arr, 1):
if a == 0:
print(i) | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 37 |
#include <stdio.h>
int main() {
int a[5], i;
for (i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 5; i++) {
if (a[i] == i + 1) {
printf("%d", i + 1);
}
}
return 0;
} | #include <stdio.h>
int main() {
int a[5], i;
for (i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 5; i++) {
if (a[i] == 0) {
printf("%d", i + 1);
}
}
return 0;
}
| [["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 72], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 86 |
<?php
fscanf(STDIN, "%d %d %d %d %d", $x_1, $x_2, $x_3, $x_4, $x_5);
echo 25-($x_1+$x_2+$x_3+$x_4+$x_5);
| <?php
fscanf(STDIN, "%d %d %d %d %d", $x_1, $x_2, $x_3, $x_4, $x_5);
echo 15-($x_1+$x_2+$x_3+$x_4+$x_5);
?> | [["-", 36, 36, 0, 493, 0, 608, 0, 16, 31, 612], ["+", 36, 36, 0, 493, 0, 608, 0, 16, 31, 612], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]] | 6 | 45 |
function main(input) {
var args = input.split(' ');
for (var i = 0; i < 5; i++) {
if (args[i] === '0') {
console.log(i + 1);
break;
}
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | function main(input) {
var args = input.split(/\s|\n/);
for (var i = 0; i < 5; i++) {
if (args[i] == '0') {
console.log(i + 1);
break;
}
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | [["-", 0, 200, 51, 2, 3, 3, 0, 557, 0, 104], ["-", 0, 200, 51, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 200, 51, 2, 3, 3, 0, 575, 0, 85], ["+", 0, 200, 51, 2, 3, 3, 0, 575, 374, 576], ["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 565], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 60]] | 2 | 80 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define fast_io() \
ios_base ::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define fast_io() \
ios_base ::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 237 |
lst=[]
str = input()
lst = str.split(' ')
i = lst.index(0)
print(i+1) | lst=[]
str = input()
lst = str.split(' ')
i = lst.index('0')
print(i+1)
| [["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
vector<int> vec(5);
int N = 5;
for (int i = 0; i < N; i++) {
cin >> vec.at(i);
}
for (int i = 0; i < N; i++) {
if (vec.at(i) == 0)
a = i;
break;
}
cout << a + 1 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
vector<int> vec(5);
int N = 5;
for (int i = 0; i < N; i++) {
cin >> vec.at(i);
}
for (int i = 0; i < N; i++) {
if (vec.at(i) == 0)
a = i;
}
cout << a + 1 << endl;
}
| [["-", 8, 9, 0, 7, 8, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 7, 8, 9, 0, 93, 0, 35]] | 1 | 95 |
import java.util.Scanner;
public class Main {
public static void Main(String[] args) {
Scanner s = new Scanner(System.in);
int[] nums = new int[5];
int index = 0;
for (index = 0; index < 5; index++) {
nums[index] = s.nextInt();
}
for (index = 0; index < 5; index++) {
if (n... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int[] nums = new int[5];
int index = 0;
for (index = 0; index < 5; index++) {
nums[index] = s.nextInt();
}
for (index = 0; index < 5; index++) {
if (n... | [["-", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22], ["+", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22]] | 3 | 116 |
#include <iostream>
using namespace std;
int main() {
int x1, x2, x3, x4, x5, n;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
n = 0;
if (x1 == n) {
cout << "1";
} else if (x2 == n) {
cout << "2";
} else if (x3 == n) {
cout << "3";
} else if (x4 == n) {
cout << "4";
} else if (x5 == 0) {
cout <... | #include <iostream>
using namespace std;
int main() {
int x1, x2, x3, x4, x5, n;
cin >> x1 >> x2 >> x3 >> x4 >> x5;
n = 0;
if (x1 == n) {
cout << "1";
} else if (x2 == n) {
cout << "2";
} else if (x3 == n) {
cout << "3";
} else if (x4 == n) {
cout << "4";
} else if (x5 == 0) {
cout <... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 115 |
I = gets.chomp.split(' ').map(&:to_i)
for num1 in 0..I.size - 1 do
unless I.include?(num1)
puts num1
end
end | I = gets.chomp.split(' ').map(&:to_i)
for num1 in 0..5 do
unless I.include?(num1)
puts num1
end
end | [["-", 51, 267, 0, 475, 444, 738, 31, 652, 486, 743], ["-", 51, 267, 0, 475, 444, 738, 31, 652, 17, 131], ["-", 51, 267, 0, 475, 444, 738, 31, 652, 735, 22], ["-", 0, 88, 51, 267, 0, 475, 444, 738, 17, 33], ["-", 0, 88, 51, 267, 0, 475, 444, 738, 12, 612], ["+", 0, 493, 0, 88, 51, 267, 0, 475, 444, 612]] | 4 | 40 |
from sys import stdin
s1=list(map(int,stdin.readline().split()))
for i in range(len(s1)):
if i != s1[i]:
print(i)
break | from sys import stdin
s1=list(map(int,stdin.readline().split()))
for i in range(len(s1)):
if i+1 != s1[i]:
print(i+1)
break | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 47 |
gets.split.map(&:to_i).each_with_index do |v, i|
p i+1
end | gets.split.map(&:to_i).each_with_index do |v, i|
p i+1 if v === 0
end | [["+", 0, 652, 196, 737, 8, 736, 0, 751, 0, 121], ["+", 196, 737, 8, 736, 0, 751, 15, 738, 31, 22], ["+", 196, 737, 8, 736, 0, 751, 15, 738, 17, 565], ["+", 196, 737, 8, 736, 0, 751, 15, 738, 12, 612]] | 4 | 22 |
import sys
input = sys.stdin.readline
A = list(map(int, input().split()))
i = 0
for i in range(4):
if A[i] == 0:
print(i + 1) | import sys
input = sys.stdin.readline
A = list(map(int, input().split()))
i = 0
for i in range(5):
if A[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 | 51 |
x = list(map(int, input().split()))
for i in range(0, 4):
if x[i]==0 :
break
print(i)
else:
i+=1 | x = list(map(int, input().split()))
for i in range(0, 5):
if x[i]==0 :
i+=1
print(i)
break
else:
i+=1 | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 45 |
package main
import (
//"bufio"
"fmt"
//"os"
//"strconv"
//"strings"
)
func main() {
var n [5]int
fmt.Scanf("%d %d %d %d %d", n[0], n[1], n[2], n[3], n[4])
for i, j := range n {
if j == 0 {
fmt.Println(i + 1)
return
}
}
} | package main
import (
//"bufio"
"fmt"
//"os"
//"strconv"
//"strings"
)
func main() {
var n [5]int
fmt.Scanf("%d %d %d %d %d", &n[0], &n[1], &n[2], &n[3], &n[4])
for i, j := range n {
if j == 0 {
fmt.Println(i + 1)
return
}
}
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 67], ["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]] | 7 | 90 |
#include <bits/stdc++.h>
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 << 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];
}
for (int i = 0; i < 5; 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 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define MOD 1e9
typedef long long ll;
int pos;
main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
for (int i = 0, x; i < 5; ++i) {
cin >> x;
if (x == 5)
pos = i + 1;
}
cout << pos << "\n";
}
| #include <bits/stdc++.h>
using namespace std;
#define MOD 1e9
typedef long long ll;
int pos;
main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
for (int i = 0, x; i < 5; ++i) {
cin >> x;
if (x == 0)
pos = i + 1;
}
cout << pos << "\n";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long ans = 0;
vector<long> x(5);
for (int i = 0; i < 5; i++) {
cin >> x.at(i);
}
for (int i = 0; i < 5; i++) {
if (x.at(i) == 0)
ans = i;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long ans = 0;
vector<long> x(5);
for (int i = 0; i < 5; i++) {
cin >> x.at(i);
}
for (int i = 0; i < 5; i++) {
if (x.at(i) == 0)
ans = i + 1;
}
cout << ans << endl;
}
| [["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13]] | 1 | 88 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int sin[] = new int[5];
int good = 0;
for (int i = 0; i < 5; i++) {
sin[i] = scan.nextInt();
if (sin[i] == 0) {
good = i;
break;
}
}
... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int sin[] = new int[5];
int good = 0;
for (int i = 0; i < 5; i++) {
sin[i] = scan.nextInt();
if (sin[i] == 0) {
good = i;
break;
}
}
... | [["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]] | 3 | 104 |
#include <stdio.h>
int main() {
int array[5];
for (int i = 0; i < 5; i++) {
scanf("%d", &array[i]);
}
int tmp = 0;
for (int i = 0; i < 5; i++) {
if (array[i] == 0) {
tmp = i + 1;
break;
}
i++;
}
printf("%d\n", tmp);
return 0;
} | #include <stdio.h>
int main() {
int array[5];
for (int i = 0; i < 5; i++) {
scanf("%d", &array[i]);
}
int tmp = 0;
for (int i = 0; i < 5; i++) {
if (array[i] == 0) {
tmp = i + 1;
break;
}
}
printf("%d\n", tmp);
return 0;
} | [["-", 0, 7, 8, 9, 0, 1, 0, 27, 28, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 27, 17, 29], ["-", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]] | 0 | 99 |
import numpy
input_x = [int(i) for i in input().split(" ")]
for i in range(5):
if not i+1 in input_x:
print(i) | import numpy
input_x = [int(i) for i in input().split(" ")]
for i in range(5):
if not i+1 in input_x:
print(i+1) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 43 |
c=list(map(int, input().split()))
for i,a in enumerate(c):
if a ==0:
print(i) | c=list(map(int, input().split()))
for i,a in enumerate(c):
if a ==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 | 36 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
vector<int> data(5);
int ans;
for (int i = 0; i < 5; i++) {
cin >> data.at(i);
}
for (int i = 0; i < 5; i++) {
if (data.at(i) == 0)
ans = i;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
vector<int> data(5);
int ans;
for (int i = 0; i < 5; i++) {
cin >> data.at(i);
}
for (int i = 0; i < 5; i++) {
if (data.at(i) == 0)
ans = i;
}
cout << ans + 1 << endl;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 87 |
def main():
a = list(map(int, input().split()))
for i in a:
if i == 0:
print(i+1)
if __name__ == "__main__":
main()
| def main():
a = list(map(int, input().split()))
for i, x in enumerate(a):
if x == 0:
print(i + 1)
if __name__ == "__main__":
main()
| [["+", 0, 14, 8, 196, 0, 7, 31, 684, 0, 21], ["+", 0, 14, 8, 196, 0, 7, 31, 684, 0, 22], ["+", 0, 14, 8, 196, 0, 7, 12, 652, 63, 22], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 48 |
#include <iostream>
using namespace std;
int main() {
for (int i = 0; i < 4; i++) {
int a;
cin >> a;
if (a == 0)
cout << i + 1 << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 0; i < 5; i++) {
int a;
cin >> a;
if (a == 0)
cout << i + 1 << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 52 |
x1,x2,x3,x4,x5 = map(int,input().split())
if x1 == 0:
print(1)
elif x2 == 0:
print(2)
elif x3 == 0:
print(3)
elif x4 == 0:
print(4)
else:
print | x1,x2,x3,x4,x5 = map(int,input().split())
if x1 == 0:
print(1)
elif x2 == 0:
print(2)
elif x3 == 0:
print(3)
elif x4 == 0:
print(4)
else:
print(5) | [["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
X = map(int, input().split())
for i in range(len(X)):
if X[i] == 0:
print(i+1)
break | X = list(map(int, input().split()))
for i in range(len(X)):
if X[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 | 40 |
var=list(map(int,input().split()))
if var[0]==0:
print(1)
elif var[1]==0:
print(2)
elif var[2]==0:
print(3)
elif var[3]==0:
print(4)
elif var[4]:
print(5) | var=list(map(int,input().split()))
if var[0]==0:
print(1)
elif var[1]==0:
print(2)
elif var[2]==0:
print(3)
elif var[3]==0:
print(4)
elif var[4]==0:
print(5) | [["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int arr[1000000000];
for (int i = 1; i <= 5; i++) {
cin >> arr[i];
}
for (int i = 1; i <= 5; i++) {
if (arr[i] == 0) {
cout << i;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int arr[20];
for (int i = 1; i <= 5; i++) {
cin >> arr[i];
}
for (int i = 1; i <= 5; i++) {
if (arr[i] == 0) {
cout << i;
}
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 1 | 75 |
x=list(map(int,input()))
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)
| 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)
| [["+", 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 | 67 |
x = map(int, input().split(' '))
for i in range(0, len(x)):
if x[i] == 0:
print(i+1)
break | x = [x for x in map(int, input().split(' '))]
for i in range(0, len(x)):
if x[i] == 0:
print(i+1)
break | [["+", 0, 656, 0, 1, 0, 662, 12, 658, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 658, 8, 22], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 0, 88], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 0, 267], ["+", 0, 656, 0, 1, 0, 662, 12, 658, 0, 73]] | 5 | 45 |
#include <stdio.h>
int main() {
int a, b, i, c, d, e;
char g[255];
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 {
printf("2");
}
return 0;
} | #include <stdio.h>
int main() {
int a, b, i, c, d, e;
char g[255];
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 {
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 | 125 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> result;
for (int i = 0; i < 5; i++) {
cin >> result.at(i);
if (result.at(i) == 0) {
cout << i + 1 << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> result(5);
for (int i = 0; i < 5; i++) {
cin >> result.at(i);
if (result.at(i) == 0) {
cout << i + 1 << endl;
break;
}
}
} | [["+", 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 | 66 |
from sys import stdin, stdout
import sys
import bisect
INF=1e9
def get_int(): return int(stdin.readline().strip())
def get_ints(): return map(int,stdin.readline().strip().split())
def get_array(): return list(map(int,stdin.readline().strip().split()))
def get_string(): return stdin.readline().strip()
def op(c): return... | from sys import stdin, stdout
import sys
import bisect
INF=1e9
def get_int(): return int(stdin.readline().strip())
def get_ints(): return map(int,stdin.readline().strip().split())
def get_array(): return list(map(int,stdin.readline().strip().split()))
def get_string(): return stdin.readline().strip()
def op(c): return... | [["+", 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 | 139 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin.tie(NULL);
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a == 0) {
cout << 0;
return 0;
}
if (b == 0) {
co... |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin.tie(NULL);
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a == 0) {
cout << 1;
return 0;
}
if (b == 0) {
co... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13]] | 1 | 140 |
#include <bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(), (v).end()
#define REP(i, p, n) for (int i = p; i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define SZ(x) ((int)(x).size())
#define debug(x) cerr << #x << ": " << x << '\n'
const char newl = '\n';
typedef long long int Int;
typedef pair<int,... | #include <bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(), (v).end()
#define REP(i, p, n) for (int i = p; i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define SZ(x) ((int)(x).size())
#define debug(x) cerr << #x << ": " << x << '\n'
const char newl = '\n';
typedef long long int Int;
typedef pair<int,... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 206 |
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define ll long long
#define PB push_back
#define lc 2 * v
#define rc 2 * v + 1
#define mid (s + e) / 2
#define pii pair<int, int>
#define pll pair<long long, long long>
#define FAST ... | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define ll long long
#define PB push_back
#define lc 2 * v
#define rc 2 * v + 1
#define mid (s + e) / 2
#define pii pair<int, int>
#define pll pair<long long, long long>
#define FAST ... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 45], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 46], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 134 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int v, ans = -1;
for (int i = 0; i < 5; i++) {
cin >> v;
if (v == 0) {
ans = i;
}
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int v, ans = -1;
for (int i = 0; i < 5; i++) {
cin >> v;
if (v == 0) {
ans = i;
}
}
cout << ans + 1;
return 0;
} | [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 58 |
a = [int(i) for i in input().split()]
print(a)
for idx in range(len(a)):
x = a[idx]
if x == 0:
print(idx + 1)
| a = [int(i) for i in input().split()]
for idx in range(len(a)):
x = a[idx]
if x == 0:
print(idx + 1)
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 50 |
x = list(map(int, input("").split()))
for i in range(1,5):
if x[i-1] == 0:
print(i) | x = list(map(int, input("").split()))
for i in range(1,6):
if x[i-1] != i:
print(i) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 43 |
#include <stdio.h>
int main() {
int x[5];
scanf("%d%d%d%d%d", x[0], x[1], x[2], x[3], x[4]);
for (int i = 0; i < 5; i++) {
if (x[i] == 0) {
printf("%d", i + 1);
break;
}
}
return 0;
} | #include <stdio.h>
int main() {
int x[5];
scanf("%d%d%d%d%d", &x[0], &x[1], &x[2], &x[3], &x[4]);
for (int i = 0; i < 5; i++) {
if (x[i] == 0) {
printf("%d", i + 1);
break;
}
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 89 |
from sys import stdin
#l = list(map(int, stdin.readline().rstrip().split()))
a,b,c,d,e = map(int, stdin.readline().rstrip().split())
#S = [list(map(int, stdin.readline().rstrip().split())) for _ in range(h)]#hの定義を忘れずに
if a==0:
print('1')
elif b==0:
print('2')
elif c==0:
pront('3')
elif d==0:
print('4')
elif e... | from sys import stdin
#l = list(map(int, stdin.readline().rstrip().split()))
a,b,c,d,e = map(int, stdin.readline().rstrip().split())
#S = [list(map(int, stdin.readline().rstrip().split())) for _ in range(h)]#hの定義を忘れずに
if a==0:
print('1')
elif b==0:
print('2')
elif c==0:
print('3')
elif d==0:
print('4')
elif e... | [["-", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22]] | 5 | 89 |
a,b,c,d,e = map(int,input(). split ())
x = [a,b,c,d,e]
for i in x:
if i * 1 == 0:
print(x.index(i)) | a,b,c,d,e = map(int,input(). split ())
x = [a,b,c,d,e]
for i in x:
if i * 1 == 0:
print(x.index(i) + 1) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 56 |
i = list(map(int, input().split()))
print(i.index(0)) | i = list(map(int, input().split()))
print(i.index(0)+1) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 26 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int j;
for (int i = 0; i < 4; i++) {
j = sc.nextInt();
if (j == 0) {
System.out.println(i + 1);
System.exit(0);
}
}
}
} | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int j;
for (int i = 0; i <= 4; i++) {
j = sc.nextInt();
if (j == 0) {
System.out.println(i + 1);
System.exit(0);
}
}
}
} | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 88 |
#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;
} else if (b = 0) {
cout << 2;
} else if (c = 0) {
cout << 3;
} else if (d = 0) {
cout << 4;
} else if (e = 0) {
cout << 5;
}
} | #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;
} else if (b == 0) {
cout << 2;
} else if (c == 0) {
cout << 3;
} else if (d == 0) {
cout << 4;
} else if (e == 0) {
cout << 5;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 99 |
#include <iostream>
int main(int argc, char const *argv[]) {
int tmp;
for (int i = 0; i < 4; i++) {
std::cin >> tmp;
if (tmp == 0) {
std::cout << (i + 1) << std::endl;
break;
}
}
return 0;
} | #include <iostream>
int main(int argc, char const *argv[]) {
int tmp;
for (int i = 0; i < 5; i++) {
std::cin >> tmp;
if (tmp == 0) {
std::cout << (i + 1) << std::endl;
break;
}
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 69 |
nums = [int(e) for e in input().split()]
for i in range(5):
if not xs[i] == i:
print(i)
break | xs = [int(e) for e in input().split()]
for i in range(5):
if not xs[i] == i+1:
print(i+1)
break | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 15, 681, 28, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 681, 28, 666, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[5];
for (int i = 0; i <= 4; i++) {
cin >> a[i];
if (a[i] == 0) {
cout << i;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[5];
for (int i = 0; i <= 4; i++) {
cin >> a[i];
if (a[i] == 0) {
cout << i + 1;
}
}
} | [["+", 64, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 56 |
x = list(map(int, input().split()))
for i in range(4):
if x[i] == 0:
print(i + 1)
exit() | x = list(map(int, input().split()))
for i in range(len(x)):
if x[i] == 0:
print(i + 1)
exit() | [["-", 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 | 42 |
#include <bits/stdc++.h>
using namespace std;
typedef long long l;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> e >> d;
if (a == 0) {
cout << 1 << endl;
}
if (b == 0) {
cout << 2 << endl;
}
if (c == 0) {
cout << 3 << endl;
}
if (d == 0) {
cout << 4 << endl;
}
if (e == 0) {... | #include <bits/stdc++.h>
using namespace std;
typedef long long l;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a == 0) {
cout << 1 << endl;
}
if (b == 0) {
cout << 2 << endl;
}
if (c == 0) {
cout << 3 << endl;
}
if (d == 0) {
cout << 4 << endl;
}
if (e == 0) {... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 113 |
n = []
n = input().split()
for i in range(5):
n[i] = int(n[i])
print(n)
for i in range(5):
if n[i] == 0:
print(i+1) |
n = []
n = input().split()
for i in range(5):
n[i] = int(n[i])
for i in range(5):
if n[i] == 0:
print(i+1) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 59 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i < 4; i++) {
if (sc.nextLong() == 0) {
System.out.println(i + 1);
}
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i <= 4; i++) {
if (sc.nextLong() == 0) {
System.out.println(i + 1);
}
}
}
} | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 74 |
g=[]
a, b, c, d, e = map(int,input().split())
for i in a, b, c, d, e, f:
g.append(i)
print(g.index(0)+1) | g=[]
a, b, c, d, e = map(int,input().split())
for i in a, b, c, d, e:
g.append(i)
print(g.index(0)+1) | [["-", 36, 36, 0, 656, 0, 7, 12, 432, 0, 21], ["-", 36, 36, 0, 656, 0, 7, 12, 432, 0, 22]] | 5 | 58 |
#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;
else if (b = 0)
cout << 2 << endl;
else if (c = 0)
cout << 3 << endl;
else if (d = 0)
cout << 4 << endl;
else if (e = 0)
cout << 5 << endl;
} | #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;
else if (b == 0)
cout << 2 << endl;
else if (c == 0)
cout << 3 << endl;
else if (d == 0)
cout << 4 << endl;
else if (e == 0)
cout << 5 << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 99 |
x=list(map(int,input().split()))
i=1
while i<=len(x):
if x[i]==0:
print(i)
i+=1 | x=list(map(int,input().split()))
i=1
while i<=len(x):
if x[i-1]==0:
print(i)
i+=1 | [["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1; i <= 5; i++) {
int x;
cin >> x;
if (x == i) {
cout << i << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1; i <= 5; i++) {
int x;
cin >> x;
if (x != i) {
cout << i << endl;
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int arr[5];
int coun;
for (int i = 1; i <= 5; ++i) {
cin >> arr[i];
}
for (int i = 1; i <= 5; ++i) {
if (arr[i] == 0) {
coun = arr[i];
} else {
}
}
cout << coun;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int arr[5];
int coun;
for (int i = 1; i <= 5; ++i) {
cin >> arr[i];
}
for (int i = 1; i <= 5; ++i) {
if (arr[i] == 0) {
coun = i;
} else {
}
}
cout << coun;
} | [["-", 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]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int X[5] = {0};
for (int i = 0; i < 5; i++) {
cin >> X[i];
if (X[i] == 0)
cout << i << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int X[5] = {0};
for (int i = 0; i < 5; i++) {
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 | 60 |
//
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | //
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | [["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 102 |
#include <stdio.h>
int main(void) {
int array[5], x, i;
for (i = 0; i <= 4; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i <= 4; i++) {
x = i;
if (array[i] == 0)
break;
}
printf("%d", x);
return 0;
} | #include <stdio.h>
int main(void) {
int array[5], x, i;
for (i = 0; i <= 4; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i <= 4; i++) {
x = i + 1;
if (array[i] == 0)
break;
}
printf("%d", x);
return 0;
} | [["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 0 | 89 |
function Main(input) {
let x = input.split(" ");
let number = 1;
for (let i = 0; i < 4; i++) {
if (x[i] == 0) {
number += i;
console.log(number);
break;
}
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | function Main(input) {
let x = input.split(" ");
let number = 1;
for (let i = 0; i < 5; i++) {
if (x[i] == 0) {
number += i;
console.log(number);
break;
}
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
| [["-", 8, 556, 0, 7, 15, 1, 0, 16, 12, 555], ["+", 8, 556, 0, 7, 15, 1, 0, 16, 12, 555]] | 2 | 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.