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
p02779
import collections def main(): n = int(input()) a_list = list(map(int, input().split())) c = collections.Counter(a_list) ans = c.most_common(1) if ans[0][1] >= 2: print('No') else: print('Yes') if __name__ == '__main__': main()
import collections def main(): n = int(input()) a_list = list(map(int, input().split())) c = collections.Counter(a_list) ans = c.most_common(1) if ans[0][1] >= 2: print('NO') else: print('YES') if __name__ == '__main__': main()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,088
577,089
u624617831
python
p02779
n = int(input()) l_set = set(input().split()) if n == len(l_set): print("Yes") else: print("No")
n = int(input()) l_set = set(input().split()) if n == len(l_set): print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,094
577,095
u152614052
python
p02779
n = int(input()) nums = list(map(int,input().split())) c = 0 nums = sorted(nums) for i in range(n-1): if nums[i] == nums[i+1]: c += 1 break if c != 0: print('No') else: print('Yes')
n = int(input()) nums = list(map(int,input().split())) c = 0 nums = sorted(nums) for i in range(n-1): if nums[i] == nums[i+1]: c += 1 break if c != 0: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,096
577,097
u797550216
python
p02779
N = int(input()) A = list(map(int, input().split())) if len(set(A)) == len(A): print("Yes") else:print("No")
N = int(input()) A = list(map(int, input().split())) if len(set(A)) == len(A): print("YES") else:print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,098
577,099
u620238824
python
p02779
N = int(input()) lst = list(map(int, input().split())) sets = set(lst) if len(lst) == len(sets): print('Yes') else: print('No')
N = int(input()) lst = list(map(int, input().split())) sets = set(lst) if len(lst) == len(sets): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,100
577,101
u556225812
python
p02779
N = input() A = list(map(int, input().split())) print('Yes' if len(A) == len(set(A)) else 'No')
N = input() A = list(map(int, input().split())) print('YES' if len(A) == len(set(A)) else 'NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,111
577,112
u970407071
python
p02779
N = input() A = list(map(int, input().split())) print('Yes' if N == len(set(A)) else 'No')
N = input() A = list(map(int, input().split())) print('YES' if len(A) == len(set(A)) else 'NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change", "call.arguments.add" ]
577,113
577,112
u970407071
python
p02779
N = int(input()) A = list(map(str, input().split())) if len(set(A)) == N: print("Yes") else: print("No")
N = int(input()) A = list(map(str, input().split())) if len(set(A)) == N: print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,116
577,117
u845847173
python
p02779
from collections import Counter n = int(input()) c = Counter(map(int, input().split())) print("YES" if c.most_common(1)[1] <= 1 else "NO")
from collections import Counter n = int(input()) c = Counter(map(int, input().split())) print("YES" if c.most_common(1)[0][1] <= 1 else "NO")
[]
577,138
577,139
u627530854
python
p02779
import numpy as np from collections import Counter # 最頻値 def mode(list): c = Counter(list) freq_scores = c.most_common() max_count = freq_scores[0][1] modes = [] for num in freq_scores: if num[1] == max_count: modes.append(num[0]) return(modes) n = int(input()) a_list = list(map(int, input().split())) bit = 0 a_list.sort() for i in range(n - 1): if a_list[i] == a_list[i + 1]: bit = 1 print("NO") if bit == 0: print("YES")
import numpy as np from collections import Counter # 最頻値 def mode(list): c = Counter(list) freq_scores = c.most_common() max_count = freq_scores[0][1] modes = [] for num in freq_scores: if num[1] == max_count: modes.append(num[0]) return(modes) n = int(input()) a_list = list(map(int, input().split())) bit = 0 a_list.sort() for i in range(n - 1): if a_list[i] == a_list[i + 1]: bit = 1 print("NO") break if bit == 0: print("YES")
[ "control_flow.break.add" ]
577,140
577,141
u075304271
python
p02779
import sys from itertools import groupby def input(): return sys.stdin.readline()[:-1] def solve(): N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('Yes') else: print('No') if __name__ == "__main__": solve()
import sys from itertools import groupby def input(): return sys.stdin.readline()[:-1] def solve(): N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('YES') else: print('NO') if __name__ == "__main__": solve()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,148
577,149
u464244643
python
p02779
import sys msg = sys.stdin.readlines() a = [] for x in msg: a.append(x.replace('\n', '')) arra = a[1].split(' ') arra = [int(x) for x in arra] if arra == set(arra): print('YES') else: print('NO')
import sys msg = sys.stdin.readlines() a = [] for x in msg: a.append(x.replace('\n', '')) arra = a[1].split(' ') arra = [int(x) for x in arra] if len(arra) == len(set(arra)): print('YES') else: print('NO')
[ "control_flow.branch.if.condition.change", "call.add" ]
577,150
577,151
u541806319
python
p02779
length=input() #len-1 Narray=sorted(input().split()) n=0 while n<int(length)-2: if Narray[n] == Narray[n+1]: print("NO") break elif n==int(length)-2: print("YES") break else: n+=1
length=input() #len-1 Narray=sorted(input().split()) n=0 while n<int(length)-1: if Narray[n] == Narray[n+1]: print("NO") break elif n==int(length)-2: print("YES") break else: n+=1
[ "literal.number.integer.change", "control_flow.loop.condition.change" ]
577,152
577,153
u777241657
python
p02779
n=int(input()) a=sorted(list(map(int,input().split()))) unt=False for i in range(0,n-1): if a[i]==a[i+1]: unt=True if unt: print('No') else: print('Yes')
n=int(input()) a=sorted(list(map(int,input().split()))) unt=False for i in range(0,n-1): if a[i]==a[i+1]: unt=True if unt: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,162
577,163
u664907598
python
p02779
import sys N = int(input()) As = list(map(int, input().split())) As.sort() for i in range(N): for j in range(i + 1, N): if As[i] == As[j]: print('NO') sys.exit(0) if As[j] > As[i]: print('break!') break print('YES')
import sys N = int(input()) As = list(map(int, input().split())) As.sort() for i in range(N): for j in range(i + 1, N): if As[i] == As[j]: print('NO') sys.exit(0) if As[j] > As[i]: break print('YES')
[ "call.remove" ]
577,172
577,173
u759726213
python
p02779
from collections import Counter N=int(input()) A=list(map(int, input().split())) B=Counter(A) if len(A)==len(B): print('Yes') else: print('No')
from collections import Counter N=int(input()) A=list(map(int, input().split())) B=Counter(A) if len(A)==len(B): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,175
577,176
u958053648
python
p02779
n = int(input()) li = [int(x) for x in input().split()] nozoki = list(set(li)).sort() li.sort() if (nozoki == li): print("YES") else: print("NO")
n = int(input()) li = [int(x) for x in input().split()] nozoki = sorted(list(set(li))) li.sort() if (nozoki == li): print("YES") else: print("NO")
[ "call.add", "call.remove" ]
577,177
577,178
u590825760
python
p02779
r = 0 n = int(input()) a = sorted(list(map(int, input().split()))) for i in range(n - 1): if a[i] == a[i + 1]: r = 1 if r == 1: print("No") else: print("Yes")
r = 0 n = int(input()) a = sorted(list(map(int, input().split()))) for i in range(n - 1): if a[i] == a[i + 1]: r = 1 if r == 1: print("NO") else: print("YES")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,183
577,184
u970809473
python
p02779
from sys import stdin import sys #S,T = stdin.readline().rstrip().split() #A,B = [int(x) for x in stdin.readline().rstrip().split()] N = stdin.readline().rstrip().split() s = list(map(int,input().split())) dict={} for _,i in enumerate(s): #print( dict.get(i)) if dict.get(i)==None: dict[i]=1 else : print("No") sys.exit(0) print("Yes")
from sys import stdin import sys #S,T = stdin.readline().rstrip().split() #A,B = [int(x) for x in stdin.readline().rstrip().split()] N = stdin.readline().rstrip().split() s = list(map(int,input().split())) dict={} for _,i in enumerate(s): #print( dict.get(i)) if dict.get(i)==None: dict[i]=1 else : print("NO") sys.exit(0) print("YES")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,185
577,186
u396210538
python
p02779
n = int(input()) a = list(map(int, input().split())) a.sort() for i in range(n-1): if a[i]==a[i+1]: print("NO") break print("YES")
n = int(input()) a = list(map(int, input().split())) a.sort() for i in range(n-1): if a[i]==a[i+1]: print("NO") exit() print("YES")
[ "control_flow.break.remove", "control_flow.exit.add", "call.add" ]
577,191
577,192
u771167374
python
p02779
n = int(input()) a = list(map(int,input().split())) b = len(set(a)) if len(a)== len(b): print('YES') else: print('NO')
n = int(input()) a = list(map(int,input().split())) b = list(set(a)) if len(a)== len(b): print('YES') else: print('NO')
[ "assignment.value.change", "identifier.change", "call.function.change" ]
577,199
577,200
u437727817
python
p02779
a=int(input()) b=list(input().split()) c=sorted(b) count=0 for i in range (a-1): if c[i]==c[i+1]: count=1 break if count==1: print("No") else:print("Yes")
a=int(input()) b=list(input().split()) c=sorted(b) count=0 for i in range (a-1): if c[i]==c[i+1]: count=1 break if count==1: print("NO") else:print("YES")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,201
577,202
u530883476
python
p02779
n = int(input()) a = set(map(int, input().split())) if len(list(a)) == n: print('Yes') else: print('No')
n = int(input()) a = set(map(int, input().split())) if len(a) == n: print('YES') else: print('NO')
[ "call.remove", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,217
577,218
u651109406
python
p02779
n = int(input()) a = set(map(int, input().split())) if len(a) == n: print('Yes') else: print('No')
n = int(input()) a = set(map(int, input().split())) if len(a) == n: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,219
577,218
u651109406
python
p02779
n = int(input()) a = set(map(int, input().split())) if len(a) == n: print('Yes') else: print('No')
n = int(input()) a = set(map(int, input().split())) if len(a) == n: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,220
577,218
u651109406
python
p02779
n = int(input()) a = list(map(int, input().split())) b = set(a) print('YES' if len(a) == len(b) else 'No')
n = int(input()) a = list(map(int, input().split())) b = set(a) print('YES' if len(a) == len(b) else 'NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,223
577,224
u393881437
python
p02779
N=int(input()) num=list(map(int,input().split())) #print(num) num.sort() ans=0 for i in range(N-1): if num[i]==num[i+1]: ans=1 break if ans==0: print("Yes") if ans==1: print("No")
N=int(input()) num=list(map(int,input().split())) #print(num) num.sort() ans=0 for i in range(N-1): if num[i]==num[i+1]: ans=1 break if ans==0: print("YES") if ans==1: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,229
577,230
u996731299
python
p02779
n=int(input()) lst=list(map(int,input().split())) dic_a={} for i in range(len(lst)): if lst[i] in dic_a: dic_a[lst[i]]=1 else: print("NO") break else:print("YES")
n=int(input()) lst=list(map(int,input().split())) dic_a={} for i in range(len(lst)): if lst[i] not in dic_a: dic_a[lst[i]]=1 else: print("NO") break else:print("YES")
[ "control_flow.branch.if.condition.change" ]
577,233
577,234
u123745130
python
p02779
n=int(input()) lst=list(map(int,input().split())) dic_a={} for i in range(len(lst)): if lst[i] in dic_a: dic_a[lst[i]]=1 else: print("NO") else:print("YES")
n=int(input()) lst=list(map(int,input().split())) dic_a={} for i in range(len(lst)): if lst[i] not in dic_a: dic_a[lst[i]]=1 else: print("NO") break else:print("YES")
[ "control_flow.branch.if.condition.change", "control_flow.break.add" ]
577,235
577,234
u123745130
python
p02779
n = int(input()) a = list(map(int,input().split())) if len(a) == len(set(a)): print('Yes') else: print('No')
n = int(input()) a = list(map(int,input().split())) if len(a) == len(set(a)): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,236
577,237
u546338822
python
p02779
n = int(input()) a = list(map(int,input().split())) if len(a) == len(set(a)): print('Yes') else: print('No')
n = int(input()) a = list(map(int,input().split())) if len(a) == len(set(a)): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,238
577,237
u546338822
python
p02779
n = int(input()) aList = list(input().split()) print("Yes" if len(aList) == len(set(aList)) else "No")
n = int(input()) aList = list(input().split()) print("YES" if len(aList) == len(set(aList)) else "NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,244
577,245
u395202850
python
p02779
n=int(input()) a=list(map(int,input().split())) a.sort() ans='Yes' for i in range(1,len(a)): if a[i-1]==a[i]: ans="No" break print(ans)
n=int(input()) a=list(map(int,input().split())) a.sort() ans='YES' for i in range(1,len(a)): if a[i-1]==a[i]: ans="NO" break print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
577,248
577,249
u490489966
python
p02779
N = int(input()) *l = map(int, input().split()) print("YES" if len(l)==len(set(l)) else "NO")
N = int(input()) *l, = map(int, input().split()) print("YES" if len(l)==len(set(l)) else "NO")
[]
577,257
577,258
u690536347
python
p02779
n = int(input()) a = list(input().split()) a = set(a) if n == len(a): print("Yes") else: print("No")
n = int(input()) a = list(input().split()) a = set(a) if n == len(a): print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,259
577,260
u413165887
python
p02779
def main(): n = int(input()) a = list(map(int, input().split())) tmp = {} is_unique = True for i in range(n): if not a[i] in tmp: is_unique = False break tmp[a[i]] = a[i] if is_unique: print("YES") else: print("NO") if __name__=="__main__": main()
def main(): n = int(input()) a = list(map(int, input().split())) tmp = {} is_unique = True for i in range(n): if a[i] in tmp: is_unique = False break tmp[a[i]] = a[i] if is_unique: print("YES") else: print("NO") if __name__=="__main__": main()
[ "control_flow.branch.if.condition.change" ]
577,261
577,262
u955547613
python
p02779
num = int(input()) num_list = list(map(int,input().split())) base = len(set(num_list)) if base == num: ans = "No" elif not base == num: ans = "Yes" print(ans)
num = int(input()) num_list = list(map(int,input().split())) base = len(set(num_list)) if base == num: ans = "YES" elif not base == num: ans = "NO" print(ans)
[ "literal.string.change", "assignment.value.change" ]
577,263
577,264
u515052479
python
p02779
num = int(input()) num_list = list(map(int,input().split())) base = len(set(num_list)) if base == num: ans = "Yes" elif not base == num: ans = "No" print(ans)
num = int(input()) num_list = list(map(int,input().split())) base = len(set(num_list)) if base == num: ans = "YES" elif not base == num: ans = "NO" print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
577,265
577,264
u515052479
python
p02779
from collections import Counter n = int(input()) a = list(map(int,input().strip().split())) if Counter(a).most_common(1)[0][1] != 1: print('No') else: print('Yes')
from collections import Counter n = int(input()) a = list(map(int,input().strip().split())) if Counter(a).most_common(1)[0][1] != 1: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,277
577,278
u628581330
python
p02779
n = int(input()) a = list(map(int, input().split())) b = set(a) if len(a) == len(b): print('Yes') else: print('No')
n = int(input()) a = list(map(int, input().split())) b = set(a) if len(a) == len(b): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,283
577,284
u193222738
python
p02779
N = int(input()) A = list(map(int, input().split())) n = 0 A.sort() for i in range(N-1): if A[i] == A[i+1]: print('NO') break else: n += 1 if n != 0: print('YES')
N = int(input()) A = list(map(int, input().split())) n = 0 A.sort() for i in range(N-1): if A[i] == A[i+1]: print('NO') break else: n += 1 if n == N-1: print('YES')
[ "control_flow.branch.if.condition.change" ]
577,285
577,286
u352402050
python
p02779
n = int(input()) arr = list(map(int, input().split())) arr.sort() ans = "Yes" for i in range(n-1): if arr[i] == arr[i+1]: ans = "No" break print(ans)
n = int(input()) arr = list(map(int, input().split())) arr.sort() ans = "YES" for i in range(n-1): if arr[i] == arr[i+1]: ans = "NO" break print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
577,287
577,288
u763249708
python
p02779
n = int(input()) a = list(map(int, input().split())) ans = "Yes" if len(a) == len(set(a)) else "No" print(ans)
n = int(input()) a = list(map(int, input().split())) ans = "YES" if len(a) == len(set(a)) else "NO" print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
577,294
577,295
u470735879
python
p02779
n = input() a = list(input().split()) b = set(a) if len(a) == len(b): print(YES) else: print(NO)
n = input() a = list(input().split()) b = set(a) if len(a) == len(b): print("YES") else: print("NO")
[ "call.arguments.change" ]
577,296
577,297
u566297428
python
p02779
n = input() a = list(input().split()) b = set(a) if len(a) == len(b): print(YES) else: print(NO)
n = input() a = list(input().split()) b = set(a) if len(a) == len(b): print("YES") else: print("NO")
[ "call.arguments.change" ]
577,298
577,297
u566297428
python
p02779
n=int(input()) a=[int(x) for x in input().split()] if len(set(a))!=len(a): print("No") else: print("Yes")
n=int(input()) a=[int(x) for x in input().split()] if len(set(a))!=len(a): print("NO") else: print("YES")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,299
577,300
u829364446
python
p02779
n=int(input()) a=sorted(list(map(int,input().split()))) ans='YES' for i in range(n): if a[i]==a[i+1]: ans='NO' if ans=='NO': break print(ans)
n=int(input()) a=sorted(list(map(int,input().split()))) ans='YES' for i in range(n-1): if a[i]==a[i+1]: ans='NO' if ans=='NO': break print(ans)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
577,303
577,304
u274635633
python
p02779
N = int(input()) inList = list(map(int, input().split())) inList.sort() noFlag = 0 for indx in range(len(inList) - 1): if inList[indx] == inList[indx + 1]: print("No") noFlag = 1 break if noFlag == 0: print("Yes")
N = int(input()) inList = list(map(int, input().split())) inList.sort() noFlag = 0 for indx in range(len(inList) - 1): if inList[indx] == inList[indx + 1]: print("NO") noFlag = 1 break if noFlag == 0: print("YES")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,307
577,308
u161712560
python
p02779
from collections import Counter # Initializing variables n = int(input()) ai = list(map(int, input().split())) c = max(Counter(ai).values()) # Calculating if the input is pairwise distinct or not if c > 1: print('No') else: print('Yes')
from collections import Counter # Initializing variables intNums = int(input()) intList = list(map(int, input().split())) c = max(Counter(intList).values()) # Calculating if the input is pairwise distinct or not if c > 1: print('NO') else: print('YES') # Check out my Youtube channel! https://www.youtube.com/channel/UCMOKVyAbTZOpKikTrX5dy_A
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "call.arguments.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
577,309
577,310
u928480992
python
p02779
from collections import Counter # Initializing variables n = int(input()) ai = list(map(int, input().split())) c = max(Counter(ai).values()) # Calculating if the input is pairwise distinct or not if c > 1: print('No') else: print('Yes')
from collections import Counter # Initializing variables n = int(input()) ai = list(map(int, input().split())) c = max(Counter(ai).values()) # Calculating if the input is pairwise distinct or not if c > 1: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,309
577,311
u928480992
python
p02779
n=input() t=input().split() if len(set(t))==n: print("YES") else: print("NO")
n=int(input()) t=input().split() if len(set(t))==n: print("YES") else: print("NO")
[ "call.add", "call.arguments.change" ]
577,319
577,320
u085595890
python
p02779
import collections N = int(input()) l = list(map(int, input().split())) c = collections.Counter(l) if len(c) == len(l): print("YES") else: print("No")
import collections N = int(input()) l = list(map(int, input().split())) c = collections.Counter(l) if len(c) == len(l): print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,321
577,322
u686713618
python
p02779
n = int(input()) A = [int(e) for e in input().split()] if length(set(A)) == length(A): print("YES") else: print("NO")
n = int(input()) A = [int(e) for e in input().split()] if len(set(A)) == len(A): print("YES") else: print("NO")
[ "identifier.change", "call.function.change", "control_flow.branch.if.condition.change" ]
577,325
577,326
u975820355
python
p02779
n = int(input()) a_list = list(map(int,input().split())) a_set = set(a_slit) if len(a_list) == len(set): print('YES') else: print('NO')
n = int(input()) a_list = list(map(int,input().split())) a_set = set(a_list) if len(a_list) == len(a_set): print('YES') else: print('NO')
[ "assignment.value.change", "identifier.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
577,341
577,342
u192154323
python
p02779
import collections N = int(input()) A = list(map(int, input().split())) c = collections.Counter(A) if c.most_common()[0][1] > 2: print('YES') else: print('NO')
import collections N = int(input()) A = list(map(int, input().split())) c = collections.Counter(A) if c.most_common()[0][1] >= 2: print('NO') else: print('YES')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
577,345
577,346
u681811488
python
p02779
a = int(input()) b = list(map(int,input().split())) c = set(b) if len(b) == len(c): print("Yes") else: print("No")
a = int(input()) b = list(map(int,input().split())) c = set(b) if len(b) == len(c): print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,349
577,350
u613922299
python
p02779
n = int(input()) a = set((list(map(int, input().split())))) if len(a)==n: print('Yes') else: print('No')
n = int(input()) a = set((list(map(int, input().split())))) if len(a)==n: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,351
577,352
u477650749
python
p02779
N=int(input()) L=list(map(int,input().split())) if N==set(L): print("YES") else: print("NO")
N=int(input()) L=list(map(int,input().split())) if N==len(set(L)): print("YES") else: print("NO")
[ "control_flow.branch.if.condition.change", "call.add" ]
577,355
577,356
u527993431
python
p02779
n=int(input()) a=list(map(int,input().split())) b=len(set(a)) if n==b: print('Yes') else: print('No')
n=int(input()) a=list(map(int,input().split())) b=len(set(a)) if n==b: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,359
577,360
u576917603
python
p02779
def has_duplicates(seq): return len(seq) != len(set(seq)) n =int(input()) a =list(map(int, input().split())) flg = has_duplicates(a) if flg: print('YES') else: print('NO')
def has_duplicates(seq): return len(seq) != len(set(seq)) n =int(input()) a =list(map(int, input().split())) flg = has_duplicates(a) if not flg: print('YES') else: print('NO')
[ "control_flow.branch.if.condition.change" ]
577,366
577,367
u378082660
python
p02779
N = int(input()) A = list(map(int, input().split())) A.sort() for i in nrange(N-1): if A[i] == A[i+1]: print("NO") break else: print('YES')
N = int(input()) A = list(map(int, input().split())) A.sort() for i in range(N-1): if A[i] == A[i+1]: print("NO") break else: print('YES')
[ "identifier.change", "call.function.change" ]
577,368
577,369
u078932560
python
p02779
n = int(input()) *a, = map(int, input().split()) print("Yes" if n == len(set(a)) else "No")
n = int(input()) *a, = map(int, input().split()) print("YES" if n == len(set(a)) else "NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,370
577,371
u746419473
python
p02779
N=int(input()) a=list(map(int,input().split())) a.sort() flg=0 for i in range(1,N-1): if(a[i]==a[i-1]): flg=1 if flg==1: print("NO") else: print("YES")
N=int(input()) a=list(map(int,input().split())) a.sort() flg=0 for i in range(1,N): if(a[i]==a[i-1]): flg=1 if flg==1: print("NO") else: print("YES")
[ "expression.operation.binary.remove" ]
577,379
577,380
u731603651
python
p02779
N = int(input()) A = list(map(int, input().split())) A.sort() # print(A) for i in range(N // 2 + 1): # print(A[i]) # print(A[i+1]) if A[i] == A[i+1]: print("NO") exit() elif A[-1-i] == A[-2-i]: print("NO") exit() print("YES")
N = int(input()) A = list(map(int, input().split())) A.sort() # print(A) # print(N//2) for i in range(N // 2): # print(i) # print(A[i]) # print(A[i+1]) if A[i] == A[i+1]: print("NO") exit() elif A[-1-i] == A[-2-i]: print("NO") exit() print("YES")
[ "expression.operation.binary.remove" ]
577,385
577,386
u759938562
python
p02779
N = int(input()) A = list(map(int, input().split())) A.sort() print(A) for i in range(N // 2 + 1): # print(A[i]) # print(A[i+1]) if A[i] == A[i+1]: print("NO") exit() elif A[-1-i] == A[-2-i]: print("NO") exit() print("YES")
N = int(input()) A = list(map(int, input().split())) A.sort() # print(A) # print(N//2) for i in range(N // 2): # print(i) # print(A[i]) # print(A[i+1]) if A[i] == A[i+1]: print("NO") exit() elif A[-1-i] == A[-2-i]: print("NO") exit() print("YES")
[ "call.remove", "expression.operation.binary.remove" ]
577,387
577,386
u759938562
python
p02779
def has_duplicates(seq): if len(seq) != len(set(seq)): return "No" else: return "Yes" N = int(input()) A = input().split() print(has_duplicates(A))
def has_duplicates(seq): if len(seq) != len(set(seq)): return "NO" else: return "YES" N = int(input()) A = input().split() print(has_duplicates(A))
[ "literal.string.change", "literal.string.case.change", "function.return_value.change" ]
577,401
577,402
u163529815
python
p02779
n = int(input()) a = set(input().split()) print('Yes' if len(a) == n else 'No')
n = int(input()) a = set(input().split()) print('YES' if len(a) == n else 'NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,415
577,416
u583455650
python
p02779
N = int(input()) A = list(map(int, input().split())) B = A if len(B) == len(list(set(A))): print("Yes") else: print("No")
N = int(input()) A = list(map(int, input().split())) B = A if len(B) == len(list(set(A))): print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,420
577,421
u498575211
python
p02779
from sys import stdin def get_result(data): N, A = data[0], data[1] return 'Yes' if len(list(set(A))) == N[0] else 'NO' if __name__ == '__main__': raw_data = [val.rstrip('\n') for val in stdin.readlines()] data = [list(map(int, val.split(' '))) for val in raw_data] result = get_result(data) print(result)
from sys import stdin def get_result(data): N, A = data[0], data[1] return 'YES' if len(set(A)) == N[0] else 'NO' if __name__ == '__main__': raw_data = [val.rstrip('\n') for val in stdin.readlines()] data = [list(map(int, val.split(' '))) for val in raw_data] result = get_result(data) print(result)
[ "literal.string.change", "literal.string.case.change", "function.return_value.change", "call.remove", "call.arguments.change" ]
577,427
577,428
u659302753
python
p02779
n=int(input()) a=set(map(int,input().split())) print("YES") if len(a)==n else print("No")
n=int(input()) a=set(map(int,input().split())) print("YES") if len(a)==n else print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,436
577,437
u507113442
python
p02779
n=int(input()) a=set(map(int,input().split())) print("Yes") if len(a)==n else print("No")
n=int(input()) a=set(map(int,input().split())) print("YES") if len(a)==n else print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,438
577,437
u507113442
python
p02779
n=int(input()) d=dict() s=list(map(int,input().split())) for i in s: if i in d: d[i]=2 else: d[i]=1 if 2 in d.values(): print("YES") else: print("NO")
n=int(input()) d=dict() s=list(map(int,input().split())) for i in s: if i in d: d[i]=2 else: d[i]=1 if 2 in d.values(): print("NO") else: print("YES")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
577,439
577,440
u859897687
python
p02779
n=input() arr=list(map(int,input().split())) arr=sorted(arr) for i in range(n-1): if arr[i]==arr[i+1]: print('NO') break else: print('YES')
n=int(input()) arr=list(map(int,input().split())) arr=sorted(arr) for i in range(n-1): if arr[i]==arr[i+1]: print('NO') break else: print('YES')
[ "call.add", "call.arguments.change" ]
577,455
577,456
u163320134
python
p02779
n=int(input()) List=list(map(int,input().split())) Set=set() for i in range(len(List)): Set.add(List[i]) if len(Set)==n : print("Yes") else : print("No")
n=int(input()) List=list(map(int,input().split())) Set=set() for i in range(len(List)): Set.add(List[i]) if len(Set)==n : print("YES") else : print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,461
577,462
u240768672
python
p02779
import sys n = int(input()) a = sorted(list(map(lambda x: int(x),input().split()))) for i in range(n - 1): if a[i] == a[i+1] : print('NO') sys.exit() print('Yes')
import sys n = int(input()) a = sorted(list(map(lambda x: int(x),input().split()))) for i in range(n - 1): if a[i] == a[i+1] : print('NO') sys.exit() print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,463
577,464
u907668975
python
p02779
n = int(input()) a = list(map(int, input().split())) a.sort() bef = a[0] for i in range(1, n): if a[i] == bef: print('NO') exit(0) print('YES')
n = int(input()) a = list(map(int, input().split())) a.sort() bef = a[0] for i in range(1, n): if a[i] == bef: print('NO') exit(0) bef = a[i] print('YES')
[ "assignment.add" ]
577,465
577,466
u693570218
python
p02779
N=int(input()) A=list(map(int,input().split())) tmp=set(A) tmp=list(tmp) if len(tmp)==len(A): print ("Yes") else: print ("No")
N=int(input()) A=list(map(int,input().split())) tmp=set(A) tmp=list(tmp) if len(tmp)==len(A): print ("YES") else: print ("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,467
577,468
u280853184
python
p02779
n = int(input()) N = list(map(int,input().split())) N.sort() for i in range(0,n-1): if N[i] == N[i+1]: print('No') break else: print('Yes')
n = int(input()) N = list(map(int,input().split())) N.sort() for i in range(0,n-1): if N[i] == N[i+1]: print('NO') break else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,478
577,479
u270825463
python
p02779
n = int(input()) N = list(map(int,input().split())) N.sort() for i in range(0,n-1): if N[i] == N[i+1]: print('No') break else: print('Yes')
n = int(input()) N = list(map(int,input().split())) N.sort() for i in range(0,n-1): if N[i] == N[i+1]: print('NO') break else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,480
577,479
u270825463
python
p02779
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(set(A)) == len(N): print('Yes') else: print('No')
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('YES') else: print('NO')
[ "call.remove", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,487
577,488
u230900948
python
p02779
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('Yes') else: print('No')
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,489
577,488
u230900948
python
p02779
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(A) == N: print('Yes') else: print('No')
if __name__ == "__main__": N = int(input()) A = list(map(int, input().split())) if len(set(A)) == N: print('YES') else: print('NO')
[ "control_flow.branch.if.condition.change", "call.add", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,490
577,488
u230900948
python
p02779
# coding: utf-8 # Your code here! N = int(input()) A = list(map(int, input().split())) if len(A) == len(set(A)): print('Yes') else: print('No')
# coding: utf-8 # Your code here! N = int(input()) A = list(map(int, input().split())) if len(A) == len(set(A)): print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,491
577,492
u671252250
python
p02779
n = int(input()) data = list(map(int, input().split())) data.sort() ans = "Yes" for i in range(len(data) - 1): if data[i] == data[i+1]: ans = "No" break print(ans)
n = int(input()) data = list(map(int, input().split())) data.sort() ans = "YES" for i in range(len(data) - 1): if data[i] == data[i+1]: ans = "NO" break print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
577,493
577,494
u534308356
python
p02779
def main(): n = input() an = set(map(int,input().split())) if n == len(an): print('YES') else: print('NO') if __name__ == '__main__': main() ''' 6 4 1 3 1 6 2 '''
def main(): n = int(input()) an = set(map(int,input().split())) if n == len(an): print('YES') else: print('NO') if __name__ == '__main__': main() ''' 6 4 1 3 1 6 2 '''
[ "call.add", "call.arguments.change" ]
577,498
577,499
u383416302
python
p02779
n = input() a = [int(x) for x in input().split(' ')] distinct = True dic = {} for x in a: if x in dic: distinct = False break dic[x] = True if distinct: print("Yes") else: print("No")
n = input() a = [int(x) for x in input().split(' ')] distinct = True dic = {} for x in a: if x in dic: distinct = False break dic[x] = True if distinct: print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,504
577,505
u829932632
python
p02779
n = input() a = [int(x) for x in input().split(' ')] distinct = True dic = {} for x in a: if x in dic: distinct = False break dic[x] = True if distinct: print("YES") else: print("NN")
n = input() a = [int(x) for x in input().split(' ')] distinct = True dic = {} for x in a: if x in dic: distinct = False break dic[x] = True if distinct: print("YES") else: print("NO")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
577,506
577,505
u829932632
python
p02779
N = int(input()) A = [int(x) for x in input().split()] # N=6 # A = [4,1,3,1,6,2] if N != len(set(A)): print('YES') else: print('NO')
N = int(input()) A = [int(x) for x in input().split()] # N=6 # A = [4,1,3,1,6,2] if N == len(set(A)): print('YES') else: print('NO')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
577,511
577,512
u178110837
python
p02779
N = int(input()) A = [int(x) for x in input().split()] # N=6 # A = [4,1,3,1,6,2] if N != len(set(A)): print('YES') else: print('NO')
N = int(input()) A = [int(x) for x in input().split()] # N=6 # A = [4,1,3,1,6,2] if N == len(set(A)): print('YES') else: print('NO')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
577,511
577,513
u178110837
python
p02779
N = int(input()) A = list(map(int, input().split())) B = set(list) if len(A) == len(B): print("YES") else: print("NO")
N = int(input()) A = list(map(int, input().split())) B = set(A) if len(A) == len(B): print("YES") else: print("NO")
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
577,527
577,528
u534953209
python
p02779
N = int(input()) A =list(map(int,input())) A.sort() for i in range(N-1): if A[i] == A[i+1]: print('NO') exit() print('YES')
N = int(input()) A =list(map(int,input().split())) A.sort() for i in range(N-1): if A[i] == A[i+1]: print('NO') exit() print('YES')
[ "call.add" ]
577,531
577,532
u457423258
python
p02779
import sys def main(): # sys.stdin = open('input154c.txt') n = int(input()) a = list(map(int, input().split())) if len(a) == len(set(a)): print('Yes') else: print('No') if __name__ == '__main__': main()
import sys def main(): # sys.stdin = open('input154c.txt') n = int(input()) a = list(map(int, input().split())) if len(a) == len(set(a)): print('YES') else: print('NO') if __name__ == '__main__': main()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,557
577,558
u946433121
python
p02779
import sys read = sys.stdin.buffer.read input = sys.stdin.buffer.readline inputs = sys.stdin.buffer.readlines # mod=10**9+7 # rstrip().decode('utf-8') # map(int,input().split()) # import numpy as np def main(): n=int(input()) A=list(map(int,input().split())) A.sort() for i in range(n-1): if A[i]==A[i+1]: print("No") exit(0) print("YES") if __name__ == "__main__": main()
import sys read = sys.stdin.buffer.read input = sys.stdin.buffer.readline inputs = sys.stdin.buffer.readlines # mod=10**9+7 # rstrip().decode('utf-8') # map(int,input().split()) # import numpy as np def main(): n=int(input()) A=list(map(int,input().split())) A.sort() for i in range(n-1): if A[i]==A[i+1]: print("NO") exit(0) print("YES") if __name__ == "__main__": main()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,561
577,562
u477977638
python
p02779
N=int(input()) As=[int(i) for i in range(N)] if len(list(set(As)))!=len(As): print("NO") else: print("YES")
N=int(input()) As=[int(i) for i in input().split()] if len(list(set(As)))!=len(As): print("NO") else: print("YES")
[ "assignment.value.change", "identifier.change", "call.function.change", "control_flow.loop.range.bounds.upper.change", "call.arguments.change", "call.add" ]
577,587
577,588
u419917326
python
p02779
n=int(input()) A=list(map(int,input(),split())) print("YES" if len(list(set(A)))==len(A) else "NO")
n=int(input()) A=list(map(int,input().split())) print("YES" if len(set(A))==len(A) else "NO")
[ "assignment.value.change", "call.arguments.change", "call.remove" ]
577,598
577,599
u023229441
python
p02779
n=int(input()) A=list(map(int,input(),split())) print("YES" if len(set(A))==len(A) else "NO")
n=int(input()) A=list(map(int,input().split())) print("YES" if len(set(A))==len(A) else "NO")
[ "assignment.value.change", "call.arguments.change" ]
577,600
577,599
u023229441
python
p02779
n=int(input()) A=list(int,input(),split()) print("YES" if len(set(A))==len(A) else "NO")
n=int(input()) A=list(map(int,input().split())) print("YES" if len(set(A))==len(A) else "NO")
[ "call.arguments.add", "assignment.value.change", "call.arguments.change" ]
577,601
577,599
u023229441
python
p02779
n = int(input()) a = [int(x) for x in input().split()] a.sort() flag = 0 for i in range(n-1): if a[i] == a[i+1]: flag = 1 if flag: print('No') else: print('Yes')
n = int(input()) a = [int(x) for x in input().split()] a.sort() flag = 0 for i in range(n-1): if a[i] == a[i+1]: flag = 1 if flag: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,620
577,621
u547748135
python
p02779
n = int(input()) a = list(int(x) for x in input().split()) x = 0 b = a.reverse() for i in range(n-1): if b[-1] - b[-2] == 0: print("NO") x = 1 break b.pop() if x == 0: print("YES")
n = int(input()) a = list(int(x) for x in input().split()) x = 0 a.sort() for i in range(n-1): if a[-1] - a[-2] == 0: print("NO") x = 1 break a.pop() if x == 0: print("YES")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
577,626
577,627
u768174784
python
p02779
n = int(input()) a = list(int(x) for x in input().split()) x = 0 a.reverse() for i in range(n-1): if a[0] - a[1] == 0: print("NO") x = 1 break a.pop(0) if x == 0: print("YES")
n = int(input()) a = list(int(x) for x in input().split()) x = 0 a.sort() for i in range(n-1): if a[-1] - a[-2] == 0: print("NO") x = 1 break a.pop() if x == 0: print("YES")
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "expression.operation.unary.add", "call.arguments.change" ]
577,628
577,627
u768174784
python