s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s017235715 | p03607 | u337626942 | 1589593699 | Python | Python (3.4.3) | py | Runtime Error | 216 | 3828 | 168 | n=int(input())
table=[0]*10**5
for i in range(n):
a=int(input())
table[a-1]+=1
ans=0
for j in range(10**5):
if table[j]%2==1:
ans+=1
print(ans) |
s778438908 | p03607 | u337626942 | 1589593451 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 168 | n=int(input())
table=[0]*10**9
for i in range(n):
a=int(input())
table[a-1]+=1
ans=0
for j in range(10**9):
if table[j]%2==1:
ans+=1
print(ans) |
s554998366 | p03607 | u337626942 | 1589593347 | Python | Python (3.4.3) | py | Runtime Error | 207 | 3828 | 170 | n=int(input())
table=[0]*100000
for i in range(n):
a=int(input())
table[a-1]+=1
ans=0
for j in range(100000):
if table[j]%2==1:
ans+=1
print(ans) |
s722219139 | p03607 | u190079347 | 1588653349 | Python | Python (3.4.3) | py | Runtime Error | 380 | 85148 | 150 | n = int(input())
a = [int(input()) for i in range(n)]
A = [0]*10000000
for i in a:
if A[i] == 0:
A[i] = 1
else:
A[i] = 0
print(A.count(1)) |
s182535279 | p03607 | u190079347 | 1588653297 | Python | Python (3.4.3) | py | Runtime Error | 180 | 7832 | 148 | n = int(input())
a = [int(input()) for i in range(n)]
A = [0]*100000
for i in a:
if A[i] == 0:
A[i] = 1
else:
A[i] = 0
print(A.count(1)) |
s160944602 | p03607 | u072717685 | 1588459763 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 199 | def main():
n = int(input())
l1 = [0] * (10**9 + 1)
print(n)
for _ in range(n):
i = int(input())
l1[i] ^= 1
print(sum(l1))
if __name__ == '__main__':
main()
|
s213783853 | p03607 | u269778596 | 1588201344 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 393 | #include<iostream>
#include<unordered_set>
using namespace std;
int main(){
int size,query;
unordered_multiset<int> ans;
cin >> size;
for (int i=0;i<size;i++){
cin >> query;
if (ans.find(query) == ans.end()){
ans.insert(query);
}
else{
ans.erase... |
s896553259 | p03607 | u835283937 | 1588174166 | Python | Python (3.4.3) | py | Runtime Error | 179 | 7072 | 296 | def main():
N = int(input())
A = [int(input()) for a in range(N)]
L = [0 for i in range(10**4)]
for i in range(N):
if L[A[i]-1] == 0:
L[A[i]-1] = 1
elif L[A[i]-1] == 1:
L[A[i]-1] = 0
print(sum(L))
if __name__ == "__main__":
main() |
s091046290 | p03607 | u595375942 | 1588114501 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 408 | c11, c12, c13 = map(int, input().split())
c21, c22, c23 = map(int, input().split())
c31, c32, c33 = map(int, input().split())
if not (c12-c11 == c22-c21 == c32-c31):
print("No")
quit()
if not (c13-c12 == c23-c22 == c33-c32):
print("No")
quit()
if not (c21-c11 == c22-c12 == c23-c13):
print("No")
... |
s305146975 | p03607 | u652656291 | 1588113035 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | import collections
n = int(input())
L = [int(input()) for _ in range(n)]
l = collections.Counter(L)
l_count = l.values()
ans = 0
for i in range(len(l_count)):
if l_cpunt[i] % 2 = 1:
ans += 1
print(ans)
|
s157651516 | p03607 | u652656291 | 1588112899 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 199 | import collections
n = int(input())
L = [int(input()) for i in range(n)]
L.sort()
c = collections.Counter(L)
ccc = c.values()
ans = 0
for j in range(len(ccc)):
if ccc[j] % 2 = 1:
ans += 1
|
s670478985 | p03607 | u054559808 | 1588019450 | Python | PyPy3 (2.4.0) | py | Runtime Error | 536 | 50520 | 290 | n = int(input())
a = []
for i in range(n):
s = int(input())
a.append(s)
a.sort()
i = 0
cnt = 0
while i < n:
j = i+1
chk = 0
while a[i] == a[j]:
chk += 1
j += 1
if j >= n:
break
if chk%2 == 1:
cnt += 1
i = j
print(cnt) |
s014681352 | p03607 | u989306199 | 1588018864 | Python | Python (3.4.3) | py | Runtime Error | 182 | 3828 | 149 | n = int(input())
l = [0] * 100010
for i in range(n):
a = int(input())
if l[a] == 0:
l[a] = 1
else:
l[a] = 0
print(sum(l)) |
s922462630 | p03607 | u989306199 | 1588018835 | Python | Python (3.4.3) | py | Runtime Error | 189 | 3828 | 149 | n = int(input())
l = [0] * 100000
for i in range(n):
a = int(input())
if l[a] == 0:
l[a] = 1
else:
l[a] = 0
print(sum(l)) |
s035131876 | p03607 | u479638406 | 1587938215 | Python | Python (3.4.3) | py | Runtime Error | 174 | 7072 | 313 | def solve():
n = int(input())
a = [int(input()) for _ in range(n)]
ten = [0]*int(1e9)
for i in range(n):
ten[i] += 1
ten.remove(0)
ans = 0
for i in range(len(ten)):
if ten[i]%2 == 1:
ans += 1
return ans
if __name__ == "__main__":
print(solve()) |
s640191196 | p03607 | u114641312 | 1587862972 | Python | Python (3.4.3) | py | Runtime Error | 317 | 17104 | 1000 | # from math import factorial,sqrt,ceil,gcd
# from itertools import permutations as permus
# from collections import deque,Counter
# import re
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
import ... |
s711360912 | p03607 | u301624971 | 1587788674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 626 | import sys
input = sys.stdin.readline
# 自分の解答
def myAnswer(N:int,dic:dict) -> int: # pythonはlist操作が重いので辞書で処理する
ans = 0
for a in dic.values():
if(a % 2 == 1):
ans += 1
return ans
def modelAnswer(N:int,A:list) -> int:
ans = []
A.sort()
for a in A:
if(a in ans):
ans.remove(... |
s622735696 | p03607 | u263753244 | 1587783924 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38384 | 136 | n=int(input())
a=[]
for i in range(n):
m=int(input())
if m in a:
a.append(m)
else:
a.remove(m)
print(len(a)) |
s051755344 | p03607 | u263753244 | 1587783907 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 136 | n=int(input())
a=[]
for i in range(n):
m=int(input())
if m in a:
a.append(m)
else:
a.remove(a)
print(len(a)) |
s139430213 | p03607 | u867826040 | 1587669889 | Python | Python (3.4.3) | py | Runtime Error | 2121 | 7320 | 146 | n=int(input())
a=[int(input()) for i in range(n)]
cx=[0]*max(a)
for ai in a:
cx[ai-1]+=1
ans=0
for ci in cx:
if ci%2!=0:
ans+=1
print(ans) |
s411125012 | p03607 | u884323674 | 1587593704 | Python | Python (3.4.3) | py | Runtime Error | 203 | 8284 | 378 | N = int(input())
A = [int(input()) for i in range(N)]
sorted_A = sorted(A)
pre = sorted_A[0]
if len(sorted_A) == 1:
print(1)
else:
count = 0
for i in range(1, len(sorted_A)):
if sorted_A[i] == pre:
count += 1
else:
if count % 2 == 1:
ans += 1
... |
s512234274 | p03607 | u884323674 | 1587593668 | Python | Python (3.4.3) | py | Runtime Error | 208 | 8276 | 374 | N = int(input())
A = [int(input()) for i in range(N)]
sorted_A = sorted(A)
pre = sorted_A[0]
if len(sorted_A) == 1:
print(1)
else:
count = 0
for i in range(1, len(sorted_A)):
if sorted_A[i] == pre:
count += 1
else:
if count % 2 == 1:
ans += 1
... |
s118529105 | p03607 | u884323674 | 1587592348 | Python | Python (3.4.3) | py | Runtime Error | 2111 | 7072 | 194 | N = int(input())
A = [int(input()) for i in range(N)]
A_count = [0] * max(A)
for i in A:
A_count[i-1] += 1
ans = 0
for count in A_count:
if count % 2 == 1:
ans += 1
print(ans) |
s834567861 | p03607 | u884323674 | 1587590327 | Python | Python (3.4.3) | py | Runtime Error | 2120 | 7192 | 194 | N = int(input())
A = [int(input()) for i in range(N)]
A_count = [0] * max(A)
for i in A:
A_count[i-1] += 1
ans = 0
for count in A_count:
if count % 2 == 1:
ans += 1
print(ans) |
s379284320 | p03607 | u884323674 | 1587589952 | Python | Python (3.4.3) | py | Runtime Error | 2114 | 7072 | 214 | N = int(input())
A = [int(input()) for i in range(N)]
A_count = [0] * max(A)
for i in A:
if A_count[i-1] == 0:
A_count[i-1] = 1
elif A_count[i-1] == 1:
A_count[i-1] = 0
print(sum(A_count)) |
s947587455 | p03607 | u106181248 | 1587357612 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 149 | n = int(input())
l = [0]*1000000000
for i in range(n):
x = int(input())
if l[x-1] == 0:
l[x-1] = 1
else:
l[x-1] = 0
print(l.count(1)) |
s230831400 | p03607 | u877283726 | 1587066389 | Python | Python (3.4.3) | py | Runtime Error | 2122 | 7192 | 253 | N = int(input())
A = []
for _ in range(N):
A.append(int(input()))
ans = [0] * max(A)
count = 0
for i in range(N):
if ans[A[i]-1] == 0:
ans[A[i]-1] = 1
count += 1
else:
ans[A[i]-1] = 0
count -= 1
print(count) |
s686101070 | p03607 | u877283726 | 1587066009 | Python | Python (3.4.3) | py | Runtime Error | 183 | 7072 | 207 | N = int(input())
A = []
for _ in range(N):
A.append(int(input()))
ans = [0] * (10**9)
for i in range(N):
if ans[i] == 0:
ans[i] = 1
if ans[i] == 1:
ans[i] = 0
print(sum(ans[i])) |
s440447567 | p03607 | u852790844 | 1587012372 | Python | Python (3.4.3) | py | Runtime Error | 2112 | 1125420 | 178 | import sys
import numpy as np
read = sys.stdin.read
n = int(input())
a = np.array(read().split(), dtype=np.int64)
b = np.bincount(a)
ans = np.count_nonzero(b%2 != 0)
print(ans) |
s850690921 | p03607 | u852790844 | 1587012272 | Python | Python (3.4.3) | py | Runtime Error | 2113 | 1117100 | 178 | import sys
import numpy as np
read = sys.stdin.read
n = int(input())
a = np.array(read().split(), dtype=np.int64)
b = np.bincount(a)
ans = np.count_nonzero(b%2 != 0)
print(ans) |
s290437908 | p03607 | u440161695 | 1586821652 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 75 | N=int(input())
s=set()
for i in range(N):
s^={input()}
print(len(s))
|
s228092376 | p03607 | u440161695 | 1586821510 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 84 | N=int(input())
s=set()
for i in range(N):
a=set(int(input()))
s^=a
print(len(a)) |
s449910649 | p03607 | u755180064 | 1586655406 | Python | Python (3.4.3) | py | Runtime Error | 170 | 3828 | 335 |
url = "https://atcoder.jp//contests/abc073/tasks/abc073_c"
def main():
li = [0] * (10 ** 5)
li.append(0)
n = int(input())
for i in range(n):
ind = int(input())
if li[ind] == 0:
li[ind] = 1
else:
li[ind] = 0
print(li.count(1))
if __name__ == '__main_... |
s691906575 | p03607 | u781262926 | 1586643857 | Python | Python (3.4.3) | py | Runtime Error | 59 | 18784 | 146 | from collections import Counter
n, *A = map(int, open(0).read().split())
ans = 0
for k, v in Counter(A):
if v % 2 == 1:
ans += 1
print(ans) |
s453374209 | p03607 | u767664985 | 1586605789 | Python | Python (3.4.3) | py | Runtime Error | 190 | 16640 | 153 | from collections import Counter
N = int(input())
A = [int(input()) for _ in range(N)]
c = Counter(A)
print(len([i for i in c if c.values(i) % 2 == 1]))
|
s651524155 | p03607 | u852690916 | 1586605381 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 40232 | 357 | import sys
import io, os
def main():
input = sys.stdin.readline
inputb = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline
N=int(input())
A=[int(input()) for _ in range(N)]
from collections import Counter
C=Counter(A)
ans=0
for v in C.values():
if v&1: ans+=1
print(ans)
... |
s380292320 | p03607 | u185424824 | 1586468252 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | N = int(input())
list = [0]*1000000000
for i in range(N):
A = int(input())
if list[A-1] == 0:
list[A-1] = 1
else:
list[A-1] = 0
print(sum(list)) |
s042554037 | p03607 | u581603131 | 1586446210 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 7072 | 156 | N = int(input())
A = [int(input()) for i in range(N)]
for i in A:
if A.count(i) >= 1:
if A.count(i)%2 == 0:
A.remove(i)
print(B) |
s265929579 | p03607 | u075595666 | 1586395640 | Python | PyPy3 (2.4.0) | py | Runtime Error | 2111 | 129152 | 302 | import collections
import sys
input = sys.stdin.readline
n = int(input())
b = []
for i in range(n):
a = int(input())
b_append = b.append
b_append(a)
s = set(b)
c = collections.Counter(b)
ans = 0
for i in range(n-len(s)):
if c.most_common()[i][1] % 2 == 0:
ans -= 1
ans += len(s)
print(ans) |
s160766096 | p03607 | u489124637 | 1586394814 | Python | PyPy3 (2.4.0) | py | Runtime Error | 505 | 43992 | 161 | N = int(input())
L = [0] * (100000+1)
for i in range(N):
a = int(input())
L[a] = L[a]+1
cnt = 0
for x in L:
if x %2 == 1:
cnt += 1
print(cnt) |
s775025970 | p03607 | u057993957 | 1586232020 | Python | Python (3.4.3) | py | Runtime Error | 461 | 36192 | 151 | import numpy as np
n = int(input())
cnt = [0 for i in range(10**6)]
for i in range(n):
cnt[int(input())-1] += 1
print( (np.array(cnt) % 2).sum()) |
s087973758 | p03607 | u057993957 | 1586231986 | Python | Python (3.4.3) | py | Runtime Error | 192 | 20580 | 145 | import numpy as np
n = int(input())
cnt = [0 for i in range(10**6)]
for ai in a:
cnt[int(input())-1] += 1
print( (np.array(cnt) % 2).sum()) |
s048446569 | p03607 | u057993957 | 1586231572 | Python | Python (3.4.3) | py | Runtime Error | 437 | 38800 | 174 | import numpy as np
n = int(input())
a = [int(input()) for i in range(n)]
cnt = [0 for i in range(1000000)]
for ai in a:
cnt[ai-1] += 1
print( (np.array(cnt) % 2).sum()) |
s555644981 | p03607 | u057993957 | 1586231512 | Python | Python (3.4.3) | py | Runtime Error | 464 | 36192 | 153 | import numpy as np
n = int(input())
cnt = [0 for i in range(1000000)]
for i in range(n):
cnt[int(input())-1] += 1
print( (np.array(cnt) % 2).sum()) |
s224890773 | p03607 | u440129511 | 1586121761 | Python | Python (3.4.3) | py | Runtime Error | 219 | 14808 | 183 | import sys
import numpy as np
input = sys.stdin.readline
n=int(input())
l=[0]*10**5
for i in range(n):
a=int(input())
l[a-1]+=1
l1=np.array(l)
print(np.count_nonzero(l1%2==1)) |
s006875882 | p03607 | u440129511 | 1586120350 | Python | Python (3.4.3) | py | Runtime Error | 209 | 13940 | 171 | import sys
import numpy as np
input = sys.stdin.readline
n=int(input())
l=[0]*10**5
for i in range(n):
a=int(input())
l[a-1]+=1
l1=np.array(l)
l2=l%2
l2.count('1') |
s433696973 | p03607 | u576432509 | 1586111597 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 195 | c=[1]*(10**9)
a=[]
n=int(input())
for i in range(n):
ai=int(input())-1
c[ai]=1-c[ai]
a.append(ai)
icnt=0
for i in range(n):
if c[a[i]]==0:
icnt=icnt+1
print(icnt)
|
s344251408 | p03607 | u576432509 | 1586111498 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 209 | nmax=10**9+1
c=[1]*nmax
a=[]
n=int(input())
for i in range(n):
ai=int(input())-1
c[ai]=1-c[ai]
a.append(ai)
icnt=0
for i in range(n):
if c[a[i]]==0:
icnt=icnt+1
print(icnt)
|
s962157888 | p03607 | u576432509 | 1586111057 | Python | Python (3.4.3) | py | Runtime Error | 191 | 3828 | 178 | c=[1]*100000
n=int(input())
for i in range(n):
ai=int(input())-1
c[ai]=1-c[ai]
icnt=0
for i in range(100000):
if c[i]==0:
icnt=icnt+1
print(icnt)
|
s996786203 | p03607 | u153729035 | 1586057823 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 138 | for _ in range(int(input())):
i = int(input())
if i in A:
A.remove(i)
else:
A.append(i)
print(len(A)) |
s194827990 | p03607 | u153729035 | 1586057457 | Python | Python (3.4.3) | py | Runtime Error | 1245 | 987592 | 165 | import numpy as np
N = int(input())
A = np.zeros(1000000000,dtype=bool)
for _ in range(N):
i = int(input())
A[i] = not A[i]
print(np.count_nonzero(A)) |
s123827347 | p03607 | u744034042 | 1585706973 | Python | Python (3.4.3) | py | Runtime Error | 215 | 20268 | 205 | n = int(input())
a = [int(input()) for i in range(n)]
import collections
b = collections.Counter(a)
set_a = set(a)
cnt = 0
for i in range(len(set_a)):
if b[set_a[i]]%2 == 1:
cnt += 1
print(cnt) |
s288485671 | p03607 | u145950990 | 1585617512 | Python | PyPy3 (2.4.0) | py | Runtime Error | 497 | 43992 | 151 | n = int(input())
d = [0]*(10**5+1)
for i in range(n):
a = int(input())
d[a] += 1
ans = 0
for i in d:
if i%2==1:
ans += 1
print(ans) |
s173050598 | p03607 | u185405877 | 1585248233 | Python | Python (3.4.3) | py | Runtime Error | 355 | 3316 | 135 | s=int(input())
k=[]
for i in range(s):
j=int(input())
if j in k:
k=k-j
else:
k.append(j)
print(len(k))
|
s452064771 | p03607 | u599114793 | 1585193215 | Python | Python (3.4.3) | py | Runtime Error | 209 | 3828 | 162 | n = int(input())
a = [0] * 100000
ans = 0
for i in range(n):
a[int(input())-1] += 1
for i in range(len(a)):
if a[i] % 2 == 1:
ans += 1
print(ans)
|
s368286496 | p03607 | u453683890 | 1585079454 | Python | Python (3.4.3) | py | Runtime Error | 358 | 3316 | 145 | n = int(input())
p = []
for i in range(n):
t = int(input())
if t in p:
p.pop(index(t))
continue
else:
p.append(t)
print(len(p)) |
s912410916 | p03607 | u547167033 | 1584935560 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3060 | 147 | import Counter
n=int(input())
a=[int(input()) for i in range(n)]
c=Counter(a).most_common()
ans=0
for v in c:
if v[1]%2==1:
ans+=1
print(ans) |
s839648197 | p03607 | u757030836 | 1584725268 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 150 | from collections import Counter
N = inr(input())
A = Counter([int(input()) for i in range(N)])
print(sum(1 if count%2 else 0 for count in A.values())) |
s495837098 | p03607 | u757030836 | 1584724657 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 191 | n =int(input())
a =list(int(input()) for i in range(n))
dict = {}
for i in range(n):
if not(a[i] in dict):
dict(a[i]) =1
if s[i] in dict:
dict.pop(a[i])
print(len(dict))
|
s130449821 | p03607 | u757030836 | 1584724629 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | n =int(input())
a =[int(input()) for i in range(n)]
dict = {}
for i in range(n):
if not(a[i] in dict):
dict(a[i]) =1
if s[i] in dict:
dict.pop(a[i])
print(len(dict))
|
s152731111 | p03607 | u757030836 | 1584724579 | Python | Python (3.4.3) | py | Runtime Error | 171 | 7072 | 187 | n =int(input())
a =[int(input()) for i in range(n)]
dict = {}
for i in range(n):
if not(a[i] in dict):
dict(a[i]) ==1
if s[i] in dict:
dict.pop(a[i])
print(len(dict))
|
s690964693 | p03607 | u672898046 | 1584654117 | Python | Python (3.4.3) | py | Runtime Error | 36 | 3060 | 162 | n = int(input())
l = [False]*(10*9)
for i in range(n):
a = int(input())
if l[a-1] == False:
l[a-1] = True
else:
l[a-1] = False
print(l.count(True)) |
s160906046 | p03607 | u841623074 | 1584344818 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | mport collections
c=Counter()
N=input()
for i in range(N):
c[input()]+=1
d=list(filter(lambda x:c[x]%2==1,c))
print(len(d)) |
s943829124 | p03607 | u841623074 | 1584344679 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 138 | import collections
c=Counter()
N=int(input())
for i in range(N):
c[int(input())]+=1
d=list(filter(lambda x:c[x]%2==1,c))
print(len(d)) |
s819173125 | p03607 | u075595666 | 1584144251 | Python | Python (3.4.3) | py | Runtime Error | 238 | 8012 | 435 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
a.sort()
b = []
for i in range(0,n-1,2):
if a[i] != a[i+1]:
b.append(a[i])
b.append(a[i+1])
else:
continue
if n%2 == 1:
b.append(a[-1])
#print(b)
ans = []
if b != []:
ans.append(b[0])
for j in range(1,len(b)-1,2):
if b[j] != b... |
s840482788 | p03607 | u075595666 | 1584144212 | Python | Python (3.4.3) | py | Runtime Error | 260 | 11208 | 433 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
a.sort()
b = []
for i in range(0,n-1,2):
if a[i] != a[i+1]:
b.append(a[i])
b.append(a[i+1])
else:
continue
if n%2 == 1:
b.append(a[-1])
print(b)
ans = []
if b != []:
ans.append(b[0])
for j in range(1,len(b)-1,2):
if b[j] != b[... |
s002229428 | p03607 | u721425712 | 1584056909 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 186 | # C
n = int(input())
MAX = 10**9 + 10
a = [0]*MAX
for i in range(n):
A = int(input())
if a[A] == 0:
a[A] += 1
elif a[A] == 1:
a[A] -= 1
print(sum(a)) |
s858668567 | p03607 | u697696097 | 1583900720 | Python | Python (3.4.3) | py | Runtime Error | 42 | 5588 | 400 | import sys
from io import StringIO
import unittest
def yn(b):
print("Yes" if b==1 else "No")
return
def resolve():
readline=sys.stdin.readline
n=int(readline())
aa=[]
for _ in range(n):
a = readline().strip()
if a in aa:
aa.remove(a)
else:
aa.app... |
s748114986 | p03607 | u391667116 | 1582829473 | Python | Python (3.4.3) | py | Runtime Error | 196 | 3828 | 153 | N = int(input())
A = [0] * 100005
for i in range(N):
a = int(input())
A[a] = 1 - A[a]
ans = 0
for i in range(100005):
ans += A[i]
print(ans)
|
s406085111 | p03607 | u857330600 | 1581966472 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 141 | n=int(input())
l=[]
for i in range(n):
x=int(input())
if x in set(l):
l.append(x)
if not x in set(l):
l.remove(x)
print(len(l)) |
s253643474 | p03607 | u422267382 | 1581895437 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 166 | import sys
input = sys.stdin.readline
N=int(input())
count=0
for _ in range(n):
a=[int(input())]
for x in a:
if a.count(x)%2==1:
count+=1
print(count) |
s637502741 | p03607 | u488934106 | 1581872054 | Python | PyPy3 (2.4.0) | py | Runtime Error | 523 | 59608 | 369 | def writeanderase(n , a):
ans = {}
for i in range(n):
if a[i] in ans:
ans[a[i]] += 1
else:
ans[a[i]] = 1
for i in ans.values():
count += i % 2
return count
def main():
n = int(input())
a = [int(input()) for i in range(n)]
print(writeandera... |
s782036506 | p03607 | u701318346 | 1581478904 | Python | Python (3.4.3) | py | Runtime Error | 205 | 7492 | 276 | N = int(input())
A = [int(input()) for _ in range(N)]
A.sort()
ans = 0
a = A[0]
work = 1
for i in (1, N):
if A[i] == a:
work += 1
else:
if work % 2 == 0:
pass
else:
ans += 1
work = 1
a = A[i]
print(ans) |
s057477400 | p03607 | u102223485 | 1581185158 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 134680 | 109 | # -*- coding: utf-8 -*-
a = int(input())
b = set()
for i in range(a):
b ^= {input()}
print(b)
print(len(b)) |
s041042337 | p03607 | u462329577 | 1580941883 | Python | Python (3.4.3) | py | Runtime Error | 176 | 7836 | 186 | #!/usr/bin/env python3
n = int(input())
a = [int(input()) for _ in range(n)]
#print(a)
cnt = [0]*(10**5)
for i in a:
cnt[i-1] += 1
print(sum([1 for i in cnt if i % 2 == 1]))
exit(0)
|
s239614705 | p03607 | u462329577 | 1580941832 | Python | PyPy3 (2.4.0) | py | Runtime Error | 502 | 50008 | 186 | #!/usr/bin/env python3
n = int(input())
a = [int(input()) for _ in range(n)]
#print(a)
cnt = [0]*(10**5)
for i in a:
cnt[i-1] += 1
print(sum([1 for i in cnt if i % 2 == 1]))
exit(0)
|
s062159838 | p03607 | u462329577 | 1580941793 | Python | PyPy3 (2.4.0) | py | Runtime Error | 523 | 49240 | 186 | #!/usr/bin/env python3
n = int(input())
a = [int(input()) for _ in range(n)]
#print(a)
cnt = [0]*(10**9)
for i in a:
cnt[i-1] += 1
print(sum([1 for i in cnt if i % 2 == 1]))
exit(0)
|
s835729590 | p03607 | u113971909 | 1580908864 | Python | Python (3.4.3) | py | Runtime Error | 222 | 10676 | 159 | N=int(input())
A=[None]*N
for i in range(N):
A[i]=input()
A.sort()
cnt=0
i = 0
while i <N:
if A[i]==A[i+1]:
i+=2
else:
cnt+=1
i+=1
print(cnt) |
s238496148 | p03607 | u686036872 | 1580895948 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 87 | N = int(input())
list={}
for i in range(N):
list ^= {int(input())}
print(len(list)) |
s673505581 | p03607 | u488401358 | 1580822180 | Python | Python (3.4.3) | py | Runtime Error | 146 | 10272 | 235 | N=int(input())
a =[]
for _ in range(0,N):
a.append(input())
s=0
x=0
b=[0]*(10**9)
for i in range(0,N):
x=int(a[i])
if b[x]==0:
b[x]=1
else:
b[x]=0
y=int(max(a))
for i in range(0,y):
s=s+b[i]
print(s) |
s839825697 | p03607 | u268792407 | 1580812684 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | n=int(input())
li=[0]*((10**9)+1)
ans=0
for i in range(n):
a=int(input())
if li[a]==0:
li[a]=1
ans += 1
else:
li[a]=0
ans -= 1
print(ans) |
s378563271 | p03607 | u511870776 | 1580683637 | Python | Python (3.4.3) | py | Runtime Error | 353 | 3316 | 149 | kami = list()
N = int(input())
for x in range(N):
i = int(input())
if i in kami:
kami.discard(i)
else:
kami.append(i)
print(len(kami))
|
s960208636 | p03607 | u462329577 | 1580656139 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38640 | 174 | #!/usr/bin/env python3
n = int(input())
a = list(map(int,input().split()))
print(a)
cnt = [0]*(10**9)
for i in a:
cnt[i-1] += 1
print(len([1 for i in cnt if i % 2 == 1])) |
s641065462 | p03607 | u162893962 | 1580166993 | Python | Python (3.4.3) | py | Runtime Error | 193 | 16268 | 234 | n = int(input())
nums = [int(input()) for _ in range(n)]
cnt = {}
ans = 0
for x in nums:
if x not in cnt:
cnt[x] = 1
else:
cnt[x] += 1
for y in cnt.values():
if cnt[y] % 2 != 0:
ans += 1
print(ans) |
s324031702 | p03607 | u811967730 | 1579718296 | Python | Python (3.4.3) | py | Runtime Error | 182 | 7840 | 176 | N = int(input())
A = [int(input()) for _ in range(N)]
paper = [0] * 100000
for a in A:
paper[a - 1] += 1
ans = len(list(filter(lambda x: x % 2 == 1, paper)))
print(ans)
|
s566061070 | p03607 | u490553751 | 1579232532 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38256 | 256 | import sys
input = sys.stdin.readline
import numpy as np
N = int(input())
sum = 0
li = np.ones(100000010)
for i in range(N) :
A = int(input())
if li[A] == 1 :
sum +=1
li[A] = 0
else :
li[A] = 1
sum -=1
print(sum) |
s539092483 | p03607 | u490553751 | 1579232156 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 235 | import sys
input = sys.stdin.readline
N = int(input())
sum = 0
li = [1] * 1000000100
for i in range(N) :
A = int(input())
if li[A] == 1 :
sum +=1
li[A] = 0
else :
li[A] = 1
sum -=1
print(sum) |
s756259489 | p03607 | u490553751 | 1579232094 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3828 | 231 | import sys
input = sys.stdin.readline
N = int(input())
sum = 0
li = [1] * 100010
for i in range(N) :
A = int(input())
if li[A] == 1 :
sum +=1
li[A] = 0
else :
li[A] = 1
sum -=1
print(sum) |
s575342371 | p03607 | u490553751 | 1579232040 | Python | PyPy3 (2.4.0) | py | Runtime Error | 220 | 41196 | 231 | import sys
input = sys.stdin.readline
N = int(input())
sum = 0
li = [1] * 100010
for i in range(N) :
A = int(input())
if li[A] == 1 :
sum +=1
li[A] = 0
else :
li[A] = 1
sum -=1
print(sum) |
s164257597 | p03607 | u353895424 | 1578971423 | Python | PyPy3 (2.4.0) | py | Runtime Error | 1891 | 49752 | 221 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
count = [0] * (max(a)+1)
for _a in a:
if count[_a] == 0:
count[_a] = 1
elif count[_a] == 1:
count[_a] = 0
print(sum(count))
|
s973685761 | p03607 | u431981421 | 1578939689 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 148 | N=int(input())
li = [0] * 1000000000000
for n in range(N):
li[int(input())] += 1
ans = 0
for i in li:
if i % 2 == 1:
ans += 1
print(ans) |
s783502003 | p03607 | u431981421 | 1578939640 | Python | Python (3.4.3) | py | Runtime Error | 196 | 3828 | 141 | N=int(input())
li = [0] * 100002
for n in range(N):
li[int(input())] += 1
ans = 0
for i in li:
if i % 2 == 1:
ans += 1
print(ans) |
s323527980 | p03607 | u431981421 | 1578939600 | Python | Python (3.4.3) | py | Runtime Error | 197 | 3828 | 141 | N=int(input())
li = [0] * 100002
for n in range(N):
li[int(input())] += 1
ans = 0
for i in li:
if i % 2 == 1:
ans += 1
print(ans) |
s311291786 | p03607 | u735008991 | 1578765840 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 90 | A = set()
for i in range(int(input())):
a = int(input())
A ^= set(a)
print(len(A)) |
s241844390 | p03607 | u244416763 | 1578437616 | Python | Python (3.4.3) | py | Runtime Error | 2119 | 7152 | 202 | n = int(input())
a = [0]*n
for i in range(n):
a[i] = int(input())
t = max(a)
b = [0]*(t+1)
for i in range(n):
if(b[a[i]] == 0):
b[a[i]] = 1
else:
b[a[i]] = 0
print(sum(b)) |
s873015885 | p03607 | u440975163 | 1577500747 | Python | Python (3.4.3) | py | Runtime Error | 202 | 16636 | 209 | import collections
n = int (input())
ln = []
ln2 = []
for _ in range(n):
ln.append( int (input()))
C = collections.Counter(ln)
ans = 0
for v in C.items():
if (v%2 != 0):
ans += 1
print(ans) |
s604675179 | p03607 | u440975163 | 1577500656 | Python | Python (3.4.3) | py | Runtime Error | 183 | 7072 | 190 | n = int (input())
ln = []
ln2 = []
for _ in range(n):
ln.append( int (input()))
C = collections.Counter(ln)
ans = 0
for v in C.items():
if (v%2 != 0):
ans += 1
print(ans) |
s875822367 | p03607 | u653485478 | 1577111191 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 | n = int(input())
myset = {}
for i in range(n):
a = int(input())
if a in myset:
myset.remove(a)
else:
myset.add(a)
ans = len(myset)
print(ans) |
s177551685 | p03607 | u653485478 | 1577110955 | Python | Python (3.4.3) | py | Runtime Error | 170 | 7192 | 180 | n = int(input())
a = [int(input()) for i in range(n)]
myset = {}
for i in a:
if i in myset:
myset.remove(i)
else:
myset.add(i)
ans = len(myset)
print(ans) |
s044514872 | p03607 | u653485478 | 1577110225 | Python | Python (3.4.3) | py | Runtime Error | 2111 | 7072 | 185 | n = int(input())
a = [int(input()) for i in range(n)]
ans = 0
max_a = max(a)
b = [0]*(max_a + 2)
for i in a:
b[i] += 1
for i in b:
if i % 2 != 0:
ans += 1
print(ans) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.