Datasets:

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
p02744
import copy N=int(input()) ans = [0] if N > 1: ans1 = [] a = max(ans)+1 for i in range(a+1): c = copy.copy(ans) c.append(i) ans1.append(c) if N > 2: ans2 = [] for j in range(len(ans1)): a = max(ans1[j])+1 for i in range(a+1): c = copy.copy(ans1[j]) c.append(i) ans2....
import copy N=int(input()) ans = [0] if N > 1: ans1 = [] a = max(ans)+1 for i in range(a+1): c = copy.copy(ans) c.append(i) ans1.append(c) if N > 2: ans2 = [] for j in range(len(ans1)): a = max(ans1[j])+1 for i in range(a+1): c = copy.copy(ans1[j]) c.append(i) ans2....
[ "literal.number.integer.change", "control_flow.branch.if.condition.change", "identifier.change" ]
525,187
525,188
u329407311
python
p02744
n=int(input()) patterns = ["a"] for _ in range(n-1): last_patterns = patterns.copy() patterns = [] for string in last_patterns: useful_str = alpha[:len(set(string))+1] for str_ in useful_str: patterns.append(string + str_) for pat in patterns: print(pat)
alpha = "abcdefghij" n=int(input()) patterns = ["a"] for _ in range(n-1): last_patterns = patterns.copy() patterns = [] for string in last_patterns: useful_str = alpha[:len(set(string))+1] for str_ in useful_str: patterns.append(string + str_) for pat in patterns: print(pat)
[ "assignment.add" ]
525,210
525,211
u744683641
python
p02744
N = int(input()) a = [[[0]]] k = 0 while k < N-1: c = a[k] a.append([]) for r in c: for i in range(r[-1]+2): x = r + [i] a[k+1].append(x) k += 1 A = a[-1] for s in A: ans = "" for i in range(N): ans += chr(s[i]+97) print(ans)
N = int(input()) a = [[[0]]] k = 0 while k < N-1: c = a[k] a.append([]) for r in c: for i in range(max(r)+2): x = r + [i] a[k+1].append(x) k += 1 A = a[-1] for s in A: ans = "" for i in range(N): ans += chr(s[i]+97) print(ans)
[ "call.add", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
525,212
525,213
u948779457
python
p02744
import sys sys.setrecursionlimit(10**9) ordA = ord('a') N = int(input()) def dfs(i, sSt): if i == N: # print(Ss) ans = ''.join([chr(ordA+S) for S in Ss]) anss.append(ans) else: for s in range(0, sSt+2): Ss[i] = s dfs(i+1, s) anss = [] Ss = [0] * N dfs(1...
import sys sys.setrecursionlimit(10**9) ordA = ord('a') N = int(input()) def dfs(i, sSt): if i == N: # print(Ss) ans = ''.join([chr(ordA+S) for S in Ss]) anss.append(ans) else: for s in range(0, sSt+2): Ss[i] = s dfs(i+1, max(s, sSt)) anss = [] Ss = [0]...
[ "call.add", "call.arguments.add" ]
525,253
525,254
u297574184
python
p02744
import sys sys.setrecursionlimit(10 ** 7) N = int(input()) L = list("abcdefghij") def nasu(x, n, e): if n == N: print(x) return for i in range(e + 1): if i == n: nasu(x + L[i], n + 1, e + 1) else: nasu(x + L[i], n + 1, e) nasu("", 0, 0)
import sys sys.setrecursionlimit(10 ** 7) N = int(input()) L = list("abcdefghij") def nasu(x, n, e): if n == N: print(x) return for i in range(e + 1): if i == e: nasu(x + L[i], n + 1, e + 1) else: nasu(x + L[i], n + 1, e) nasu("", 0, 0)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,263
525,264
u456353530
python
p02744
def sol(k): def gen(d, cur, s): if d == k: yield s return for i in range(0, cur+1): yield from gen(d+1, i+1, s+chr(97+i)) return gen(0, 0, '') def main(): k = int(input()) for x in sol(k): print(x) if __name__ == '__main__': main()
def sol(k): def gen(d, cur, s): if d == k: yield s return for i in range(0, cur+1): yield from gen(d+1, max(cur, i+1), s+chr(97+i)) return gen(0, 0, '') def main(): k = int(input()) for x in sol(k): print(x) if __name__ == '__main__': m...
[ "call.add", "call.arguments.change" ]
525,265
525,266
u394322162
python
p02745
import itertools import os import sys if os.getenv("LOCAL"): sys.stdin = open("_in.txt", "r") sys.setrecursionlimit(10 ** 9) INF = float("inf") IINF = 10 ** 18 MOD = 10 ** 9 + 7 # MOD = 998244353 A, B, C = [sys.stdin.buffer.readline().decode().rstrip() for _ in range(3)] A = list(map(ord, A)) B = list(map(ord,...
import itertools import os import sys if os.getenv("LOCAL"): sys.stdin = open("_in.txt", "r") sys.setrecursionlimit(10 ** 9) INF = float("inf") IINF = 10 ** 18 MOD = 10 ** 9 + 7 # MOD = 998244353 A, B, C = [sys.stdin.buffer.readline().decode().rstrip() for _ in range(3)] A = list(map(ord, A)) B = list(map(ord,...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,311
525,312
u389910364
python
p02744
import sys readline = sys.stdin.readline res = [] def fill(K, f): if K.count(-1) == 0: res.append(K) return else: idx = [] for i in range(N): if K[i] == -1: idx.append(i) kc = len(idx) for S in range(1, 1<<kc): if not S & ...
import sys readline = sys.stdin.readline res = [] def fill(K, f): if K.count(-1) == 0: res.append(K) return else: idx = [] for i in range(N): if K[i] == -1: idx.append(i) kc = len(idx) for S in range(1, 1<<kc): if not S & ...
[ "call.add" ]
525,330
525,331
u368780724
python
p02744
s = 'abcdefghij' sg = s.__getitem__ def dfs(ans): if len(ans) == n: print(''.join(map(sg, ans))) return for i in range(ans[-1] + 2): ans.append(i) dfs(ans) ans.pop() n = int(input()) dfs([0])
s = 'abcdefghij' sg = s.__getitem__ def dfs(ans): if len(ans) == n: print(''.join(map(sg, ans))) return for i in range(max(ans) + 2): ans.append(i) dfs(ans) ans.pop() n = int(input()) dfs([0])
[ "call.add", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
525,334
525,335
u340781749
python
p02747
s = input() if len(s)%2 == 0: for i in len(s)//2: if s[2*i] != "h" and s[2*i+1] != "i": print("No") exit() print("Yes") else: print("No")
s = input() if len(s)%2 == 0: for i in range(len(s)//2): if s[2*i] != "h" or s[2*i+1] != "i": print("No") exit() print("Yes") else: print("No")
[ "call.add", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change" ]
525,414
525,415
u014139588
python
p02747
string = input() for i in range(len(string)): if i % 2 == 0: if string[i] == 'h': continue else: print('No') break elif i % 2 == 1: if string[i] == 'i': continue else: print('No') break else: if len(strin...
string = input() for i in range(len(string)): if i % 2 == 0: if string[i] == 'h': continue else: print('No') break elif i % 2 == 1: if string[i] == 'i': continue else: print('No') break else: if len(strin...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
525,421
525,422
u511824539
python
p02747
s = input() if len(s) < 2: print('No') else: ans = "Yes" for i in range(len(s)): if i % 2 == 0 and s[i] != 'h': ans = "No" break if i % 2 == 1 and s[i] != 'i': ans = "No" break print(ans)
s = input() if len(s) % 2 == 1: print('No') else: ans = "Yes" for i in range(len(s)): if i % 2 == 0 and s[i] != 'h': ans = "No" break if i % 2 == 1 and s[i] != 'i': ans = "No" break print(ans)
[ "control_flow.branch.if.condition.change" ]
525,424
525,425
u411858517
python
p02747
s = input() if s == "hi" * len(s) // 2: print("Yes") else: print("No")
s = input() if s == "hi" * (len(s) // 2): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
525,430
525,431
u265065462
python
p02747
s = input() n = s.count("hi") print("Yes" if n*2 == len(n) else "No")
s = input() n = s.count("hi") print("Yes" if n*2 == len(s) else "No")
[ "identifier.change", "call.arguments.change", "io.output.change" ]
525,432
525,433
u188827677
python
p02747
s = input() n = len(s) if n == 1: print("No") exit(0) for i in range(n): if i % 2 == 0: if s[i] != "h": print("No") break elif s[i] != "i": print("No") break else: print("Yes")
s = input() n = len(s) if n % 2 == 1: print("No") exit(0) for i in range(n): if i % 2 == 0: if s[i] != "h": print("No") break elif s[i] != "i": print("No") break else: print("Yes")
[ "control_flow.branch.if.condition.change" ]
525,444
525,445
u426572476
python
p02747
import sys s = input() if len(s)%2 == 1: print('No') sys.exit() for i in range(len(s)//2): if s[2*i:2*i+1] != 'hi': print('No') sys.exit() print('Yes')
import sys s = input() if len(s)%2 == 1: print('No') sys.exit() for i in range(len(s)//2): if s[2*i:2*i+2] != 'hi': print('No') sys.exit() print('Yes')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
525,446
525,447
u026155812
python
p02747
import sys s = input() if len(s)%2 == 1: print('No') sys.exit() for i in range(len(s)//2): if s[i:i+2] != 'hi': print('No') sys.exit() print('Yes')
import sys s = input() if len(s)%2 == 1: print('No') sys.exit() for i in range(len(s)//2): if s[2*i:2*i+2] != 'hi': print('No') sys.exit() print('Yes')
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
525,448
525,447
u026155812
python
p02747
s = input() p = "No" a = 0 if len(s) % 2 == 0: for i in range(len(s)//2+1): if str(s[a]+s[a+1]) == "hi": p = "Yes" a = a + 2 else: p = "No" break; print(p)
s = input() p = "No" a = 0 if len(s) % 2 == 0: for i in range(len(s)//2): if str(s[a]+s[a+1]) == "hi": p = "Yes" a = a + 2 else: p = "No" break; print(p)
[ "expression.operation.binary.remove" ]
525,453
525,454
u858436319
python
p02747
S = input() for i in range(1, 6): if S == 'hi' * i: print('Yes') break print('No')
S = input() for i in range(1, 6): if S == 'hi' * i: print('Yes') exit() print('No')
[ "control_flow.break.remove", "control_flow.exit.add", "call.add" ]
525,472
525,473
u629540524
python
p02747
S = input() for i in range(1, 6): if S == 'hi' * i: print('Yes') break else: print('No') break
S = input() for i in range(1, 6): if S == 'hi' * i: print('Yes') exit() print('No')
[ "control_flow.break.remove" ]
525,474
525,473
u629540524
python
p02747
print('Yes' if input().replace('hi', '') else 'No')
print('No' if input().replace('hi', '') else 'Yes')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
525,496
525,497
u541610817
python
p02747
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) s = readline().rstrip().decode() if len(s) % 2 == 1: print('No') exit() for i in range(len(s) // 2): if i % 2 == 0: if s[i] != 'h': print('N...
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) s = readline().rstrip().decode() if len(s) % 2 == 1: print('No') exit() for i in range(len(s)): if i % 2 == 0: if s[i] != 'h': print('No') ...
[ "expression.operation.binary.remove" ]
525,506
525,507
u691018832
python
p02747
#!/usr/bin/env python3 ng = True s = input() for i in range(1, 5): if s=="hi"*i: ng = False print("YNeos"[ng::2])
#!/usr/bin/env python3 ng = True s = input() for i in range(1, 6): if s=="hi"*i: ng = False print("YNeos"[ng::2])
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,508
525,509
u242031676
python
p02747
S=list(input()) tmp="" ans="No" for s in S: if(tmp==""): tmp=s else: if(s=='i' and tmp=='h'): ans="Yes" tmp='' else: ans="No" break print(ans)
S=list(input()) tmp="" ans="No" for s in S: if(tmp==""): tmp=s ans="No" else: if(s=='i' and tmp=='h'): ans="Yes" tmp='' else: ans="No" break print(ans)
[ "assignment.add" ]
525,514
525,515
u301624971
python
p02747
S = input() A = ["hi"*i for i in range(1,5)] if S in A: print("Yes") else: print("No")
S = input() A = ["hi"*i for i in range(1,6)] if S in A: print("Yes") else: print("No")
[ "literal.number.integer.change", "assignment.value.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,546
525,547
u855710796
python
p02747
s = input() possible_answers = ['hi', 'hihi', 'hihihi', 'hihihihihi'] if s in possible_answers: print('Yes') else: print('No')
s = input() possible_answers = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi'] if s in possible_answers: print('Yes') else: print('No')
[]
525,548
525,549
u879901633
python
p02747
#!/usr/bin/env python3 import re def main(): S = input() if re.match(r'(?:hi)+', S): print('Yes') else: print('No') if __name__ == "__main__": main()
#!/usr/bin/env python3 import re def main(): S = input() if re.match(r'^(?:hi)+$', S): print('Yes') else: print('No') if __name__ == "__main__": main()
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,550
525,551
u552004554
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" ]
525,554
525,555
u497952650
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" ]
525,554
525,556
u497952650
python
p02747
s=input().relpace("hi","") if len(s)==0: print("Yes") else: print("No")
s=input().replace("hi","") if len(s)==0: print("Yes") else: print("No")
[ "assignment.value.change", "identifier.change" ]
525,580
525,581
u518064858
python
p02747
S = input() hi = S.replace('hi', '') if hi == "": print("yes") else: print("No")
S = input() hi = S.replace('hi', '') if hi == "": print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,582
525,583
u886286585
python
p02747
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,587
525,588
u285891772
python
p02747
S = input() S.replace("hi", "") if S == "": print("No") else: print("Yes")
S = input() if S.replace("hi", "") == "": print("Yes") else: print("No")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
525,589
525,590
u528470578
python
p02747
S = str(input()) S_size = len(S) hi_size = S.count('hi') if S_size == hi_size * 2: print('yes') else: print('no')
S = str(input()) S_size = len(S) hi_size = S.count('hi') if S_size == hi_size * 2: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,593
525,594
u180926680
python
p02747
S=input() for i in range(5): if S=="hi" *i: print("Yes") exit() print("No")
S=input() for i in range(6): if S=="hi" *i: print("Yes") exit() print("No")
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,595
525,596
u912560297
python
p02747
z = input() if z=='hi' or z=='hihi' or z=='hihihi' or z=='hihihihi' or z=='hihihihihi': return "Yes" else: return "No"
z = input() if z=='hi' or z=='hihi' or z=='hihihi' or z=='hihihihi' or z=='hihihihihi': print("Yes") else: print("No")
[ "function.return_value.change", "call.arguments.change" ]
525,602
525,603
u498847144
python
p02747
li = list(input()) n = len(li) for i in range(0, int(n / 2), 2): if li[i] == 'h' and li[i + 1] == 'i' and n % 2 == 0: pass else: print('No') exit() print('Yes')
li = list(input()) n = len(li) for i in range(0, n, 2): if li[i] == 'h' and li[i + 1] == 'i' and n % 2 == 0: pass else: print('No') exit() print('Yes')
[ "call.remove", "call.arguments.change" ]
525,610
525,611
u279266699
python
p02747
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
[ "call.add" ]
525,612
525,613
u980875259
python
p02747
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
[ "assignment.remove" ]
525,614
525,615
u980875259
python
p02747
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
''' =========================================== from collections import deque appendleft() = push_front(), append = push_back() popfleft() = pop_front(), pop() = pop_back() import heapq #heappush(trgt, val) heappop(trgt) trgt[0] __lt__< =========================================== ''' ##=========================...
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
525,617
525,615
u980875259
python
p02747
S = str(input()) S.replace("hi", "") if S == "": print("Yes") else: print("No")
S = str(input()) S1 = S.replace("hi", "") if S1 == "": print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,627
525,628
u141419468
python
p02747
s = input() ans = "No" for i in range(5): if s == "hi" * i: ans = "Yes" print(ans)
s = input() ans = "No" for i in range(1, 6): if s == "hi" * i: ans = "Yes" print(ans)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "call.arguments.add" ]
525,630
525,631
u886142147
python
p02747
s = str(input()) #print(s[0]+s[1]) hitati = "hi" for i in range(5): if s == hitati: print("Yes") exit() else: hitati += hitati print("No")
s = str(input()) #print(s[0]+s[1]) hitati = "hi" for i in range(5): if s == hitati: print("Yes") exit() else: hitati += "hi" print("No")
[]
525,635
525,636
u117078923
python
p02747
import sys input = sys.stdin.readline sys.setrecursionlimit(10000000) from collections import defaultdict from bisect import * mod = 10**9+7 S = input() for i in range(5): if 'hi' * (i+1) == S: print('Yes') exit() print('No')
import sys input = sys.stdin.readline sys.setrecursionlimit(10000000) from collections import defaultdict from bisect import * mod = 10**9+7 S = input()[:-1] for i in range(5): if 'hi' * (i+1) == S: print('Yes') exit() print('No')
[]
525,637
525,638
u393512980
python
p02747
s = input().split('i') h = s[:len(s)-1] space = s[len(s)-1] for j in h: if j =='h' and space == '': ans = 'Yes' else: ans = 'No' break print(ans)
s = input().split('i') h = s[:len(s)-1] space = s[len(s)-1] ans = 'No' for j in h: if j =='h' and space == '': ans = 'Yes' else: ans = 'No' break print(ans)
[ "assignment.add" ]
525,646
525,644
u479638406
python
p02747
s = input().split('i') h = s[:len(s)-1] space = s[len(s)-1] for j in h: if j =='h' and space == '': ans = 'Yes' else: ans = 'No' print(ans)
s = input().split('i') h = s[:len(s)-1] space = s[len(s)-1] ans = 'No' for j in h: if j =='h' and space == '': ans = 'Yes' else: ans = 'No' break print(ans)
[ "control_flow.break.add" ]
525,647
525,644
u479638406
python
p02747
S=input() if S.count("hi")*2==len(s): print("Yes") else: print("No")
S=input() if S.count("hi")*2==len(S): print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,666
525,667
u718411265
python
p02747
S = input() flag = 0 for i in range(len(S)): if i%2 == 0 and S[i] != 'h': flag = 1 if i%2 == 1 and S[i] != 'i': flag = 1 if flag == 0 or len(S)%2 == 1: print('No') else: print('Yes')
S = input() flag = 0 for i in range(len(S)): if i%2 == 0 and S[i] != 'h': flag = 1 if i%2 == 1 and S[i] != 'i': flag = 1 if flag == 1 or len(S)%2 == 1: print('No') else: print('Yes')
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
525,670
525,671
u137913818
python
p02747
s = input() if len(s) // 2 ==1: print('No') exit() if s == "hi"* (len(s) // 2): print('Yes') else: print('No')
s = input() if len(s) % 2 ==1: print('No') exit() if s == "hi"* (len(s) // 2): print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
525,689
525,690
u406721804
python
p02747
s = input() if len(s) // 2 ==1: print('Np') exit() if s == "hi"* (len(s) // 2): print('Yes') else: print('No')
s = input() if len(s) % 2 ==1: print('No') exit() if s == "hi"* (len(s) // 2): print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
525,691
525,690
u406721804
python
p02747
hitatistr = input() count = 0 flag = "ok" for i in hitatistr: if count % 2 == 0: if i != "h": flag = "ng" break else: if i != "i": flag = "ng" count = count + 1 if flag == "ok" and count >= 2 and count % 2 == 1: print("Yes") else: print("No")
hitatistr = input() count = 0 flag = "ok" for i in hitatistr: if count % 2 == 0: if i != "h": flag = "ng" break else: if i != "i": flag = "ng" count = count + 1 if flag == "ok" and count >= 2 and count % 2 == 0: print("Yes") else: print("No")
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
525,695
525,696
u482157295
python
p02747
import re S=input() pattern = '(hi)+' result = re.match(pattern, S) if result: print('Yes') else: print('No')
import re S=input() pattern = '^(hi)+$' result = re.match(pattern, S) if result: print('Yes') else: print('No')
[ "literal.string.change", "assignment.value.change" ]
525,697
525,698
u832871520
python
p02747
s = input() s.replace("hi", "") print("Yes" if s=="" else "No")
s = input() s=s.replace("hi", "") print("Yes" if s=="" else "No")
[ "assignment.add" ]
525,701
525,702
u854405453
python
p02747
S = input() flg = True for i in range(len(S)): if flg == True and S[i] == "h": flg = False continue elif flg == False and S[i] == "i": flg = True continue else: print("No") break else: if S == "": print("No") else: print("Yes")
S = input() flg = True for i in range(len(S)): if flg == True and S[i] == "h": flg = False continue elif flg == False and S[i] == "i": flg = True continue else: print("No") break else: if flg == False: print("No") else: print("Yes")
[ "identifier.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
525,707
525,708
u049297964
python
p02747
S = str(input()) if S == 'hi' or S == 'hihi' or S == 'hihihi' or S == 'hihihihi' or S == 'hihihihihihi': print ('Yes') else: print ('No')
S = str(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" ]
525,716
525,717
u263830634
python
p02747
s = input() s.replace('hi', '') if s: print('No') else: print('Yes')
s = input() s = s.replace('hi', '') if s: print('No') else: print('Yes')
[ "assignment.add" ]
525,737
525,738
u159994501
python
p02747
S = input() S_size = len(S) S_hi = S.count('hi') if S_size == S_hi: print('Yes') else: print('No')
S = input() S_size = len(S) S_hi = S.count('hi') if S_size == S_hi*2: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
525,739
525,740
u892308039
python
p02747
S=input() if len(S)%2 != 0: print("No") exit() for i in range(int(len(S)/2)): if S[i*2]!="h": print("No") exit() if S[i*2+1]!="i": Print("No") exit() print("Yes")
S=str(input()) if len(S)%2 != 0: print("No") exit() for i in range(int(len(S)/2)): if S[i*2]!="h": print("No") exit() if S[i*2+1]!="i": print("No") exit() print("Yes")
[ "call.add", "call.arguments.change", "identifier.change", "call.function.change", "io.output.change" ]
525,741
525,742
u090444091
python
p02747
S = input() if len(S) % 2 != 0: print("No") exit() for i in range(len(S)-1): if i % 2 == 0: if S[i] == "h": pass else: print("No") exit() else: if S[i] == "i": pass else: print("No") exit() pri...
S = input() if len(S) % 2 != 0: print("No") exit() for i in range(len(S)): if i % 2 == 0: if S[i] == "h": pass else: print("No") exit() else: if S[i] == "i": pass else: print("No") exit() print...
[ "expression.operation.binary.remove" ]
525,743
525,744
u572193732
python
p02747
hitachi = list(input()) if len(hitachi) % 2 == 1: print("NO") else: H = True for i in range(len(hitachi)): if i % 2 == 0: if hitachi[i] != "h": H = False else: if hitachi[i] != "i": H = False if H == True: print("YES") ...
hitachi = list(input()) if len(hitachi) % 2 == 1: print("No") else: H = True for i in range(len(hitachi)): if i % 2 == 0: if hitachi[i] != "h": H = False else: if hitachi[i] != "i": H = False if H == True: print("Yes") ...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,749
525,750
u441694890
python
p02747
S = input() length = len(S) if length % 2 == 0: if n.count('hi')==length/2: print("Yes") else: print("No") else: print("No")
S = input() length = len(S) if length % 2 == 0: if S.count('hi')==length/2: print("Yes") else: print("No") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,752
525,753
u329753128
python
p02747
S = input() X = ["hi" * i for i in range(5)] if S in X: print("Yes") else: print("No")
S = input() X = ["hi" * i for i in range(1, 5+1)] if S in X: print("Yes") else: print("No")
[ "call.arguments.add" ]
525,756
525,757
u942697937
python
p02747
S = list(input()) flug = True for i in range(0,len(S),2): if i+1 < len(S): st = S[i] + S[i + 1] if st != "hi": flug = False else: flug = False if flug == True: print("YES") else: print("NO")
S = list(input()) flug = True for i in range(0,len(S),2): if i+1 < len(S): st = S[i] + S[i + 1] if st != "hi": flug = False else: flug = False if flug == True: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,758
525,759
u821237744
python
p02747
s = str(input()) result = "No" for n in range(1,5): if 'hi'*n == s: result = "Yes" break print(result)
s = str(input()) result = "No" for n in range(1,6): if 'hi'*n == s: result = "Yes" break print(result)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,771
525,772
u478038957
python
p02747
s = input() s = s.replace("hi", "") if s: print("Yes") else: print("No")
s = input() s = s.replace("hi", "") if s == "": print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
525,773
525,774
u165200006
python
p02747
S = input() S2 = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi'] if S in S2: print('Yes') else: print('NO')
S = input() S2 = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi'] if S in S2: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,790
525,791
u042558137
python
p02747
import sys c = input() for i in range(5): if c == "hi"*i: print("Yes") sys.exit() print("No")
import sys c = input() for i in range(6): if c == "hi"*i: print("Yes") sys.exit() print("No")
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,794
525,795
u756988562
python
p02747
S=input() def No(): print("No") def Yes(): print("Yes") if len(S)%2!=0: No() if len(S)==0: No() if all([S[2*i:2*i+2]=="hi" for i in range(int(len(S)/2))]): Yes() else: No()
S=input() def No(): print("No") exit() def Yes(): print("Yes") exit() if len(S)%2!=0: No() if len(S)==0: No() if all([S[2*i:2*i+2]=="hi" for i in range(int(len(S)/2))]): Yes() else: No()
[ "call.add" ]
525,798
525,799
u334928930
python
p02747
S = input() for i in range(5): x = 'hi'*i if S == x: print('Yes') break; else: print('No')
S = input() for i in range(6): x = 'hi'*i if S == x: print('Yes') break; else: print('No')
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
525,811
525,812
u316464887
python
p02747
S = input() while len(S) >= 2: if S[0:1]== 'hi': S=S[2:] else: break if len(S)==0: print('Yes') else: print('No')
S = input() while len(S) >= 2: if S[0:2]== 'hi': S=S[2:] else: break if len(S)==0: print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
525,820
525,821
u246809151
python
p02747
S = input() while len(S) >= 2: if S[0:1]== 'hi': S==S[2:] else: break if len(S)==0: print('Yes') else: print('No')
S = input() while len(S) >= 2: if S[0:2]== 'hi': S=S[2:] else: break if len(S)==0: print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
525,822
525,821
u246809151
python
p02747
x=input() if x == 'hi': print('Yes') elif x == 'hihi': print('Yes') elif x == 'hihihi': print('Yes') elif x == 'hihihihi': print('Yes') elif x == 'hihihihihi': print('Yes') else: print('NO')
x=input() if x == 'hi': print('Yes') elif x == 'hihi': print('Yes') elif x == 'hihihi': print('Yes') elif x == 'hihihihi': print('Yes') elif x == 'hihihihihi': print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,829
525,830
u315125673
python
p02747
S=input() while len(S)>=2: if S[0:2]=='hi': S=S[2:] else: break if len(S)==0: print('YES') else: print('NO')
S=input() while len(S)>=2: if S[0:2]=='hi': S=S[2:] else: break if len(S)==0: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,833
525,834
u568576853
python
p02747
S=input() while len(S)>=2: if S[:2]=='hi': S=S[2:] else: break if len(S)==0: print('YES') else: print('NO')
S=input() while len(S)>=2: if S[0:2]=='hi': S=S[2:] else: break if len(S)==0: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,835
525,834
u568576853
python
p02747
S=input() h="hi" for i in range(5): if h*i==S: print("Yes") break else: print("No")
S=input() h="hi" for i in range(5): if h*(i+1)==S: print("Yes") break else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
525,838
525,839
u440161695
python
p02747
s = input() if len(s)&1 == 1: print("no") elif all(["hi" == s[i:i+2] for i in range(0, len(s), 2)]): print("yes") else: print("no")
s = input() if len(s)&1 == 1: print("No") elif all(["hi" == s[i:i+2] for i in range(0, len(s), 2)]): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
525,840
525,841
u693974737
python
p02747
S=input() hihihihi if(len(S)%2==0): for i in range(len(S)//2): if(S[2*i]!="h" or S[2*i+1]!="i"): print("No") break else: print("Yes") else: print("No")
S=input() if(len(S)%2==0): for i in range(len(S)//2): if(S[2*i]!="h" or S[2*i+1]!="i"): print("No") break else: print("Yes") else: print("No")
[]
525,844
525,845
u027561659
python
p02747
import re import sys s = input() l = re.split('(..)', s)[1::2] judge = [c=="hi" for c in l] if len(l) == 0: print("No") sys.exit() if len(l) %2 != 0: print("No") sys.exit() if all(judge): print("Yes") else: print("No")
import re import sys s = input() l = re.split('(..)', s)[1::2] judge = [c=="hi" for c in l] if len(l) == 0: print("No") sys.exit() if len(s) %2 != 0: print("No") sys.exit() if all(judge): print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
525,857
525,858
u770418337
python
p02747
import sys readline = sys.stdin.buffer.readline S = readline().strip() ans = 'No' for i in range(1, 8): if S == 'hi'*i: ans = 'Yes' print(ans)
import sys readline = sys.stdin.buffer.readline S = input() ans = 'No' for i in range(1, 8): if S == 'hi'*i: ans = 'Yes' print(ans)
[ "assignment.value.change", "identifier.change", "call.function.change" ]
525,877
525,878
u368780724
python
p02747
a='hi' b='' p=[] for i in range(6): b+=a p.append(a) s=input() print('Yes' if s in p else 'No')
a='hi' b='' p=[] for i in range(6): b+=a p.append(b) s=input() print('Yes' if s in p else 'No')
[ "identifier.change", "call.arguments.change" ]
525,893
525,894
u223904637
python
p02747
s=input() for i in range(6): if s=="hi"*i: print("Yes") print("No")
s=input() for i in range(6): if s=="hi"*i: print("Yes") exit() print("No")
[ "call.add" ]
525,921
525,922
u225388820
python
p02747
S = input() if len(S) == 1: print("No") exit() for i in range(len(S)): if i % 2 == 0: if S[i] != "h": print("No") exit() else: if 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: if S[i] != "h": print("No") exit() else: if S[i] != "i": print("No") exit() print("Yes")
[ "control_flow.branch.if.condition.change" ]
525,928
525,929
u025501820
python
p02747
import re def resolve(): str = input() if re.match('(hi)+', str): print("Yes") else: print("No") resolve()
import re def resolve(): str = input() if re.match('^(hi)+$', str): print("Yes") else: print("No") resolve()
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,932
525,933
u922172470
python
p02747
def resolve(): str = input() if re.match('(hi)+', str): print("Yes") else: print("No") resolve()
import re def resolve(): str = input() if re.match('^(hi)+$', str): print("Yes") else: print("No") resolve()
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,934
525,933
u922172470
python
p02747
#!/usr/bin/env python3 input = input() hitati = [ hi*i for i in range(1, 6) ] if input in hitati: print('Yes') else: print('No')
#!/usr/bin/env python3 input = input() hitati = [ 'hi'*i for i in range(1, 6) ] if input in hitati: print('Yes') else: print('No')
[]
525,941
525,942
u848701708
python
p02747
f=0 s=list(input()) if len(s)==1: f=1 else: for i in range(len(s)): if i%2==1: if s[i]!='i': f=1 break else: if s[i]!='h': f=1 break if f==0: print('Yes') else: print('No')
f=0 s=list(input()) if len(s)%2==1: f=1 else: for i in range(len(s)): if i%2==1: if s[i]!='i': f=1 break else: if s[i]!='h': f=1 break if f==0: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
525,958
525,959
u386944085
python
p02747
import re if re.match ("^(hi)+", input()): print ("Yes") else: print ("No")
import re if re.match ("^(hi)+$", input()): print ("Yes") else: print ("No")
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,960
525,961
u209313313
python
p02747
import re if re.match ("(hi)+", input()): print ("Yes") else: print ("No")
import re if re.match ("^(hi)+$", input()): print ("Yes") else: print ("No")
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,962
525,961
u209313313
python
p02747
import re if re.match ("(hi*)", input()): print ("Yes") else: print ("No")
import re if re.match ("^(hi)+$", input()): print ("Yes") else: print ("No")
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,963
525,961
u209313313
python
p02747
import re if re.match ("(hi+)", input()): print ("Yes") else: print ("No")
import re if re.match ("^(hi)+$", input()): print ("Yes") else: print ("No")
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
525,964
525,961
u209313313
python
p02747
s = input() if s == "hi" or s== "hihi" or s== "hihihi" or s =="hiihihihi" 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" ]
525,968
525,969
u700929101
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" ]
525,989
525,990
u602677143
python
p02747
import re if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
import re S = input() if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
[ "assignment.add" ]
525,995
525,996
u890601274
python
p02747
import re S = input() if re.match(r'^(hi)*',S): print('Yes') else: print('No')
import re S = input() if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
526,001
526,002
u806403461
python
p02747
import re S = input() if re.match(r'(hi)(hi)*',S): print('Yes') else: print('No')
import re S = input() if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
526,003
526,002
u806403461
python
p02747
import re S = input() if re.match(r'(hi)+',S): print('Yes') else: print('No')
import re S = input() if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
526,004
526,002
u806403461
python
p02747
import re S = input() if re.match(r'(hi)*',S): print('Yes') else: print('No')
import re S = input() if re.match(r'^(hi)+$',S): print('Yes') else: print('No')
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
526,005
526,002
u806403461
python
p02747
import re index = re.search(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,014
526,015
u678786307
python
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,016
526,015
u678786307
python
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,017
526,015
u678786307
python