problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02639 | 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) | [
"call.add"
] | 348,570 | 348,571 | u235210692 | python |
p02639 | 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 | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 348,577 | 348,578 | u113694671 | python |
p02639 | n=list(map(int,input().split()))
for i in range(len(n)):
if n[i]==0:
print(i)
break | n=list(map(int,input().split()))
for i in range(len(n)):
if n[i]==0:
print(i+1)
break | [
"expression.operation.binary.add"
] | 348,582 | 348,583 | u854931881 | python |
p02639 | X = input()
ans = X.index('0')
print(int(ans)+1) | X = input().split()
ans = X.index('0')
print(int(ans)+1) | [
"call.add"
] | 348,584 | 348,585 | u663404111 | python |
p02639 | 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) | [
"call.arguments.add",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 348,602 | 348,601 | u211706121 | python |
p02639 | 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 | [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.break.add"
] | 348,605 | 348,606 | u077816564 | python |
p02639 | 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)
| [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 348,607 | 348,608 | u298976461 | python |
p02639 | 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)
| [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 348,607 | 348,609 | u298976461 | python |
p02639 | 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) | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 348,607 | 348,610 | u298976461 | python |
p02639 | x = list(map(int, input().split()))
print(10 - sum(x))
| x = list(map(int, input().split()))
print(15 - sum(x))
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 348,612 | 348,613 | u975997984 | python |
p02639 | A=list(map(int,input().split()))
for i in range(5):
if A[i]==0:
print(i) | A=list(map(int,input().split()))
for i in range(5):
if A[i]==0:
print(i+1) | [
"expression.operation.binary.add"
] | 348,614 | 348,615 | u582803594 | python |
p02639 | a = list(map(int,input().split()))
for i in range(4):
if a[i] ==0:
print(i+1) | a = list(map(int,input().split()))
for i in range(5):
if a[i] ==0:
print(i+1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 348,616 | 348,617 | u464912173 | python |
p02639 | 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
| [
"call.remove"
] | 348,624 | 348,625 | u364555831 | python |
p02639 | t=list(map(int,input().spplit()))
for i in range(5):
if t[i]==0:
print(i+1) | t=list(map(int,input().split()))
for i in range(5):
if t[i]==0:
print(i+1)
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 348,626 | 348,627 | u363320559 | python |
p02639 | 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) | [
"call.add",
"call.arguments.change"
] | 348,630 | 348,631 | u239368018 | python |
p02639 | 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) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 348,638 | 348,639 | u159144188 | python |
p02639 | a=list(map(int,input().split()))
print(a.find(0)+1)
| a=list(map(int,input().split()))
print(a.index(0)+1)
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 348,642 | 348,643 | u243159381 | python |
p02639 | a = list(map(int,input()))
for i in range(5):
if a[i]==0:
print(i+1) | a = list(map(int,input().split()))
for i in range(5):
if a[i]==0:
print(i+1)
| [
"call.add"
] | 348,644 | 348,645 | u793821463 | python |
p02639 | 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)
| [
"call.add",
"call.arguments.change",
"call.arguments.add"
] | 348,664 | 348,661 | u853728588 | python |
p02639 | 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(5):
if x[i]==0:
print(i+1) | [
"call.add",
"call.arguments.change"
] | 348,664 | 348,665 | u853728588 | python |
p02639 | 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)
| [
"expression.operation.binary.add"
] | 348,666 | 348,667 | u897220832 | python |
p02639 | 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)
| [
"expression.operation.binary.add"
] | 348,672 | 348,673 | u262646906 | python |
p02639 | return input().strip().split().index("0") + 1 | print(input().strip().split().index("0") + 1)
| [
"function.return_value.change",
"call.arguments.change"
] | 348,678 | 348,679 | u605601159 | python |
p02639 | 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) | [
"call.arguments.change",
"io.output.change"
] | 348,687 | 348,688 | u633466792 | python |
p02639 | 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) | [
"expression.operation.binary.add"
] | 348,695 | 348,696 | u607563136 | python |
p02639 | 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) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 348,699 | 348,700 | u726823037 | python |
p02639 | 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)
| [
"call.add",
"call.arguments.change"
] | 348,707 | 348,708 | u589969467 | python |
p02639 | a = input()
l = a.split("")
b = l.index("0")
print(b+1) | a=input()
l=a.split(" ")
b=l.index("0")
print(b+1) | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change"
] | 348,709 | 348,710 | u004823354 | python |
p02639 | 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
| [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 348,715 | 348,716 | u738289281 | python |
p02639 | 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 | [
"call.add",
"call.arguments.change"
] | 348,725 | 348,726 | u555649269 | python |
p02639 | 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]) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 348,727 | 348,728 | u782643389 | python |
p02639 | 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])
break | 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]) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add",
"control_flow.break.remove"
] | 348,729 | 348,728 | u782643389 | python |
p02639 | data=input().split()
for i in range(5):
if int(data[i]) == 0:
c=i
print(c) | data=input().split()
for i in range(5):
if int(data[i]) == 0:
print(i+1)
| [
"call.arguments.change",
"io.output.change"
] | 348,730 | 348,731 | u887080361 | python |
p02639 | 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)
| [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 348,732 | 348,731 | u887080361 | python |
p02639 | A = list(map(int, input().split()))
print(A.index(0)) | A = list(map(int, input().split()))
print(A.index(0)+1) | [
"expression.operation.binary.add"
] | 348,735 | 348,736 | u645568816 | python |
p02639 | 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) | [
"call.add",
"call.arguments.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 348,737 | 348,738 | u337949146 | python |
p02639 | 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) | [
"expression.operation.binary.add"
] | 348,741 | 348,742 | u190178779 | python |
p02639 | 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 | [
"expression.operation.binary.add"
] | 348,747 | 348,748 | u174990305 | python |
p02639 | 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) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 348,749 | 348,750 | u407415713 | python |
p02639 | 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 | [
"call.arguments.add",
"call.arguments.change"
] | 348,757 | 348,756 | u830881690 | python |
p02639 | a = map(int, input().split())
for i in range(5):
if a[i] == 0:
print(i+1)
| a = list(map(int, input().split()))
for i in range(5):
if a[i] == 0:
print(i+1)
| [
"call.add",
"call.arguments.change"
] | 348,768 | 348,769 | u235027735 | python |
p02639 |
def main():
a = map(int,input().split())
ans = 0
for i in range(5):
ans += a[i]
print(15 - ans)
main() |
def main():
a = list(map(int,input().split()))
ans = 0
for i in range(5):
ans += a[i]
print(15 - ans)
main() | [
"call.add",
"call.arguments.change"
] | 348,788 | 348,789 | u962609087 | python |
p02639 | s = input()
list = s.split(" ")
for i in range(5):
if int(list[i]) == 0:
print(i) | s = input()
list = s.split(" ")
for i in range(5):
if int(list[i]) == 0:
print(i+1) | [
"expression.operation.binary.add"
] | 348,790 | 348,791 | u803503672 | python |
p02639 | s = input()
list = s.split(" ")
for i in range(5):
if list[i] == 0:
print(i) | s = input()
list = s.split(" ")
for i in range(5):
if int(list[i]) == 0:
print(i+1) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 348,792 | 348,791 | u803503672 | python |
p02639 | print(list(map(int,input().split())).index(0)) | print(list(map(int,input().split())).index(0)+1) | [
"expression.operation.binary.add"
] | 348,793 | 348,794 | u248670337 | python |
p02639 | from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split(... | from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split(... | [
"call.remove"
] | 348,795 | 348,796 | u215286521 | python |
p02639 | x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] != i+1:
print(i)
| x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] != i+1:
print(i+1)
| [
"expression.operation.binary.add"
] | 348,797 | 348,798 | u455354923 | python |
p02639 | x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] != i:
print(i)
| x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] != i+1:
print(i+1)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 348,799 | 348,798 | u455354923 | python |
p02639 | L1=list(map(int,input().split()))
for i in range(len(l1)):
if l1[i]==0:
print(i+1)
break | l1=list(map(int,input().split()))
for i in range(len(l1)):
if l1[i]==0:
print(i+1)
break | [
"assignment.variable.change",
"identifier.change"
] | 348,849 | 348,850 | u790867486 | python |
p02639 | a=int(input())
a=a.split(" ")
c=0
for i in a:
c+=1
if i==0:
break
print(c) | a=input()
a=a.split(" ")
c=0
for i in a:
c+=1
if i==str(0):
break
print(c)
| [
"call.remove",
"call.arguments.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 348,857 | 348,858 | u011202375 | python |
p02639 | 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
| [
"expression.operation.binary.add"
] | 348,861 | 348,862 | u349856178 | python |
p02639 | 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
| [
"expression.operation.binary.add"
] | 348,863 | 348,864 | u349856178 | python |
p02639 | arr = map(int, input().split())
for i in range(len(arr)):
if (arr[i] == 0):
print(i+1) | arr = list(map(int, input().split()))
for i in range(len(arr)):
if (arr[i] == 0):
print(i+1) | [
"call.add",
"call.arguments.change"
] | 348,872 | 348,873 | u929996201 | python |
p02639 | xlist = list(map(int,input().split()))
print(xlist.index(0))
| xlist = list(map(int,input().split()))
print(xlist.index(0) + 1)
| [
"expression.operation.binary.add"
] | 348,878 | 348,879 | u214209871 | python |
p02639 | x = list[map(int,input().split())]
x = sum(x)
ans = 15-x
print(ans) | x = (list(map(int,input().split())))
x = sum(x)
ans = 15-x
print(ans)
| [
"assignment.value.change"
] | 348,886 | 348,883 | u159369286 | python |
p02639 | l=list(map(input().split()))
print(l.index(0)+1) | l=list(map(int ,input().split()))
print(l.index(0)+1)
| [
"call.arguments.add"
] | 348,891 | 348,892 | u593920359 | python |
p02639 | l=list(map(input().split()))
print(l.index(0)) | l=list(map(int ,input().split()))
print(l.index(0)+1)
| [
"call.arguments.add"
] | 348,893 | 348,892 | u593920359 | python |
p02639 | lst = list(map(int,input().split()))
for e in range(len(lst)):
if lst[e] == 0:
print(lst[e]+1) | lst = list(map(int, input().split()))
for e in range(len(lst)):
if lst[e] == 0:
print(e+1) | [
"call.arguments.change"
] | 348,904 | 348,905 | u570391873 | python |
p02639 | x=list(map(int,input().split()))
for i in range(len(x)):
if x[i]==0:
print(i) | x=list(map(int,input().split()))
for i in range(len(x)):
if x[i]==0:
print(i+1) | [
"expression.operation.binary.add"
] | 348,907 | 348,908 | u996506712 | python |
p02639 | a=list(map(int ,input().split()))
for i in range(len(a)):
if a[i]==0:
print(i)
| a=list(map(int ,input().split()))
for i in range(len(a)):
if a[i]==0:
print(1+i) | [
"expression.operation.binary.add"
] | 348,912 | 348,913 | u686536081 | python |
p02639 | import numpy as np
A = np.array(list(map(int, input().split())))
print(np.where(A == 0)[0][0]) | import numpy as np
A = np.array(list(map(int, input().split())))
print(np.where(A == 0)[0][0] + 1) | [
"expression.operation.binary.add"
] | 348,916 | 348,917 | u221998589 | python |
p02639 | x = input().split()
ans = x.index("0")
print(ans) | x = input().split()
ans = x.index("0") + 1
print(ans) | [
"assignment.change"
] | 348,923 | 348,924 | u978167553 | python |
p02639 | a=list(map(int,input().split()))
print(a.index(0)) | a=list(map(int,input().split()))
print(a.index(0)+1) | [
"expression.operation.binary.add"
] | 348,934 | 348,935 | u680104082 | python |
p02639 | a=[]
a=input().split()
for i in range(4):
if a[i]=='0':
print(i+1)
else:
pass
| a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i+1))
else:
pass
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.add"
] | 348,938 | 348,939 | u944886577 | python |
p02639 | a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(int(i)))
else:
pass
| a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i+1))
else:
pass
| [
"call.remove",
"call.arguments.change"
] | 348,940 | 348,939 | u944886577 | python |
p02639 | a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i))
else:
pass | a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i+1))
else:
pass
| [
"expression.operation.binary.add"
] | 348,941 | 348,939 | u944886577 | python |
p02639 | a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i))
else:
pass | a=[]
a=input().split()
for i in range(5):
if a[i]=='0':
print(str(i+1))
else:
pass | [
"expression.operation.binary.add"
] | 348,941 | 348,942 | u944886577 | python |
p02639 | A = list(map(int,input().split()))
print (l.index(0)+1) | l = list(map(int,input().split()))
print (l.index(0)+1) | [
"assignment.variable.change",
"identifier.change"
] | 348,943 | 348,944 | u566297428 | python |
p02639 | a = list(map(int,input().split()))
print (l.index(0)+1)
| l = list(map(int,input().split()))
print (l.index(0)+1) | [
"assignment.variable.change",
"identifier.change"
] | 348,945 | 348,944 | u566297428 | python |
p02639 | A = list(int, input().split())
print(A.index(0) + 1) | l = list(map(int,input().split()))
print (l.index(0)+1) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.add",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 348,947 | 348,944 | u566297428 | python |
p02639 | n = list(map(int, input().split()))
x = s.index(0)
print(x + 1) | n = list(map(int, input().split()))
s = n.index(0)
print(s + 1) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 348,957 | 348,958 | u200228637 | python |
p02639 | s = input().split()
print(s.index('0')) | s = input().split()
print(s.index('0')+1) | [
"expression.operation.binary.add"
] | 348,965 | 348,966 | u434609232 | python |
p02639 | s = input().split()
print(s.index['0']) | s = input().split()
print(s.index('0')+1) | [
"call.arguments.change",
"io.output.change",
"call.arguments.add"
] | 348,967 | 348,966 | u434609232 | python |
p02639 | a = input().split()
for i in range(5):
if i + 1 == int(a[i]):
continue
else:
print(a[i])
| a = input().split()
for i in range(0,5):
if i + 1 == int(a[i]):
continue
else:
print(i + 1)
| [
"call.arguments.add",
"call.arguments.change",
"io.output.change"
] | 348,973 | 348,974 | u167681994 | python |
p02639 | a = input().split()
for i in range(0,5):
if (i + 1) == int(a[i]):
continue
else:
print(a[i])
| a = input().split()
for i in range(0,5):
if i + 1 == int(a[i]):
continue
else:
print(i + 1)
| [
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 348,975 | 348,974 | u167681994 | python |
p02639 | a = input().split()
for i in range(0,5):
if i + 1 == int(a[i]):
continue
else:
print(a[i]) | a = input().split()
for i in range(0,5):
if i + 1 == int(a[i]):
continue
else:
print(i + 1)
| [
"call.arguments.change",
"io.output.change"
] | 348,976 | 348,974 | u167681994 | python |
p02639 | r = 1
for i in range(input().split(' ')):
r ^= int(i)
print(r) | r = 1
for i in input().split(' '):
r ^= int(i)
print(r)
| [
"call.remove",
"call.arguments.change"
] | 348,977 | 348,978 | u084411645 | python |
p02639 | x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] == 0:
print(i)
break | x = list(map(int,input().split()))
for i in range(len(x)):
if x[i] == 0:
print(i+1)
break | [
"expression.operation.binary.add"
] | 348,991 | 348,990 | u272457181 | python |
p02639 | n = input().split()
print(n.index('0'))
| n = input().split()
print(n.index('0') + 1) | [
"expression.operation.binary.add"
] | 348,993 | 348,994 | u697063004 | python |
p02639 | l=list(map(int,input().split()))
for i in range(5):
if l[i]==i+1:
print(i+1) | l=list(map(int,input().split()))
for i in range(5):
if l[i]!=i+1:
print(i+1) | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 348,997 | 348,998 | u366996583 | python |
p02639 | A = list(map(int, input().split()))
for i in range(A):
if A[i] == i+1:
print(i+1)
| A = list(map(int, input().split()))
for i in range(len(A)):
if A[i] != i+1:
print(i+1)
| [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 348,999 | 349,000 | u235783479 | python |
p02639 | a = list(map(int, input().split()))
cnt = 1
for i in a:
if a == 0:
print(cnt)
cnt += 1 | a = list(map(int, input().split()))
cnt = 1
for i in a:
if i == 0:
print(cnt)
cnt += 1
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 349,001 | 349,002 | u981747421 | python |
p02639 | D = list(map(int, input().split()))
for i in range (len(D)):
if D[i]==0:
print(i) | D = list(map(int, input().split()))
for i in range (len(D)):
if D[i]==0:
print(i+1) | [
"expression.operation.binary.add"
] | 349,019 | 349,020 | u334222621 | python |
p02639 | res = [int(idx) for idx in input().split()]
print(res)
count = 0
for idx in res:
if idx == 0:
if count == 4:
print(res[count-1]+1)
break
elif count == 0:
print(res[count+1]-1)
break
else:
print(res[count+1]-1)
break
count += 1
| res = [int(idx) for idx in input().split()]
count = 0
for idx in res:
if idx == 0:
if count == 4:
print(res[count-1]+1)
break
elif count == 0:
print(res[count+1]-1)
break
else:
print(res[count+1]-1)
break
count += 1 | [
"call.remove"
] | 349,021 | 349,022 | u241190800 | python |
p02639 | X = list(map(int, input().split()))
for i in range(5):
if (X[i] == 0):
print(i) | X = list(map(int, input().split()))
for i in range(5):
if (X[i] == 0):
print(i+1) | [
"expression.operation.binary.add"
] | 349,023 | 349,024 | u281334626 | python |
p02639 | x = list(map(int, input().split()))
for i in x:
if i == 0:
print(i + 1) | x = list(map(int, input().split()))
#for i in range(len(x)): #rangeを使わないとiが番号として機能しない
for i, v in enumerate(x): # xの添字と値を順番に入れていく vが配列の値 iが添字
if v == 0:
print(i+1) | [
"call.add",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 349,025 | 349,026 | u795983729 | python |
p02639 | a = list(map(int,input().split()))
for i,j in enumerate(a):
if(i==0):
print(j+1)
| a = list(map(int,input().split()))
for i,j in enumerate(a):
if(j==0):
print(i+1) | [
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 349,041 | 349,042 | u677400065 | python |
p02639 | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index) | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index+1) | [
"expression.operation.binary.add"
] | 349,052 | 349,053 | u886567399 | python |
p02639 | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index) | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index+1) | [
"expression.operation.binary.add"
] | 349,054 | 349,053 | u886567399 | python |
p02639 | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index) | input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
if int(num)==0:
print(index+1) | [
"expression.operation.binary.add"
] | 349,054 | 349,055 | u886567399 | python |
p02639 | numlist = input().split()
index = 0
for num in numlist:
if int(num) == 0:
print(index)
break
index += 1 | numlist = input().split()
index = 1
for num in numlist:
if int(num) == 0:
print(index)
break
index += 1 | [
"literal.number.integer.change",
"assignment.value.change"
] | 349,063 | 349,064 | u919463386 | python |
p02639 | x = list(map(int, input().split()))
if x[0] == 0: print(1)
if x[1] == 0: print(2)
if x[2] == 0: print(3)
if x[3] == 0: print(4)
if x[4]: print(5) | x = list(map(int, input().split()))
if x[0] == 0: print(1)
if x[1] == 0: print(2)
if x[2] == 0: print(3)
if x[3] == 0: print(4)
if x[4] == 0: print(5) | [
"control_flow.branch.if.condition.change"
] | 349,067 | 349,068 | u930847736 | python |
p02639 | A = list[map(int, input().split())]
count = 0
for a in A:
count += 1
if a == 0:
print(count)
exit()
| A = list(map(int, input().split()))
count = 0
for a in A:
count += 1
if a == 0:
print(count)
exit() | [
"assignment.value.change"
] | 349,077 | 349,078 | u729119068 | python |
p02639 | print(input().split().find('0')+1) | print(input().split().index('0')+1) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 349,081 | 349,082 | u926080943 | python |
p02639 | print(input().find('0')+1) | print(input().split().index('0')+1) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 349,083 | 349,082 | u926080943 | python |
p02639 | i = input().split().index("0")
print(i) | i = int(input().split().index("0")) + 1
print(i) | [
"call.add"
] | 349,084 | 349,085 | u287219926 | python |
p02639 | # ABC169A
x = map(int, input().split())
print(x.index(0)+1)
| # ABC169A
x = list(map(int, input().split()))
print(x.index(0)+1)
| [
"call.add",
"call.arguments.change"
] | 349,090 | 349,091 | u437215432 | python |
p02639 | ar=[int(x) for x in input().split()]
for i in range(n):
if(ar[i]==0):
print((i+1))
break | ar=[int(x) for x in input().split()]
for i in range(len(ar)):
if(ar[i]==0):
print(i+1)
break | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 349,098 | 349,099 | u304102443 | python |
p02639 | rt=list(map(int,input().split()))
for i in range(0,4):
if(rt[i]==0):
print(i+1)
break | rt=list(map(int,input().split()))
for i in range(5):
if(rt[i]==0):
print(i+1)
break | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 349,100 | 349,101 | u957486750 | python |
p02639 | l=list().split()
print(1+l.index("0"))
| l=input().split()
print(1+l.index("0"))
| [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 349,105 | 349,106 | u983367697 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.