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
9 values
p02779
import sys N = int(input()) numlist = list(map(int, input().split())) numlist.sort() for i in range(N-1): if numlist[i] == numlist[i+1]: print('No') sys.exit() print('Yes')
import sys N = int(input()) numlist = list(map(int, input().split())) numlist.sort() for i in range(N-1): if numlist[i] == numlist[i+1]: print('NO') sys.exit() print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
576,937
576,938
u904081717
python
p02779
from collections import Counter n = int(input()) a = list(map(int,input().split())) c = Counter(a) if c.most_common()[0][1] == 1: print("Yes") else: print("No")
from collections import Counter n = int(input()) a = list(map(int,input().split())) c = Counter(a) if c.most_common()[0][1] == 1: print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
576,942
576,943
u015418292
python
p02779
from collections import Counter n = int(input()) a = list(map(int.input().split())) c = Counter(a) if c.most_common()[0][1] == 1: print("Yes") else: print("No")
from collections import Counter n = int(input()) a = list(map(int,input().split())) c = Counter(a) if c.most_common()[0][1] == 1: print("YES") else: print("NO")
[ "misc.typo", "assignment.value.change", "call.arguments.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
576,944
576,943
u015418292
python
p02779
n = int(input()) #s = [input().split() for i in range(n)] s = list(map(int, input().split())) print(s) t = set(s) if len(t) == len(s): print("YES") else: print("NO")
n = int(input()) #s = [input().split() for i in range(n)] s = list(map(int, input().split())) #print(s) t = set(s) if len(t) == len(s): print("YES") else: print("NO")
[ "call.remove" ]
576,958
576,959
u431484963
python
p02779
n = int(input()) print("Yes" if len(set(input().split())) == n else "No")
n = int(input()) print("YES" if len(set(input().split())) == n else "NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
576,980
576,981
u167681750
python
p02779
n = int(input()) a = list(map(int, input().split())) print("Yes") if len(a) == len(set(a)) else print("No")
n = int(input()) a = list(map(int, input().split())) print("YES") if len(a) == len(set(a)) else print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
576,984
576,985
u392058721
python
p02779
from collections import Counter import sys n = int(input()) l = sys.stdin.read().split() c = counter(l) m = max(c.values()) if(m==1): print("YES") else: print("NO")
from collections import Counter import sys n = int(input()) l = sys.stdin.read().split() c = Counter(l) m = max(c.values()) if(m==1): print("YES") else: print("NO")
[ "assignment.value.change", "identifier.change", "call.function.change" ]
576,991
576,992
u273262677
python
p02779
from collections import Counter import sys n = int(input()) l = sys.stdin.read().split() c = counter(l) m = max(c.value()) if(m==1): print("YES") else: print("NO")
from collections import Counter import sys n = int(input()) l = sys.stdin.read().split() c = Counter(l) m = max(c.values()) if(m==1): print("YES") else: print("NO")
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change" ]
576,993
576,992
u273262677
python
p02779
N = int(input()) A = list(map(int,input().split())) for i in range(N): 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): if A[i] == A[i-1]: print("NO") break else: print("YES")
[]
577,002
577,003
u758475901
python
p02779
N=int(input()) data=list(map(int, input().split(' '))) A=len(data) data=list(set(data)) B=len(data) if A==B: print('Yes') else: print('No')
N=int(input()) data=list(map(int, input().split(' '))) A=len(data) data=list(set(data)) B=len(data) if A==B: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,021
577,022
u401341173
python
p02779
input();a=list(map(int,input().split()));print("YNEOS"[len(A)>len(set(A))::2])
input();A=list(map(int,input().split()));print("YNEOS"[len(A)>len(set(A))::2])
[ "assignment.variable.change", "identifier.change" ]
577,025
577,026
u570944601
python
p02779
import collections n = int(input()) a = list(map(int, input().split())) a_dict = collections.Counter(a) if max(a_dict.values()) > 1: print('No') else: print('Yes')
import collections n = int(input()) a = list(map(int, input().split())) a_dict = collections.Counter(a) if max(a_dict.values()) > 1: print('NO') else: print('YES')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,037
577,038
u186729829
python
p02779
a=int(input()) b=list(map(int, input().split())) if len(seq) != len(set(seq)): print('NO') else: print('YES')
a=int(input()) b=list(map(int, input().split())) if len(b) != len(set(b)): print('NO') else: print('YES')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
577,047
577,048
u106778233
python
p02779
n = int(input()) a = set(input().split()) print('YES' if len(s) == n else 'NO')
n = int(input()) a = set(input().split()) print('YES' if len(a) == n else 'NO')
[ "identifier.change", "call.arguments.change", "io.output.change" ]
577,058
577,059
u933341648
python
p02779
import time start = time.time() n = int(input()) a = list(map(int, input().split())) # a = [i for i in range(n)] st = set() for i in range(n): st.add(i) if len(st) == n: print("YES") else: print("NO") # print(time.time() - start)
import time start = time.time() n = int(input()) a = list(map(int, input().split())) # a = [i for i in range(n)] st = set() for i in range(n): st.add(a[i]) if len(st) == n: print("YES") else: print("NO") # print(time.time() - start)
[ "call.arguments.change" ]
577,066
577,067
u514390882
python
p02779
from __future__ import print_function import sys import re import array import copy import functools import operator import math import string from math import gcd # math.log2()はatcoderでは対応していない.留意せよ. import collections import itertools import bisect import random import time import heapq from heapq import heappush from heapq import heappop from heapq import heappushpop from heapq import heapify from heapq import heapreplace from queue import PriorityQueue as pq from queue import Queue from itertools import accumulate from collections import deque from collections import Counter from operator import mul from functools import reduce input = sys.stdin.readline def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) return def lcm(n, m): return int(n * m / gcd(n, m)) def coprimize(p, q): common = math.gcd(p, q) return (p // common, q // common) def combinations_count(n, r): r = min(r, n - r) numer = reduce(mul, range(n, n - r, -1), 1) denom = reduce(mul, range(1, r + 1), 1) return numer // denom def main(): # input n = int(input().strip()) a = list(map(int, input().strip().split())) # check if "for all i in [0,n-1], C[a[i]] == 0" C = Counter() for i in range(n): if C[a[i]] != 0: # fail print("No") return else: # pass C[a[i]] += 1 print("Yes") return if __name__ == '__main__': main()
from __future__ import print_function import sys import re import array import copy import functools import operator import math import string from math import gcd # math.log2()はatcoderでは対応していない.留意せよ. import collections import itertools import bisect import random import time import heapq from heapq import heappush from heapq import heappop from heapq import heappushpop from heapq import heapify from heapq import heapreplace from queue import PriorityQueue as pq from queue import Queue from itertools import accumulate from collections import deque from collections import Counter from operator import mul from functools import reduce input = sys.stdin.readline def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) return def lcm(n, m): return int(n * m / gcd(n, m)) def coprimize(p, q): common = math.gcd(p, q) return (p // common, q // common) def combinations_count(n, r): r = min(r, n - r) numer = reduce(mul, range(n, n - r, -1), 1) denom = reduce(mul, range(1, r + 1), 1) return numer // denom def main(): # input n = int(input().strip()) a = list(map(int, input().strip().split())) # check if "for all i in [0,n-1], C[a[i]] == 0" C = Counter() for i in range(n): if C[a[i]] != 0: # fail print("NO") return else: # pass C[a[i]] += 1 print("YES") return if __name__ == '__main__': main()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,072
577,073
u185249212
python
p02779
n =int(input()) list = list(input().split()) set = set(list) if len(set) == n: print('Yes') else: print('No')
n =int(input()) list = list(input().split()) set = set(list) if len(set) == n: print('YES') else: print('NO')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,076
577,077
u728318205
python
p02779
N = int(input()) c = 0 A = list(map(int,input().split())) ans = {} for i in range(N): a = A[i] if a not in ans: ans[a] = 1 else: c = 1 break if c == 0: print("Yes") else: print("No")
N = int(input()) c = 0 A = list(map(int,input().split())) ans = {} for i in range(N): a = A[i] if a not in ans: ans[a] = 1 else: c = 1 break if c == 0: print("YES") else: print("NO")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
577,086
577,087
u201387466
python
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