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 |
|---|---|---|---|---|---|---|---|
p02747 | import re
index = re.match(r'*(hi)+*', input())
if index:
print("Yes")
else:
print("No") | import re
index = re.fullmatch(r'(hi)+', input())
if index:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"literal.string.change",
"call.arguments.change"
] | 526,018 | 526,015 | u678786307 | python |
p02747 | s = input()
result = re.fullmatch("(hi){1,5}",s)
if result == None:
print("No")
else:
print("Yes") | import re
s = input()
result = re.fullmatch("(hi){1,5}",s)
if result == None:
print("No")
else:
print("Yes") | [] | 526,049 | 526,050 | u389135205 | python |
p02747 | string = input()
flag = False
num = len(string)
if num % 2 == 0:
for i in range(num // 2 - 1):
if string[2*i:2*(i+1)] == "hi":
if i == num // 2 - 1:
flag = True
else:
break
if flag:
print("Yes")
else:
print("No") | string = input()
flag = False
num = len(string)
if num % 2 == 0:
for i in range(num // 2):
if string[2*i:2*(i+1)] == "hi":
if i == num // 2 - 1:
flag = True
else:
break
if flag:
print("Yes")
else:
print("No") | [
"expression.operation.binary.remove"
] | 526,055 | 526,056 | u837340160 | python |
p02747 | # A
s = input()
for i in range(0, len(s), 2):
if len(s) < 2:
bool = False
break
elif s[i] == 'h' and s[i+1] == 'i':
bool = True
else:
bool = False
break
print('Yes' if bool else 'No') | # A
s = input()
for i in range(0, len(s), 2):
if len(s)%2 == 1:
bool = False
break
elif s[i] == 'h' and s[i+1] == 'i':
bool = True
else:
bool = False
break
print('Yes' if bool else 'No') | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 526,057 | 526,058 | u721425712 | python |
p02747 | # coding: utf-8
# Your code here!
import re
input = input()
pattern = '^(hi)+$'
# compile後match
repatter = re.compile(pattern)
result = repatter.fullmatch(input)
if result is not None:
print("yes")
else:
print("no") | # coding: utf-8
# Your code here!
import re
input = input()
pattern = '^(hi)+$'
# compile後match
repatter = re.compile(pattern)
result = repatter.fullmatch(input)
if result is not None:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 526,070 | 526,071 | u801009312 | python |
p02747 | a = input()
if a == 'hi' or a == 'hihi' or a == 'hihihi' or a == 'hihihihihi':
print('Yes')
else:
print('No')
| a = input()
if a == 'hi' or a == 'hihi' or a == 'hihihi' or a == 'hihihihi' or a == 'hihihihihi':
print('Yes')
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 526,072 | 526,073 | u936885469 | python |
p02747 | a=input()
flg=0
for i in range(len(a)//2):
if not a[2*i]=='h' and a[2*i+1]=='i':
flg=1
if len(a)%2!=0 or flg==1:
print("No")
else:
print("Yes") | a=input()
flg=0
for i in range(len(a)//2):
if not (a[2*i]=='h' and a[2*i+1]=='i'):
flg=1
if len(a)%2!=0 or flg==1:
print("No")
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 526,086 | 526,087 | u723013004 | python |
p02747 | S = input()
N = int(len(S)/2)
[print('Yes') if S == 'hi'*N else print('NO')] | S = input()
N = int(len(S)/2)
[print('Yes') if S == 'hi'*N else print('No')] | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 526,090 | 526,091 | u430679199 | python |
p02747 | s = input()
if len(s) < 1 or len(s) >10:
ans = False
if len(s) >= 1 or len(s) <= 10:
if s == 'hi' or s == 'hihi' or s == 'hihihi' or s == 'hihihhihi' or s == 'hihihihihi':
ans =True
else:
ans =False
if ans:
print ('Yes')
else:
print('No') | s = input()
ans = False
if len(s) < 1 or len(s) >10:
ans = False
if len(s) >= 1 or len(s) <= 10:
if s == 'hi' or s == 'hihi' or s == 'hihihi' or s == 'hihihihi' or s == 'hihihihihi':
ans =True
else:
ans =False
if ans:
print ('Yes')
else:
print('No') | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,108 | 526,109 | u282265659 | python |
p02747 | s=str(inputs())
tmp = s.replace('hi','')
if tmp=='':
print('Yes')
else:
print('No') | s=str(input())
tmp = s.replace('hi','')
if tmp=='':
print('Yes')
else:
print('No')
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 526,110 | 526,111 | u695567036 | python |
p02747 | import re
s = input()
isHitachi = re.search("^(hi)+$")
if isHitachi:
print("Yes")
else:
print("No") | import re
s = input()
isHitachi = re.search("^(hi)+$", s)
if isHitachi:
print("Yes")
else:
print("No") | [
"call.arguments.add"
] | 526,112 | 526,113 | u891559491 | python |
p02747 | import re
s = input()
isHitachi = re.search("(hi)+", s)
if isHitachi:
print("Yes")
else:
print("No") | import re
s = input()
isHitachi = re.search("^(hi)+$", s)
if isHitachi:
print("Yes")
else:
print("No") | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change"
] | 526,114 | 526,113 | u891559491 | python |
p02747 | S = input()
if len(S) == 1:
print("No")
exit()
for i in range(len(S)):
if i % 2 == 1:
if S[i] != 'i':
print("No")
exit()
if i % 2 == 0:
if S[i] != 'h':
print("No")
exit()
print("Yes") | S = input()
if len(S) % 2 == 1:
print("No")
exit()
for i in range(len(S)):
if i % 2 == 1:
if S[i] != 'i':
print("No")
exit()
if i % 2 == 0:
if S[i] != 'h':
print("No")
exit()
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 526,127 | 526,128 | u814663076 | python |
p02747 | #N=int(input())
#N,M=map(int, input().split())
#L=list(map(int, input().split()))
S = str(input())
if len(S)==1:
print('No')
exit()
n = 0
while len(S) > n:
if n % 2 == 1 and S[n] != 'i':
print('No')
exit()
elif n % 2 == 0 and S[n] != 'h':
print('No')
exit()
n += 1
print(... | #N=int(input())
#N,M=map(int, input().split())
#L=list(map(int, input().split()))
S = str(input())
if len(S)%2==1:
print('No')
exit()
n = 0
while len(S) > n:
if n % 2 == 1 and S[n] != 'i':
print('No')
exit()
elif n % 2 == 0 and S[n] != 'h':
print('No')
exit()
n += 1
prin... | [
"control_flow.branch.if.condition.change"
] | 526,129 | 526,130 | u748311048 | python |
p02747 | s=input()
flg=0
if len(s)%2!=0:
print("No")
else:
for i in range(0,len(s)-1,2):
if s[i:i+2]!="hi":
flg +=1
break
continue
if flg==0:
print("Yes")
else:
print("No") | s=input()
flg=0
if len(s)%2!=0:
flg+=1
else:
for i in range(0,len(s)-1,2):
if s[i:i+2]!="hi":
flg +=1
break
continue
if flg==0:
print("Yes")
else:
print("No") | [
"call.arguments.change"
] | 526,135 | 526,136 | u187058053 | python |
p02747 | str = input()
yes = True
if len(str) < 2:
yes = False
for i in range(len(str)):
if (i % 2 == 0 and str[i] != 'h') or (i % 2 == 1 and str[i] != 'i'):
yes = False
break
print("Yes" if yes else "No")
| str = input()
yes = True
if len(str) % 2 == 1:
yes = False
for i in range(len(str)):
if (i % 2 == 0 and str[i] != 'h') or (i % 2 == 1 and str[i] != 'i'):
yes = False
break
print("Yes" if yes else "No")
| [
"control_flow.branch.if.condition.change"
] | 526,143 | 526,144 | u376616698 | python |
p02747 | S = input()
if len(S) == 1:
print("No")
else:
while (len(S) != 0):
if S[0] == 'h' and S[1] == 'i':
S = S[2:]
else:
break
if len(S) != 0:
print("No")
else:
print("Yes") | S = input()
if len(S) % 2 == 1:
print("No")
else:
while (len(S) != 0):
if S[0] == 'h' and S[1] == 'i':
S = S[2:]
else:
break
if len(S) != 0:
print("No")
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 526,150 | 526,151 | u076625073 | python |
p02747 | a = input()
l = list(a)
num = len(l)
TorF = True
if num % 2 == 0:
b = int(num/2)
for i in range(b):
if not a[2*i] == 'h' and a[2*i + 1] == 'i':
TorF = False
break
else:
TorF = False
if TorF == True:
print('Yes')
else:
print('No') | a = input()
l = list(a)
num = len(l)
TorF = True
if num % 2 == 0:
b = int(num/2)
for i in range(b):
if not (a[2*i] == 'h' and a[2*i + 1] == 'i'):
TorF = False
break
else:
TorF = False
if TorF == True:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 526,152 | 526,153 | u978640776 | python |
p02747 | S = input()
S.replace("hi","")
if S == "":
print("Yes")
else:
print("No")
| S = input()
S = S.replace("hi","")
if S == "":
print("Yes")
else:
print("No") | [
"assignment.add"
] | 526,160 | 526,161 | u872657955 | python |
p02747 | S=input()
hi="hi"
for i in range(5):
if(S==hi*i):
print("Yes")
exit()
print("No") | S=input()
hi="hi"
for i in range(1,6):
if(S==hi*i):
print("Yes")
exit()
print("No") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 526,164 | 526,165 | u947101138 | python |
p02747 | # -*- coding: utf-8 -*-
# 整数の入力
a = list(input())
#print(a)
Flag=True
if a.count('h')+a.count('i')!=len(a):
Flag = False
if a[0::2].count('h')!=len(a)/2:
print('a')
Flag = False
if a[1::2].count('i')!=len(a)/2:
Flag = False
if Flag:print('Yes')
else:print('No')
| # -*- coding: utf-8 -*-
# 整数の入力
a = list(input())
#print(a)
Flag=True
if a.count('h')+a.count('i')!=len(a):
Flag = False
if a[0::2].count('h')!=len(a)/2:
Flag = False
if a[1::2].count('i')!=len(a)/2:
Flag = False
if Flag:print('Yes')
else:print('No')
| [
"call.remove"
] | 526,166 | 526,167 | u657786757 | python |
p02747 | import re
s = str(input())
m = re.match(pattern='(hi)+', string=s)
if m:
print('Yes')
else:
print('No') | import re
s = str(input())
m = re.fullmatch(pattern='(hi)+', string=s)
if m:
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.change"
] | 526,170 | 526,171 | u527616458 | python |
p02747 | import math
s = input()
n = math.ceil(len(s)/2)
hitachi = ""
for i in range(n):
hitachi += "hi"
print(hitachi)
if hitachi in s:
print("Yes")
else:
print("No") | import math
s = input()
n = math.ceil(len(s)/2)
hitachi = ""
for i in range(n):
hitachi += "hi"
if hitachi in s:
print("Yes")
else:
print("No") | [
"call.remove"
] | 526,178 | 526,179 | u485286322 | python |
p02747 | s = input()
h_else_i = True
ret = True
for char in s:
if h_else_i:
if char == "h":
h_else_i = not h_else_i
continue
else:
ret = False
break
else:
if char == "i":
h_else_i = not h_else_i
continue
else:
ret = False
break
if ret:
print("Yes")
else:
p... | s = input()
h_else_i = True
ret = True
for char in s:
if h_else_i:
if char == "h":
h_else_i = not h_else_i
continue
else:
ret = False
break
else:
if char == "i":
h_else_i = not h_else_i
continue
else:
ret = False
break
if ret and h_else_i:
print("Y... | [
"control_flow.branch.if.condition.change"
] | 526,187 | 526,188 | u628151901 | python |
p02747 | s = input()
if len(s) % 2 == 0:
ans = True
for i in range(len(s)//2):
if s[2*i] != "h" or s[2*i+1] != "i":
ans = False
print("No")
if ans:
print("Yes")
else:
print("No")
| s = input()
if len(s) % 2 == 0:
ans = True
for i in range(len(s)//2):
if s[2*i] != "h" or s[2*i+1] != "i":
ans = False
print("No")
break
if ans:
print("Yes")
else:
print("No")
| [
"control_flow.break.add"
] | 526,193 | 526,194 | u838560769 | python |
p02747 | S = input()
import re
if re.match(r'(hi)+',S):
print('Yes')
else:
print('No') | S = input()
import re
if re.fullmatch(r'(hi)+',S):
print('Yes')
else:
print('No') | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 526,195 | 526,196 | u990300472 | python |
p02747 | x = input()
y = "hi"
for i in range(4):
if y == x:
print("Yes")
break
y = y + "hi"
else:
print("No") | x = input()
y = "hi"
for i in range(5):
if y == x:
print("Yes")
break
y = y + "hi"
else:
print("No") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,207 | 526,208 | u508842013 | python |
p02747 | s=input()
b=s.strip('hi')
if len(s)==1:
print("No")
else:
if b=="":
print("Yes")
else:
print("No") | s=input()
b=s.replace('hi','')
if len(s)==1:
print("No")
else:
if b=="":
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"call.arguments.add"
] | 526,236 | 526,237 | u872184182 | python |
p02747 | S = input()
for i in range(1,6):
if S is 'hi'*i:
print('Yes')
break
else:
print('No') | S = input()
for i in range(1,6):
if S == 'hi'*i:
print('Yes')
break
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 526,258 | 526,259 | u733132703 | python |
p02747 | S = input()
for i in range(1,6):
if S in 'hi'*i:
print('Yes')
break
else:
pass
else:
print('No') | S = input()
for i in range(1,6):
if S == 'hi'*i:
print('Yes')
break
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 526,261 | 526,259 | u733132703 | python |
p02747 | S = input()
for i in range(1,6):
if S in 'hi'*i:
print('Yes')
break
else:
print('No') | S = input()
for i in range(1,6):
if S == 'hi'*i:
print('Yes')
break
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 526,262 | 526,259 | u733132703 | python |
p02747 | import sys
s = list(input())
c = len(s)
if c%2 == 1:
print("No")
sys.exit()
else:
for i in range(c//2):
if not s[2*i] == "h" and s[2*i+1] == "i":
print("No")
sys.exit
print("Yes") | import sys
s = list(input())
c = len(s)
if c%2 == 1:
print("No")
sys.exit()
else:
for i in range(c//2):
if s[2*i] != "h" or s[2*i+1] != "i":
print("No")
sys.exit()
print("Yes") | [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"call.add"
] | 526,300 | 526,301 | u448720391 | python |
p02747 | S = list(str(input()))
status = 0
det = 0
for i in range(len(S)):
if status == 0 and S[i] != "h":
det = -1
break
elif status == 1 and S[i] != "i":
det = -1
break
status += 1
status %= 2
if det == 0:
print("Yes")
else:
print("No") | S = list(str(input()))
status = 0
det = 0
for i in range(len(S)):
if status == 0 and S[i] != "h":
det = -1
break
elif status == 1 and S[i] != "i":
det = -1
break
status += 1
status %= 2
if det == 0 and status == 0:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 526,333 | 526,334 | u512007680 | python |
p02747 | s = input()
flag = False
for i in range(1,5):
if 'hi' * i == s:
flag = True
if flag:
print('Yes')
else:
print('No') | s = input()
flag = False
for i in range(1,6):
if 'hi' * i == s:
flag = True
if flag:
print('Yes')
else:
print('No') | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,345 | 526,346 | u329049771 | python |
p02747 | s=input()
if len(s)%2==1:
print("No")
exit()
for i in range(len(s)//2,2):
if s[i] != "h" or s[i+1] != "i":
print("No")
exit()
print("Yes") | s=input()
if len(s)%2==1:
print("No")
exit()
for i in range(0,len(s),2):
if s[i] != "h" or s[i+1] != "i":
print("No")
exit()
print("Yes") | [
"call.arguments.add",
"expression.operation.binary.remove"
] | 526,372 | 526,373 | u204842730 | python |
p02747 | def main():
S = input()
L_S = len(S)
if L_S % 2 != 0:
print('No')
for i in range(L_S//2):
if S[i*2] != 'h' or S[i*2 + 1] != 'i':
print('No')
exit()
print('Yes')
if __name__ == '__main__':
main()
| def main():
S = input()
L_S = len(S)
if L_S % 2 != 0:
print('No')
exit()
for i in range(L_S // 2):
if S[i * 2] != 'h' or S[i * 2 + 1] != 'i':
print('No')
exit()
print('Yes')
if __name__ == '__main__':
main()
| [
"call.add"
] | 526,374 | 526,375 | u451012573 | python |
p02747 | s=input()
if len(s)%2==0:
for i in range(0,len(s)//2):
if s[2*i]!="h" or s[2*i+1]!="i":
break
print("No")
else:
print("Yes")
else:
print("No") | s=input()
if len(s)%2==0:
for i in range(0,len(s)//2):
if s[2*i]!="h" or s[2*i+1]!="i":
print("No")
break
else:
print("Yes")
else:
print("No") | [
"control_flow.break.remove",
"control_flow.break.add"
] | 526,378 | 526,379 | u239653493 | python |
p02747 | a = "hi"
s = input()
n = 0
for i in range(5):
if a*i==s:
n = n+1
else:
pass
if n>=1:
print("Yes")
else:
print("No") | a = "hi"
s = input()
n = 0
for i in range(1,6):
if a*i==s:
n = n+1
else:
pass
if n>=1:
print("Yes")
else:
print("No") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 526,380 | 526,381 | u351480677 | python |
p02747 | S = input()
is_hitachi = True
if len(S) >= 2:
for i in range(0, len(S), 2):
if not (S[i] == 'h' and S[i + 1] == 'i'):
is_hitachi = False
print('YNeos'[not is_hitachi::2])
else:
print('No')
| S = input()
is_hitachi = True
if len(S) %2 == 0:
for i in range(0, len(S), 2):
if not (S[i] == 'h' and S[i + 1] == 'i'):
is_hitachi = False
print('YNeos'[not is_hitachi::2])
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 526,382 | 526,383 | u181668771 | python |
p02747 | S = input()
if len(S) < 2:
print('No')
return
s = S.replace('hi', '')
# print(S)
print('Yes' if len(s) < 1 else 'No') | S = input()
if len(S) < 2:
print('No')
exit()
s = S.replace('hi', '')
# print(S)
print('Yes' if len(s) < 1 else 'No') | [
"control_flow.return.remove",
"control_flow.exit.add",
"call.add"
] | 526,386 | 526,387 | u199830845 | python |
p02747 | a = input()
b = a.split("hi")
c = "".join(b)
print(c)
if len(c) <= 0:
print("Yes")
else:
print("No") | a = input()
b = a.split("hi")
c = "".join(b)
if len(c) <= 0:
print("Yes")
else:
print("No") | [
"call.remove"
] | 526,390 | 526,391 | u369630760 | python |
p02747 | H = True
ans = True
for c in input():
if H and c != "h":
ans = False
break
elif not H and c != "i":
ans = False
break
H = not H
print("Yes" if ans else "No")
| H = True
ans = True
for c in input():
if H and c != "h":
ans = False
break
elif not H and c != "i":
ans = False
break
H = not H
print("Yes" if ans and H else "No")
| [] | 526,392 | 526,393 | u736524428 | python |
p02747 | s = input()
ok_list = ["hi" * n for n in range(1, 5)]
if s in ok_list:
print("Yes")
else:
print("No") | s = input()
ok_list = ["hi" * n for n in range(1, 6)]
if s in ok_list:
print("Yes")
else:
print("No") | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,402 | 526,403 | u081193942 | python |
p02747 | s=input()
if (s == 'hi') or (s == 'hihi'):
print('Yes')
elif (s == 'hihihi') or (s == 'hihihihihi'):
print('Yes')
elif (s == 'hihihihihi'):
print('Yes')
else:
print('No')
| s=input()
if (s == 'hi') or (s == 'hihi'):
print('Yes')
elif (s == 'hihihi') or (s == 'hihihihi'):
print('Yes')
elif (s == 'hihihihihi'):
print('Yes')
else:
print('No')
| [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,404 | 526,405 | u432518223 | python |
p02747 | import sys
import math
readline = sys.stdin.buffer.readline
s = readline().rstrip().decode('utf-8')
n = len(s)
if n%2 != 0:
print("No")
else:
for i in range(0,n,2):
if s[i:i+2] != "hi":
print("No")
exit()
print("Yes") | import sys
import math
readline = sys.stdin.buffer.readline
s = readline().rstrip().decode('utf-8')
n = len(s)
if n%2 != 0:
print("No")
exit()
else:
for i in range(0,n,2):
if s[i:i+2] != "hi":
print("No")
exit()
print("Yes") | [
"call.add"
] | 526,408 | 526,409 | u372144784 | python |
p02747 | s = input()
p = len(s)
s = s.replace('hihi', '')
a = len(s)
if p -a>= 4:
print('Yes')
else:
print('No') | s = input()
p = len(s)
s = s.replace('hi', '')
a = len(s)
if a==0:
print('Yes')
else:
print('No') | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.remove"
] | 526,412 | 526,413 | u983181637 | python |
p02747 | s = input()
p = len(s)
s = s.replace('hi', '')
a = len(s)
if p -a>= 4:
print('Yes')
else:
print('No') | s = input()
p = len(s)
s = s.replace('hi', '')
a = len(s)
if a==0:
print('Yes')
else:
print('No') | [
"expression.operation.binary.remove"
] | 526,414 | 526,413 | u983181637 | python |
p02747 | s = input()
if len(s)%2 != 0:
print('No')
else:
for x in range(0,len(s), 2):
if s[x:x+2] != 'hi':
print('No')
exit()
print('Yes') | s = input()
if len(s)%2 != 0:
print('No')
exit()
else:
for x in range(0,len(s), 2):
if s[x:x+2] != 'hi':
print('No')
exit()
print('Yes') | [
"call.add"
] | 526,415 | 526,416 | u816637025 | python |
p02747 | n = str(input())
ans = 'Yes'
if len(n)%2 == 1:
ans = No
else:
for i in range(0, len(n)-1, 2):
if n[i] != 'h' or n[i + 1] != 'i':
ans = 'No'
print(ans) | n = str(input())
ans = 'Yes'
if len(n)%2 == 1:
ans = 'No'
else:
for i in range(0, len(n)-1, 2):
if n[i] != 'h' or n[i + 1] != 'i':
ans = 'No'
print(ans) | [] | 526,434 | 526,435 | u330169562 | python |
p02747 | s = input()
if len(s) > 1:
ans = True
else:
ans = False
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = False
else:
if s[i] != 'i':
ans = False
if ans:
print('Yes')
else:
print('No')
| s = input()
if len(s) % 2 == 0:
ans = True
else:
ans = False
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = False
else:
if s[i] != 'i':
ans = False
if ans:
print('Yes')
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 526,436 | 526,437 | u353402627 | python |
p02747 | s = input()
if s=='hi' or s=='hihi' or s=='hihihi' or s=='hihihihi' or s=='hihihihihihi':
print('Yes')
else:
print('No') | s = input()
if s=='hi' or s=='hihi' or s=='hihihi' or s=='hihihihi' or s=='hihihihihi':
print('Yes')
else:
print('No') | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,456 | 526,457 | u828506439 | python |
p02747 | def main():
import sys
#input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations
#from itertools import accumulate, product
from bisect import bisect_left,bisect... | def main():
import sys
#input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations
#from itertools import accumulate, product
from bisect import bisect_left,bisect... | [
"assignment.variable.change",
"control_flow.branch.if.add"
] | 526,462 | 526,463 | u863442865 | python |
p02747 | S = list(input())
if len(S)%2 != 0:
print("No")
else:
for i in range(len(S)):
if (i%2 == 0 & S[i] != "h") or (i%2 == 1 & S[i] != "i"):
print("No")
break
else:
print("Yes") | S = list(input())
if len(S)%2 != 0:
print("No")
else:
for i in range(len(S)):
if (i%2 == 0 and S[i] != "h") or (i%2 == 1 and S[i] != "i"):
print("No")
break
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 526,480 | 526,481 | u314089899 | python |
p02747 | s=input()
print('Yes' if s.count('hi')==len(s)//2 else 'No') | s=input()
print('Yes' if s.count('hi')==len(s)/2 else 'No') | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 526,501 | 526,502 | u340781303 | python |
p02747 | s = list(input())
if len(s)%2 == 1:
print("No")
elif s.count("hi") == len(s)//2:
print("Yes")
else:
print("No") | s = input()
if len(s)%2 == 1:
print("No")
elif s.count("hi") == len(s)//2:
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 526,515 | 526,516 | u072606168 | python |
p02747 | s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihihi" or s == "hihihihihi":
print("Yes")
else:
print("No") | s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
print("Yes")
else:
print("No") | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,526 | 526,527 | u708019102 | python |
p02747 | s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihi":
print("Yes")
else:
print("No") | s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
print("Yes")
else:
print("No") | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,534 | 526,535 | u377989038 | python |
p02747 | S = str(int())
if S%2 == 0:
tes = "hi"*int((len(S)/2))
if S ==tes:
print("Yes")
else:
print("No")
else:
print("No") | S = str(input())
if len(S)%2 == 0:
tes = "hi"*int((len(S)/2))
if S ==tes:
print("Yes")
else:
print("No")
else:
print("No")
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.branch.if.condition.change",
"call.add"
] | 526,561 | 526,562 | u478266845 | python |
p02747 | s = input()
a = 0
if len(s) == 1:
print('No')
exit(0)
for i in range(len(s)):
if i % 2 == 0:
if s[i] == 'h':
pass
else:
a += 1
else:
if s[i] == 'i':
pass
else:
a += 1
if a == 0:
print('Yes')
else:
print('No')
| s = input()
a = 0
if len(s) % 2 == 1:
print('No')
exit(0)
for i in range(len(s)):
if i % 2 == 0:
if s[i] == 'h':
pass
else:
a += 1
else:
if s[i] == 'i':
pass
else:
a += 1
if a == 0:
print('Yes')
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 526,565 | 526,566 | u560464565 | python |
p02747 | import sys
S = input()
if len(S)<2:
print("No")
sys.exit()
for i in range(len(S)):
if i%2 == 0 and S[i] == "h":
pass
elif i%2 == 1 and S[i] == "i":
pass
else:
print("No")
sys.exit()
print("Yes") | import sys
S = input()
if len(S)%2!=0:
print("No")
sys.exit()
for i in range(len(S)):
if i%2 == 0 and S[i] == "h":
pass
elif i%2 == 1 and S[i] == "i":
pass
else:
print("No")
sys.exit()
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 526,567 | 526,568 | u810605496 | python |
p02747 | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
length = len(S)
if length % 2 != 0:
print(NO)
for i in range(length):
if i % 2 == 0 and S[i] != "h":
print(NO)
return
elif i % 2 != 0 and S[i] != "i":
... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
length = len(S)
if length % 2 != 0:
print(NO)
return
for i in range(length):
if i % 2 == 0 and S[i] != "h":
print(NO)
return
elif i % 2 != 0 and... | [
"control_flow.return.add"
] | 526,569 | 526,570 | u505505186 | python |
p02747 | S = input()
flg = False
num = len(S)
if num == 2 and S == 'hi':
flg = True
if num == 4 and S == 'hihi':
flg = True
if num == 6 and S == 'hihihi':
flg = True
if num == 8 and S == 'hihihi':
flg = True
if num == 10 and S == 'hihihi':
flg = True
if flg == True:
print('Yes')
else:
print('No')
| S = input()
flg = False
num = len(S)
if num == 2 and S == 'hi':
flg = True
if num == 4 and S == 'hihi':
flg = True
if num == 6 and S == 'hihihi':
flg = True
if num == 8 and S == 'hihihihi':
flg = True
if num == 10 and S == 'hihihihihi':
flg = True
if flg == True:
print('Yes')
else:
print('... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 526,571 | 526,572 | u461833298 | python |
p02747 | #At coder 2020/3/8 C
#import math
#import time
S=input()
#Q=int(input())
ans='no'
if len(S)%2==0:
#print(len(S)/2)
for ii in range(int(len(S)/2)):
if S[2*ii]=='h' and S[2*ii+1]=='i':
ans='Yes'
else:
ans='No'
break
print(ans) | #At coder 2020/3/9 A
#import math
#import time
S=input()
#Q=int(input())
ans='No'
if len(S)%2==0:
#print(len(S)/2)
for ii in range(int(len(S)/2)):
if S[2*ii]=='h' and S[2*ii+1]=='i':
ans='Yes'
else:
ans='No'
break
print(ans) | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 526,573 | 526,574 | u781928894 | python |
p02747 | S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count*2] != "h" and S[count*2 + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count*2] != "h" or S[count*2 + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 526,592 | 526,593 | u034777138 | python |
p02747 | S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count] != "h" and S[count + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count*2] != "h" or S[count*2 + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 526,594 | 526,593 | u034777138 | python |
p02747 | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
if len(S)%2 != 0:
print(NO)
else:
for x in range(len(S)//2):
if S[2*x:2*x+2] != "hi":
print(NO)
return
print(YES)
return
# Generated... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
if (len(S)%2 != 0):
print(NO)
else:
for x in range(len(S)//2):
if S[2*x:2*x+2] != "hi":
print(NO)
return
print(YES)
return
... | [
"control_flow.branch.if.condition.change"
] | 526,608 | 526,609 | u166727624 | python |
p02747 | S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[2*i] + S[2*i+1] != 'hi':
print(i)
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[2*i] + S[2*i+1] != 'hi':
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | [
"call.remove"
] | 526,610 | 526,611 | u225845681 | python |
p02747 | S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[i]+S[i+1] != 'hi':
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[2*i] + S[2*i+1] != 'hi':
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 526,612 | 526,611 | u225845681 | python |
p02747 | s = input()
hi = True
for i in range(len(s)):
if i % 2 == 0 and s[i] != "h":
hi = False
break
elif i % 2 == 1 and s[i] != "i":
hi = False
break
if len(s) < 2:
hi = False
if hi:
print("Yes")
else:
print("No") | s = input()
hi = True
for i in range(len(s)):
if i % 2 == 0 and s[i] != "h":
hi = False
break
elif i % 2 == 1 and s[i] != "i":
hi = False
break
if len(s) % 2 != 0:
hi = False
if hi:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 526,613 | 526,614 | u477915050 | python |
p02747 | S=input()
ans="Yes"
if S%2==1:
ans="No"
else:
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
ans="No"
break
if i%2==1:
if S[i]!="i":
ans="No"
break
print(ans) | S=input()
ans="Yes"
if len(S)%2==1:
ans="No"
else:
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
ans="No"
break
if i%2==1:
if S[i]!="i":
ans="No"
break
print(ans) | [
"control_flow.branch.if.condition.change",
"call.add"
] | 526,617 | 526,618 | u419877586 | python |
p02747 | # coding: utf-8
S=list(input())
flg=True
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
flg=False
else:
if S[i]!="i":
flg=False
if len(S)==1:
flg=False
if flg:
print("Yes")
else:
print("No")
| # coding: utf-8
S=list(input())
flg=True
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
flg=False
else:
if S[i]!="i":
flg=False
if len(S)%2==1:
flg=False
if flg:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 526,619 | 526,620 | u095426154 | python |
p02747 | import sys
s=input()
l=len(s)
if l==1:
print('No')
sys.exit()
for i in range(0,l,2):
if s[i]=='h':
if s[i+1]!='i':
print('No')
sys.exit()
else:
print('No')
sys.exit()
print('Yes')
| import sys
s=input()
l=len(s)
if l%2==1:
print('No')
sys.exit()
for i in range(0,l,2):
if s[i]=='h':
if s[i+1]!='i':
print('No')
sys.exit()
else:
print('No')
sys.exit()
print('Yes')
| [
"control_flow.branch.if.condition.change"
] | 526,635 | 526,636 | u527261492 | python |
p02747 | def main():
s=list(input())
if len(s) == 1:
print('No')
return
for i in range(len(s)):
if i%2 == 0:
if not s[i] == "h":
print('No')
return
else:
if not s[i] == "i":
print('No')
return
... | def main():
s=list(input())
if not len(s)%2 == 0:
print('No')
return
for i in range(len(s)):
if i%2 == 0:
if not s[i] == "h":
print('No')
return
else:
if not s[i] == "i":
print('No')
re... | [
"control_flow.branch.if.condition.change",
"literal.number.integer.change"
] | 526,646 | 526,647 | u619084943 | python |
p02747 | def main():
s = input()
for _ in range(15):
s=s.replace("hi", " ")
for _ in range(15):
s=s.replace(" ", "")
if s=="":
print("Yes")
else:
print(s,"No")
main() | def main():
s = input()
for _ in range(15):
s=s.replace("hi", " ")
for _ in range(15):
s=s.replace(" ", "")
if s=="":
print("Yes")
else:
print("No")
main() | [
"call.arguments.change"
] | 526,651 | 526,652 | u994767958 | python |
p02747 | n = input()
l = n.replace("hi","a")
print("No" if len(set(l)) != 1 else "Yes") | n = input()
l = n.replace("hi","")
print("No" if len(set(l)) != 0 else "Yes") | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change",
"literal.number.integer.change",
"io.output.change"
] | 526,653 | 526,654 | u427984570 | python |
p02747 | s = input()
a='hi'
b=0
for n in range(4):
if s==a*(n+1):
print("Yes")
b=1
if b!=1:
print("No")
| s = input()
a='hi'
b=0
for n in range(5):
if s==a*(n+1):
print("Yes")
b=1
if b!=1:
print("No")
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,663 | 526,664 | u406546804 | python |
p02747 | s = input()
a='hi'
b=0
for n in range(5):
if s==a*n:
print("Yes")
b=1
if b!=1:
print("No") | s = input()
a='hi'
b=0
for n in range(5):
if s==a*(n+1):
print("Yes")
b=1
if b!=1:
print("No")
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 526,665 | 526,664 | u406546804 | python |
p02747 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from collections import deque as deq
import re
S = input()
print('Yes' if re.match(r'(hi)+', S) else 'No')
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from collections import deque as deq
import re
S = input()
print('Yes' if re.match(r'^(hi)+$', S) else 'No')
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 526,670 | 526,671 | u344178887 | python |
p02747 | s = str(input())
Sample = ["h","hi","hihi","hihihi""hihihihi","hihihihihi"]
if s in Sample:
print("Yes")
else:
print("No")
| s = str(input())
Sample = ["hi","hihi","hihihi","hihihihi","hihihihihi"]
if s in Sample:
print("Yes")
else:
print("No")
| [] | 526,676 | 526,677 | u603324902 | python |
p02747 | s = str(input())
Sample = ["hi","hihi","hihihi""hihihihi","hihihihihi"]
if s in Sample:
print("Yes")
else:
print("No")
| s = str(input())
Sample = ["hi","hihi","hihihi","hihihihi","hihihihihi"]
if s in Sample:
print("Yes")
else:
print("No")
| [] | 526,678 | 526,677 | u603324902 | python |
p02747 | s = input()
if len(s) == 1:
print('No')
exit()
for i in range(len(s)):
if i % 2 == 0 and s[i] != 'h':
print('No')
exit()
if i % 2 == 1 and s[i] != 'i':
print('No')
exit()
print('Yes')
| s = input()
if len(s) % 2 == 1:
print('No')
exit()
for i in range(len(s)):
if i % 2 == 0 and s[i] != 'h':
print('No')
exit()
if i % 2 == 1 and s[i] != 'i':
print('No')
exit()
print('Yes')
| [
"control_flow.branch.if.condition.change"
] | 526,679 | 526,680 | u305366205 | python |
p02747 | s = input()
count = len(s) / 2
if s == 'hi' * count:
print('Yes')
else:
print('No') | s = input()
count = len(s) // 2
if s == 'hi' * count:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 526,683 | 526,684 | u135961419 | python |
p02747 | s = input()
cnt = 0
for i in range(0, len(s), 2):
if s[i:i+2] == 'hi':
cnt += 1
if cnt == len(s)//2:
print('Yes')
else:
print('No')
| s = input()
cnt = 0
for i in range(0, len(s), 2):
if s[i:i+2] == 'hi':
cnt += 1
if cnt*2 == len(s):
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 526,693 | 526,694 | u080364835 | python |
p02747 | S = input()
hitachi = ["hi"*i for i in range(1,5)]
if S in hitachi:
print("Yes")
else:
print("No")
| S = input()
hitachi = ["hi"*i for i in range(1,6)]
if S in hitachi:
print("Yes")
else:
print("No")
| [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,699 | 526,700 | u069172538 | python |
p02747 | s=input()
for i in range(5):
if s=="hi"*i:
print("Yes")
break
else:
print("No") | s=input()
for i in range(6):
if s=="hi"*i:
print("Yes")
break
else:
print("No")
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 526,703 | 526,704 | u619819312 | python |
p02747 | s = input()
if s.count("hi") == len(s) // 2:
print("Yes")
else:
print("No") | s = input()
if s.count("hi") == len(s) / 2:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 526,878 | 526,879 | u761989513 | python |
p02748 | a, b, m = map(int, input().split())
a_price = list(map(int, input().split()))
b_price = list(map(int, input().split()))
coupon = []
for _ in range(m):
coupon.append(list(map(int, input().split())))
a_copy = a_price.copy()
a_copy.sort()
b_copy = b_price.copy()
b_copy.sort()
a_min = a_copy[0]
b_min = b_copy[0]
min =... | a, b, m = map(int, input().split())
a_price = list(map(int, input().split()))
b_price = list(map(int, input().split()))
coupon = []
for _ in range(m):
coupon.append(list(map(int, input().split())))
a_copy = a_price.copy()
a_copy.sort()
b_copy = b_price.copy()
b_copy.sort()
a_min = a_copy[0]
b_min = b_copy[0]
min =... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 526,903 | 526,904 | u125269142 | python |
p02748 | A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
xyc = [list(map(int, input().split())) for _ in range(M)]
# print(xyc)
cost = []
cost.append(min(a) + min(b))
for x, y, c in xyc:
tmp = a[x - 1] + b[y - 1] - c
cost.append(tmp)
print(cost)
| A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
xyc = [list(map(int, input().split())) for _ in range(M)]
# print(xyc)
cost = []
cost.append(min(a) + min(b))
for x, y, c in xyc:
tmp = a[x - 1] + b[y - 1] - c
cost.append(tmp)
print(min(cost))
| [
"call.arguments.add",
"call.arguments.change"
] | 526,907 | 526,908 | u285681431 | python |
p02748 | A,B,M=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
D=[]
for i in range(M):
D.append(list(map(int,input().split())))
S=min(a)+min(b)
P=[]
for i in range(M):
P.append(a[D[i][0]-1]+b[D[i][0]-1]-D[i][2])
P.append(S)
print(min(P)) | A,B,M=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
D=[]
for i in range(M):
D.append(list(map(int,input().split())))
S=min(a)+min(b)
P=[]
for i in range(M):
P.append(a[D[i][0]-1]+b[D[i][1]-1]-D[i][2])
P.append(S)
print(min(P)) | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 526,919 | 526,920 | u693694535 | python |
p02748 | a,b,m = map(int,input().split())
a_li = list(map(int,input().split()))
b_li = list(map(int,input().split()))
cost = min(a_li) + min(b_li)
for i in range(m):
x,y,c = map(int,input().split())
price = a_li[x-1] + a_li[y-1] - c
if price < cost:
cost = price
print(cost) | a,b,m = map(int,input().split())
a_li = list(map(int,input().split()))
b_li = list(map(int,input().split()))
cost = min(a_li) + min(b_li)
for i in range(m):
x,y,c = map(int,input().split())
price = a_li[x-1] + b_li[y-1] - c
if price < cost:
cost = price
print(cost)
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 526,924 | 526,925 | u106118504 | python |
p02748 | def resolve():
a, b, m = map(int, input().split())
a_list = sorted(list(map(int, input().split())))
b_list = sorted(list(map(int, input().split())))
ans = min(a_list) + min(b_list)
for _ in range(m):
x, y, c = map(int, input().split())
ans = min(ans, a_list[x-1]+b_list[y-1]-c)
pr... | def resolve():
a, b, m = map(int, input().split())
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
ans = min(a_list) + min(b_list)
for _ in range(m):
x, y, c = map(int, input().split())
ans = min(ans, a_list[x-1]+b_list[y-1]-c)
print(ans)
resolve... | [
"call.remove"
] | 526,940 | 526,941 | u672898046 | python |
p02748 |
A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
ans = min(a)+min(b)
for _ in range(M):
x, y, c = map(int, input().split())
ans = min(a[x-1]+b[y-1]-c, ans)
prins(ans) | A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
ans = min(a)+min(b)
for _ in range(M):
x, y, c = map(int, input().split())
ans = min(a[x-1]+b[y-1]-c, ans)
print(ans)
| [
"identifier.change",
"call.function.change"
] | 526,942 | 526,943 | u163421511 | python |
p02748 | a, b, m = map(int, input().split())
a_s = list(map(int, input().split()))
b_s = list(map(int, input().split()))
m_s =[]
for _ in range(m):
m_s.append(list(map(int, input().split())))
mini = min(a_s) + min(b_s)
for am, bm, sale in m_s:
mini = min(mini, a_s[am]+b_s[bm]-sale)
print(mini) | a, b, m = map(int, input().split())
a_s = list(map(int, input().split()))
b_s = list(map(int, input().split()))
m_s =[]
for _ in range(m):
m_s.append(list(map(int, input().split())))
mini = min(a_s) + min(b_s)
for am, bm, sale in m_s:
mini = min(mini, a_s[am-1]+b_s[bm-1]-sale)
print(mini) | [
"assignment.change"
] | 526,946 | 526,947 | u376754170 | python |
p02748 | # n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
import sys
input = sys.stdin.readline
A, B, M = map(int, input().split())
List_A = list(map(int, input().split()))
List_B = list(map(... | # n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
import sys
input = sys.stdin.readline
A, B, M = map(int, input().split())
List_A = list(map(int, input().split()))
List_B = list(map(... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 526,953 | 526,954 | u047931063 | python |
p02748 | A,B,M = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
min_price = max(a)+max(b)
for i in range(M):
x,y,c = map(int,input().split())
min_price = min(min_price,a[x-1]+b[y-1]-c)
print(min_price) | A,B,M = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
min_price = min(a)+min(b)
for i in range(M):
x,y,c = map(int,input().split())
min_price = min(min_price,a[x-1]+b[y-1]-c)
print(min_price) | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 526,957 | 526,958 | u143051858 | python |
p02748 | a, b, m = map(int, input().split())
reizo = list(map(int, input().split()))
renji = list(map(int, input().split()))
p = [list(map(int,input().split())) for i in range(m)]
ans = []
for i in range(m):
cost = reizo[p[i][0]] + renji[p[i][1]] - p[i][2]
ans.append(cost)
ans.append(min(reizo) + min(renji))
print(min(ans)) | a, b, m = map(int, input().split())
reizo = list(map(int, input().split()))
renji = list(map(int, input().split()))
p = [list(map(int,input().split())) for i in range(m)]
ans = []
for i in range(m):
cost = reizo[p[i][0] - 1] + renji[p[i][1] - 1] - p[i][2]
ans.append(cost)
ans.append(min(reizo) + min(renji))
print(m... | [
"assignment.change"
] | 526,961 | 526,962 | u068142202 | python |
p02748 | A,B,M = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
min = min(a)+min(b)
for i in range(M):
c =list(map(int,input().split()))
s = a[c[0]-1]+b[c[1]-1]-c[2]
min = min(s,min)
print(min)
| A,B,M = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
ans = min(a)+min(b)
for i in range(M):
c =list(map(int,input().split()))
s = a[c[0]-1]+b[c[1]-1]-c[2]
ans = min(s,ans)
print(ans) | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change",
"io.output.change"
] | 527,005 | 527,006 | u234189749 | python |
p02748 | A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
kingaku=[]
for i in range(M):
x_input, y_input, c_input = map(int, input().split())
kingaku.append(a[x_input-1]+b[y_input-1]+c_input)
kingaku.append(min(a)+min(b))
print(min(kingaku)) | #入力処理
A, B, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
kingaku=[]
for i in range(M):
x_input, y_input, c_input = map(int, input().split())
kingaku.append(a[x_input-1]+b[y_input-1]-c_input)
kingaku.append(min(a)+min(b))
print(min(kingaku)) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 527,015 | 527,016 | u102218630 | python |
p02748 | # coding: utf-8
import re
import math
import itertools
from copy import deepcopy
import random
from heapq import heappop,heappush
import time
import os
import queue
import sys
import datetime
from functools import lru_cache
readline=sys.stdin.readline
sys.setrecursionlimit(2000)
#import numpy as np
alphabet="abcdefghij... | # coding: utf-8
import re
import math
import itertools
from copy import deepcopy
import random
from heapq import heappop,heappush
import time
import os
import queue
import sys
import datetime
from functools import lru_cache
readline=sys.stdin.readline
sys.setrecursionlimit(2000)
#import numpy as np
alphabet="abcdefghij... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 527,026 | 527,027 | u902151549 | python |
p02748 | # coding: utf-8
import re
import math
import itertools
from copy import deepcopy
import random
from heapq import heappop,heappush
import time
import os
import queue
import sys
import datetime
from functools import lru_cache
readline=sys.stdin.readline
sys.setrecursionlimit(2000)
#import numpy as np
alphabet="abcdefghij... | # coding: utf-8
import re
import math
import itertools
from copy import deepcopy
import random
from heapq import heappop,heappush
import time
import os
import queue
import sys
import datetime
from functools import lru_cache
readline=sys.stdin.readline
sys.setrecursionlimit(2000)
#import numpy as np
alphabet="abcdefghij... | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 527,028 | 527,027 | u902151549 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.