Problem:


Score : 100 points

Problem Statement

We have five variables x_1, x_2, x_3, x_4, and x_5.

The variable x_i was initially assigned a value of i.

Snuke chose one of these variables and assigned it 0.

You are given the values of the five variables after this assignment.

Find out which variable Snuke assigned 0.

Constraints

The values of x_1, x_2, x_3, x_4, and x_5 given as input are a possible outcome of the assignment by Snuke.

Input

Input is given from Standard Input in the following format:

x_1 x_2 x_3 x_4 x_5

Output

If the variable Snuke assigned 0 was x_i, print the integer i.

Sample Input 1

0 2 3 4 5

Sample Output 1

1

In this case, Snuke assigned 0 to x_1, so we should print 1.

Sample Input 2

1 2 0 4 5

Sample Output 2

3



Sample input:
0 2 3 4 5


Sample output:
1

Submission status: Runtime Error

Solution code:
a = map(int,input().split())

for i in range(len(a)):
  if a[i] == 0:
    print(i+1)
    break

Submission status: Runtime Error

Solution code:

def main():
    x, n = map(int, input().split(" "))
    p =[]
    dif = 1e2
    ans = 0
    l_a = [i for i in range(101)]
    if n != 0:
        p = list(map(int, input().split(" ")))
    for ele in l_a[::-1]:
        if abs(x - ele) <= dif and ele not in p:
            ans = ele
            dif = abs(x - ele)
    print(ans)
if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))
n = len(x)

for _ in range(n):
  if x[i] == 0:
    print(i + 1)

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))

for _ in range(5):
  if x[i] == 0:
    print(i + 1)

Submission status: Runtime Error

Solution code:
X = list(map(int,input().split()))

print(A.index(0)+1)

Submission status: Runtime Error

Solution code:
x,n = map(int,input().split())

p = list(map(int,input().split()))
s = []

for i in range(101):
  if i not in p:
    s.append(i)

    
if s == [0]:
  print(0)

else:
  

  k = abs(x-s[0])
  del s[0]
  for j in range(100-n):
    if abs(x-s[j]) < k:
      k = abs(x-s[j])
    else:
      answer = s[j-1]
      break
  else:
    answer = s[100-n-1]
  print(answer)

Submission status: Runtime Error

Solution code:
x = list(map(int,input()))
for i in range(5):
  if x[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
x = list(map(int,input()))
for i in range(5):
  if x[i]==0:
    print(i)

Submission status: Runtime Error

Solution code:
x = list(map(int,input()))
for i in range(5):
  if find 0 in x:
    print(i)

Submission status: Runtime Error

Solution code:
x=list(map(int,input().split()))
for k in range(5)
    if x[k]==0:
        print(k+1)
    else:
        continue

Submission status: Runtime Error

Solution code:
x=list(map(int,input().split()))
for k in range(5)
    if x[k]=0:
        print(k)
    else:
        continue

Submission status: Runtime Error

Solution code:
x=list(map(int,input().split()))
for k in range(5)
    if x[k]==0:
        print(k)
        exit()
    else:
        continue

Submission status: Runtime Error

Solution code:
x = [int(input()) for i in range(5)]

for i in range(5):
    if x[i]==0:
        print(i)

Submission status: Runtime Error

Solution code:
X = list(map(int,input().split()))

for i in len(5):
  if X[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
X = list(map(int,input()))

for i in len(5):
  if X[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
X = list(map(int,input()))

for i in range(len(X)):
  if X[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
X = list(map(int,input()))

for i in X:
  if X[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()


X, Y = list(map(int, input().split()))
Turtle = (Y - 2*X ) / 2
Crane = X - Turtle
if Turtle >= 0 and Crane >= 0 and is_integer(Turtle) and is_integer(Crane):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
p = list(map(int,input().split()))

for i in range(5):
  if p[i] == 0:
    x = i
    
 print(x)

Submission status: Runtime Error

Solution code:
a=[int(i) for i in input()]

for i,j in enumerate(a):
  if j==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
#D - Not Divisible
import collections
N = int(input())
a = list(map(int,input().split()))
a = sorted(a,reverse = False)

#collections.Counterは存在しない値を指定すると0を返す
cnt = collections.Counter(a)
m = max(a)+1
for i in a:
    if cnt[i] >= 2:
        del cnt[i]
    for j in range(i*2,m,i):
        del cnt[j]
print(len(cnt.keys()))

Submission status: Runtime Error

Solution code:
X,N = map(int,input().split())
p = list(map(int, input().split()))

i = 0

if X not in p:
  print(X)

else:
  while True:
    i += 1
    if X - i not in p:
      print(X-i)
      break
    if X+i not in p:
      print(X+i)
      break

Submission status: Runtime Error

Solution code:
lst = list(map(int, input().split()))

for i in lst:
  i == 0:
    print(i)
    exit()

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().split())

for i in range(X + 1):
    if i * 2 + (X - i) * 4 == Y:
        print('Yes')
        break
else:
    print('No')

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
for i in range(x+1):
    if 2*i+4*(x-i)==y:
        print("Yes")
print('No')

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
for i in range(x+1):
    if 2*i+4*(x-i)==y:
        print("Yes")
        break
else:
    print("No")

Submission status: Runtime Error

Solution code:
X=map(int,input().split())
for i in range(1,6):
    if X[i]==0:
        print(i)
        exit()

Submission status: Runtime Error

Solution code:
#D
from sys import stdin
def main():
    readline=stdin.readline
    n = int(readline())
    a = list(map(int,readline().split()))
    count=0
    for i in a:
        num_div=0
        for j in a:
            if i%j==0:
                num_div+=1
        if num_div==1:
            count+=1
    print(count)
main()

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;

#define pb emplace_back
#define fi first
#define se second
#define m_p make_pair
#define vi vector<int>
#define pi pair<int, int>
#define mem(a,b) memset(a,b,sizeof(a))
#define el cout<<endl
#define sz(a) (int)a.size()
const int mod = (int)1e9+7;
typedef long long int ll;

#define TRACE

#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
	cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
	const char* comma = strchr(names + 1, ',');cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...)
#endif
const int N = (int)1e5+5;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	int ans=0;
	for(int i=0;i<5;i++){
		int x;
		cin>>x;
		if(x==0){
			ans = i+1;
		}
	}
	cout<<ans;el;

}

ll power(ll a,ll b, ll md=mod){
	ll r=1;
	while(b){
		if(b%2) 
			r=(r*a)%md;
		a=(a*a)%md;
		b>>=1;
	}
	return r;
}

Submission status: Runtime Error

Solution code:
x = [int(v) for v in input().rstrip().split()
i = x.index(0)
print(i + 1)

Submission status: Runtime Error

Solution code:
A=list(map(int,input().split()))
for i in range(1,6):
    if A[i]==0:
        print(i)

Submission status: Runtime Error

Solution code:
X = list(map(int,input().split()))
for i in range(X):
  if X[i] == 0:
    print(i+1)

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().split())

for i in range(1, X+1):
    for j in range(1, X-i):
        if 2*i + 4*j == Y:
            print('Yes')
            exit(0)
print('No')

Submission status: Runtime Error

Solution code:
x=list(map(int,input().split()))

for i in range(len(x)):
  if x[i]==0:
    print(i+1)
    break:

Submission status: Runtime Error

Solution code:
t=list(map(int,input().spplit()))
for i in range(5):
  if t[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
x = str(input())
if x[n] == 0:
  print(n)

Submission status: Runtime Error

Solution code:
x = str(input())
if x[n] ==0:
  print(n)

Submission status: Runtime Error

Solution code:
x = int(input())
if x[n] ==0:
  print(n)

Submission status: Runtime Error

Solution code:
l = map(int, input().split())
for i in range(5):
  if not i+1 == l[i]:
    print(i+1)

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().split())
if Y % 2 == 0 and Y <= 4*X and Y >= 2*X:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
x, n = map(int, input().split())
p = list(map(int, input().split()))
if x not in p:
    print(x)
else:
    a, b = 1, 1
    while True:
        if (x + a) not in p:
            break
        else:
            a += 1

    while True:
        if (x - b) not in p:
            break
        else:
            b += 1

    if a >= b:
        print(x - b)
    else:
        print(x + a)

Submission status: Runtime Error

Solution code:
a = input().split()
for i in range(4):
  if a[i] = 0:
    print(i)

Submission status: Runtime Error

Solution code:
a = input().split()
for i in range(4):
  if i = 0:
    print(i)

Submission status: Runtime Error

Solution code:
X, N = map(int, input().split())

if N==0:
  print(X)
  exit(0)
  
p = [int(i) for i in input().split()]

for i in range(X+1):
  for s in [-1,1]:
    a = X + i*s
    if a not in p:
      print(a)
      exit(0)

Submission status: Runtime Error

Solution code:
a=list(map(int,input().split()))
print(a.find(0)+1)

Submission status: Runtime Error

Solution code:
a = list(map(int,input()))
for i in range(5):
  if a[i]==0:
    print(i+1)

Submission status: Runtime Error

Solution code:
package main 

import "fmt"

func main() {
	var x [5]int

	for i := 0; i < 5; i++ {
		fmt.Scan(&x[i])
	}

	for i := 0; i < 5; i++ {
		if x[i] == 0 {
			fmt.Println(i + 1)
		}
	}
}

Submission status: Runtime Error

Solution code:
l=list(map(int,input().split())
for i in range(len(l)):
	if l[i]==0:
        print(i+1)
        break

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
s=0
if x*4<y:print("No")
elif x*4==y or x*2==y:print("Yes")
elif (y-(x*2))%2==0:print("Yes")
else:print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort()

#Aiは、Ai以外の任意の(すべての)Ajで割り切れない
unans = 0
for i in a:
  count = 0
  for j in a:
    if i % j == 0:
      count += 1
    if count >= 2:
      unans += 1
      break
   
print(n - unans)

Submission status: Runtime Error

Solution code:
n=list(map(int,input()))
p=sum(n)
f=15
ans=(f-p)
print(ans)

Submission status: Runtime Error

Solution code:
n=list(map(input()))
p=sum(n)
ans=(15-p)
print(ans)

Submission status: Runtime Error

Solution code:
X, Y= map(int,input().split())

a=2*X
b=(Y-a)/2
c=X-b

if(2*c+4*b==Y and (Y-a)%2==0 and c>=0):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x= list(map(int, inpout().split()))
for i in range(5):
  if x[i]==0:
    print(i)
    exit(0)

Submission status: Runtime Error

Solution code:
xy = [int(s) for s in input().split()]
x = xy[0]
y = xy[1]

if y % 2 == 0 and y<=4*x and y>=2*x:
  print('Yes')0
else:
  print('No')

Submission status: Runtime Error

Solution code:
xy = [int(s) for s in input().split()]
x = xy[0]
y = xy[1]

if y % 2 == 0 and Y<=4*X and Y>=2*X:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
xy = [int(s) for s in input().split()]
x = xy[0]
y = xy[1]

if y % 2 == 0 and Y<=4*X and Y>=2*X:
  print('Yes')
 else:
   print('No')

Submission status: Runtime Error

Solution code:
xy = [int(s) for s in input().split()]
x = xy[0]
y = xy[1]

if y % 2 = 0 and Y<=4*X and Y>=2*X:
  print('Yes')
 else:
   print('No')

Submission status: Runtime Error

Solution code:
return input().strip().split().index("0") + 1

Submission status: Runtime Error

Solution code:
ans = 0
for i in range(5):
	if int(input()) == 0:
		ans = i+1
print(ans)

Submission status: Runtime Error

Solution code:
ans = 0
for i in range(5):
  a = int(input())
  if a == 0:
    ans = i+1
print(ans)

Submission status: Runtime Error

Solution code:
ans = 0
for i in range(5):
  if int(input()) == 0:
    ans = i+1
print(ans)

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))
for i in range(5):
  if x[i] != i+1
  	print(i+1)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
#define mod7 1000000007

using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int val, v;
	for (int i=0; i<5; i++) {
		cin>>val;
		if (val==0) v = i+1;
	}
	cout<<v<<'\n';
}

Submission status: Runtime Error

Solution code:
a,b,c,d,e=int(input().split())
0 2 3 4 5
print(15-a-b-c-d-e)

Submission status: Runtime Error

Solution code:
v_list = [int(i) for i in input().split()]
for i in len(v_list):
  if v_list[i] == 0:
    print(i+1)

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))  # n個の数字がリストに格納される

for i in range(x):
  if x[i] is 0:
    print(i+1)

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))  # n個の数字がリストに格納される

for i in 5:
  if x[i] is 0:
    print(i+1)

Submission status: Runtime Error

Solution code:
a = input().split(" ")
base = int(a[0])
count = int(a[1])
if count == 0:
  print(base)
else:
  num = list(map(int, input().split()))  

  i = 0
  while i <= count:
    if num.count(base - i) == 0:
      print(num.count(base - i))
      print(base - i)
      break
    elif num.count(base + 1) == 0:
      print(num.count(base + i))
      print(base + i)
      break
    else:
      i += 1

Submission status: Runtime Error

Solution code:
x = map(int,input().split())
for i in range(len(x)):
  if x[i] == 0:
    print(i+1)

Submission status: Runtime Error

Solution code:
import sys

x, n = map(int, input().split())
p = set(map(int, input().split()))

if n == 0:
    print(x)
    sys.exit()

i = 1
while i < 103:
    left = x - i
    right = x + i
    if left not in p:
        print(left)
        sys.exit()
    elif right not in p:
        print(right)
        sys.exit()
    i += 1

Submission status: Runtime Error

Solution code:
a = input()
l = a.split("")
b = l.index("0")
print(b+1)

Submission status: Runtime Error

Solution code:
a,b,c,d,e = map(int, input().split())


if a == 0:
        print(1)
    elif b == 0:
        print(2)
    elif c == 0:
        print(3)
    elif d == 0:
        print(4)
    else:
        print(5)

Submission status: Runtime Error

Solution code:
a = input()
b = a.split(" ")
for i in len(b):
  if b[i] == "0":
    print(i+1)
    break

Submission status: Runtime Error

Solution code:
list = list(map(int(input().split())))
N =  list.index(0)+1
print (N)

Submission status: Runtime Error

Solution code:
list = list(map(int(input().split( ))))
out =  list.index(0)+1
print (out)

Submission status: Runtime Error

Solution code:
list = list(map(int(input().split( ))))
print list.index(0)+1

Submission status: Runtime Error

Solution code:
x1 = int(input())
x2 = int(input())
x3 = int(input())
x4 = int(input())
x5 = int(input())

l = [x1, x2, x3, x4, x5]
print(l.index(0)+1)

Submission status: Runtime Error

Solution code:
n=list(map(int,input.split()))
for i in range(len(n)):
  if(n[i]==0):
    cout<<i+1
    break

Submission status: Runtime Error

Solution code:
x1=int(input())
x2=int(input())
x3=int(input())
x4=int(input())
x5=int(input())
if x1==0:
    print(1)
if x2==0:
    print(2)
if x3==0:
    print(3)
if x4==0:
    print(4)
if x5==0:
    print(5)

Submission status: Runtime Error

Solution code:
x1=int(input())
x2=int(input())
x3=int(input())
x4=int(input())
x5=int(input())
if x1==0:
    print('x1')
if x2==0:
    print('x2')
if x3==0:
    print('x3')
if x4==0:
    print('x4')
if x5==0:
    print('x5')

Submission status: Runtime Error

Solution code:
xn = input().split()
data = input().split()

data_2 = []

x = int(xn[0]) #これに近い値
data.sort() #小さい順

#dataにない値が出るまでxから１引き続ける　１引き続けた値をaとする

a = x-1
while True:
    #check
    for i in range(len(data)):
        if int(data[i]) == a:
            a = a - 1
            break
        else:
            data_2.append(a)
            break
    if a == int(data_2[0]):
        break

#dataにない値が出るまでxから１足し続ける　１足し続けた値をbとする
b = x + 1
while True:
    #check
    for i in range(len(data)):
        if int(data[i]) == b:
            b = b + 1
            break
        else:
            data_2.append(b)
            break
    if b == int(data_2[1]):
        break

#aとbの小さい方をprint
if a < b:
    print(a)
else:
    print(b)

Submission status: Runtime Error

Solution code:
list_sunuke = []
list_m = []

for i in range(5):
    list_sunuke.append(input())

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])
        break

Submission status: Runtime Error

Solution code:
list_sunuke = []
list_m = []

for i in range(5):
    list_sunuke.append(input())

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[0])
        break

Submission status: Runtime Error

Solution code:
li = [int(i) for i in input().split()]
for i in range(5):
	if li[i] == 0:
    		print(i+1)
            exit()

Submission status: Runtime Error

Solution code:
a=list(map(int,input().split()))
for v in range (4):
  if a[v]=0:
    print(v)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

B = [1] * (max(A) + 1)
for a in A:
    for k in range(a  * 2,len(B),a):
            B[k] = 0
print(sum(B[a] == 1 and A.count(a) == 1 for a in A))

Submission status: Runtime Error

Solution code:
X = map(int,input().split())
for i in range(5):
    if X[i] != i :
        print(i+1)

Submission status: Runtime Error

Solution code:
	x = list(map(int, input().split()))
    count = 1
    for i in x:
        if i == 0:
            print(count)
            break
        count += 1

Submission status: Runtime Error

Solution code:
#n = int(input())
x, y = map(int, input().split())
#l = list(map(int, input().split()))
#s = input()
ans = "Yes"
for i in range(x+1):
    if 2*i+4*x == y:
        ans = "No"

print(ans)

Submission status: Runtime Error

Solution code:
x = list(map(int,inpt().split()))
for i in range(5):
  if x[i] ==0:
    ans = i
    
print(ans)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print(a*b)

Submission status: Runtime Error

Solution code:
x = list(int, input().split())
for i in range(5):
  if x[i] == 0:
    print(i)
    break

Submission status: Runtime Error

Solution code:
a = map(int, input().split())

for i in range(5):
    if a[i] == 0:
        print(i+1)

Submission status: Runtime Error

Solution code:
x = [0]*5
for i in range(5):
  x[i] = int(input())

for i in range(len(x)):
  if x[i]==0:
    print(i+1)
  else:
    x[i]=x[i]

Submission status: Runtime Error

Solution code:
x = [0]*5
for i in x:
  x[i] = input()

for i in x:
  if x[i]==0:
    print i+1

Submission status: Runtime Error

Solution code:
user_input = input()
user_input = user_input.split()
for i in range(len(user_input)):
	if user_input[i] == '0':
    	print(i+1)

Submission status: Runtime Error

Solution code:
x = [0]*5
for i in x:
  x[i] = input()
  
def snuke(x):
  for i in x:
    if x[i]==0:
      print(i+1)

Submission status: Runtime Error

Solution code:
import collections
N=int(input())
A=list(map(int,input().split()))
A=sorted(A)
c=collections.Counter(A)
if __name__=="__main__":
    if 1 in A:
        if c[1]==1:
            print(1)
        else:
            print(0)
    else:
        A=[]
        for key,value in c.items():
            if value==1:
                A.append(key)

        if len(A)==0:
            print(0)
        else:
            dp=[True for _ in range(10**6+10)]
            for a in A:
                if dp[a]:
                    i=2
                    while i*a<=10**6:
                        dp[i*a]=False
                        i+=1 
            ans=0
            for a in A:
                if dp[a]:
                    ans+=1
            print(ans)

Submission status: Runtime Error

Solution code:
X,Y = list(map(int,input().split()))
if Y <= (4 * X) and (Y / 2 == 0):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
from bisect import bisect
from bisect import insort

X,N=list(map(int,input().split()))
if N != 0:
	p=list(map(int,input().split()))

	not_list=[]
	for i in range(1,101):
		if i not in p:
			not_list.append(i)

		a=bisect(not_list,X)
		insort(not_list,X)

		ans1=not_list[a]-not_list[a-1]
		ans2=not_list[a+1]-not_list[a]

		if ans1 < ans2:
			print(not_list[a-1])
		elif ans1 == ans2:
			print(not_list[a-1])
		else:
			print(not_list[a+1])
            
else:
	print(X)

Submission status: Runtime Error

Solution code:
from bisect import bisect
from bisect import insort

X,N=list(map(int,input().split()))
p=list(map(int,input().split()))

not_list=[]
for i in range(1,101):
	if i not in p:
		not_list.append(i)
        
a=bisect(not_list,X)
insort(not_list,X)

ans1=not_list[a]-not_list[a-1]
ans2=not_list[a+1]-not_list[a]

if ans1 < ans2:
	print(not_list[a-1])
elif ans1 == ans2:
	print(not_list[a-1])
else:
	print(not_list[a+1])

Submission status: Runtime Error

Solution code:
a,b,c=input().split()
print("{} {} {}".format(c,a,b))

Submission status: Runtime Error

Solution code:
books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books1[i]==0):
    print(i+1)
    break
    i+=1

Submission status: Runtime Error

Solution code:
books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books[i]==0):
    print(i+1)
    break
    i+=1

Submission status: Runtime Error

Solution code:
books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books[i]==0):
    print(i)
    break
    i+=1

Submission status: Runtime Error

Solution code:
x, y = [int(x) for x in input().split()]
if 4 * x >= y and (y%4 ==0 or (y %2 == 0 and (y-2)%4==0)):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=input()
d=input()
e=input()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
e=int(e)
sum=a+b+c+d+e

print(15-sum)

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=input()
d=input()
e=input()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
e=int(e)
print(15-a-b-c-d-e)

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=input()
d=input()
e=input()
print(15-a-b-c-d-e)

Submission status: Runtime Error

Solution code:
li = list(map(int,input().split()))
for i, j in enumerate(li):
  if j == 0:
    echo i + 1

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(10**8)
def line_to_int(): return int(sys.stdin.readline())
def line_to_each_int(): return map(int, sys.stdin.readline().split())
def line_to_list(): return list(map(int, sys.stdin.readline().split()))
def line_to_list_in_iteration(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
# def dp(init, i, j): return [[init]*i for i2 in range(j)]
#from collections import defaultdict #d = defaultdict(int) d[key] += value
#from collections import Counter # a = Counter(A).most_common()
# from itertools import accumulate #A = [0]+list(accumulate(A))
# import bisect #bisect.bisect_left(B, a), bisect.bisect_right(B,a)

n, k = line_to_each_int()
p = line_to_list()

p = sorted(p)
ans = 0
for i in range(k):
    ans += p[i]
print(ans)

Submission status: Runtime Error

Solution code:
import sys
line = sys.stdin.readlines()[0].rstrip("\n")
print(line.split(" ").index("0", 1))

Submission status: Runtime Error

Solution code:

def main():
  a = map(int,input().split())
  ans = 0
  for i in range(5):
      ans += a[i]
  print(15 - ans)
main()

Submission status: Runtime Error

Solution code:
n = map(int, input().split())
for i in range(5):
  if n[i] == 0:
    print(i+1)
	exit()

Submission status: Runtime Error

Solution code:
a,b = map(int, input().split())
list = []
for y in range(a+1):
  list += [y*4 + (a-y)*2]
  
if b in list:
  print("Yes")
else:
  print("No")