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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s429002710 | p03606 | u613028067 | 1527114868 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 64 | a=input()
for i in range(a):
b=input()
c=input()
print c-b+1
|
s700790438 | p03606 | u227254381 | 1518586147 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 251 | #include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int N;
int sum;
int x, y;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> x >> y;
sum += (y - x + 1);
}
cout << sum << endl;
return 0;
}
|
s785061564 | p03606 | u350179603 | 1516250809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | n = int(input())
ans = 0
for i in range(n):
l, r = map(int, input().split())
del = r-l
ans += del
print(ans) |
s143818965 | p03606 | u158419894 | 1513659200 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 132 | N = int(input())
val = 0
for num in range(0,N):
row = input().split()
val = val + row[1] - row[0]
val = val - N
print(val) |
s291228322 | p03606 | u976162616 | 1512516672 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | if __name__ == "__main__":
N = input()
res = 0
for x in range(N):
a,b = map(int, input().split())
res += b - a + 1
print (res)
|
s504167711 | p03606 | u432780056 | 1509828521 | Python | Python (2.7.6) | py | Runtime Error | 17 | 3588 | 177 | n = input()
a = [0] * 100000
for i in xrange(n):
l, r = [int(x) for x in raw_input().split()]
if l == r:
a[l] = 1
continue
a[l:r + 1] = [1] * (r - l + 1)
print a.count(1) |
s180156645 | p03606 | u937164028 | 1506493879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | if __name__ == '__main__':
N = int(input())
ans = 0
for i in range(N):
l = list(map(int, input().split()))
ans += abs(l[1]-l[0])
print(ans |
s049862058 | p03606 | u270350963 | 1505971046 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 112 | ans = 0
N = int(input())
for i in range(N):
r1, r2 = input().sprit()
ans += int(r2) - int(r1) + 1
print(ans) |
s548528261 | p03606 | u270350963 | 1505970976 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 102 | ans = 0
N = int(input())
for i in range(N):
r1, r2 = input().sprit()
ans += r2 - r1 + 1
print(ans) |
s808991853 | p03606 | u270350963 | 1505970890 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | ans = 0
for i in range(int(input())):
r1, r2 = input().sprit()
ans += r2 - r1 + 1
print(ans) |
s798028230 | p03606 | u612721349 | 1505786713 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 77 | print(sum([(lambda x:b+1-a)(map(int,input().split())for _ in int(input())])) |
s207272128 | p03606 | u301823349 | 1505677605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | N = input()
seat = 100000
for _ in range(N):
l,r = map(int,input().split())
seat -= r - l + 1
print(seat) |
s011248847 | p03606 | u410996052 | 1505176560 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | n = int(input)
s=0
for i in range(n):
s,e = map(int,input().split())
s += e-s+1
print(s) |
s742437748 | p03606 | u069868485 | 1505098414 | Python | Python (3.4.3) | py | Runtime Error | 16 | 3060 | 118 | N=input()
now=0
for i in range(0,N):
lr=(input()).split(' ')
now=now+((int)(lr[1])-(int)(lr[0])+1)
print(now) |
s774859891 | p03606 | u835709901 | 1505067647 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 99 | N = input()
ans = 0
for i in range(N):
j,k = map(int,input().split())
ans += r - l + 1
print(ans) |
s713022144 | p03606 | u762008592 | 1505031792 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 102 | N=int(input())
ans=0
for i in range(N):
a,b=[k for k in input().split()]
ans+=b-a+1
print(ans) |
s190332489 | p03606 | u136090046 | 1505008834 | Python | Python (3.4.3) | py | Runtime Error | 26 | 3060 | 524 |
def aaa(seat_list):
return seat_list[len(seat_list)-1] - seat_list[0]+1
value = int(input())
people = 0
# while True:
# try:
# seat = input()
# if seat:
# string_seat = seat.split()
# seat_list = []
# seat_list = [int(x) for x in (string_seat)]
# people += aaa(seat_list)
# except EOFError:
# brea... |
s342177764 | p03606 | u493221626 | 1505008242 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 143 | # coding:utf-8
n=input()
sum=0
for i in range(1, n):
l_r=input()
l=int(l_r.split(" ")[0])
r=int(l_r.split(" ")[1])
sum+=r-l+1
|
s795183430 | p03606 | u803848678 | 1505008156 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 114 | n = int(input())
ans = 0
for i in range(n):
a, b = list(map(int, input().split))
ans = b - a +1
print(ans) |
s657523400 | p03606 | u136090046 | 1505007718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 317 |
def aaa(seat_list):
return seat_list[len(seat_list)-1] - seat_list[0]
value = int(input())
people = 0
while True:
try:
seat = input()
if seat:
string_seat = seat.split()
seat_list = []
seat_list = [int(x) for x in (string_seat)]
people += aaa(seat_list)
except EOFError:
break
print(people)
|
s320869292 | p03606 | u136090046 | 1505007589 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3060 | 407 |
def aaa(seat_list):
return seat_list[len(seat_list)-1] - seat_list[0]
value = int(input())
people = 0
# while True:
# try:
# seat = input()
# seat_list.append(int(seat.split(" "))
# except EOFError:
# break
while True:
seat = input()
if seat:
string_seat = seat.split()
seat_list = []
seat_list = [i... |
s956501925 | p03606 | u768816323 | 1505005915 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | N=input()
c=0
for i in range(N):
l,r=(int(i) for i in input().split())
c+=r-l+1
print(c) |
s200653523 | p03606 | u182096840 | 1505005634 | Python | Python (2.7.6) | py | Runtime Error | 21 | 3332 | 193 | l = [0]*100000
n = int(raw_input())
for x in xrange(n):
a = map(int,raw_input().strip().split())
for y in xrange(a[0],a[1]+1):
l[y] = 1
ans = 0
for x in l:
if x == 1:
ans += 1
print(ans) |
s015025585 | p03606 | u050708958 | 1505005471 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | n = int(input())
p = 0
for _ in n:
i,j = [int(k) for k in input().split()]
p += j-i+1
print(p) |
s030920568 | p03606 | u050708958 | 1505005386 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | n = int(input())
p = 0
for _ in n:
i,j = [int(i) for i in input().split()]
p += j-i+1
print(p)
|
s452051423 | p03607 | u347397127 | 1601393988 | Python | PyPy3 (7.3.0) | py | Runtime Error | 159 | 76756 | 126 | n=int(input())
L = [0]*(100001)
ans = 0
for i in range(n):
L[int(input())] += 1
print(sum([L[i]%2 for i in range(len(L))])) |
s994551183 | p03607 | u734876600 | 1601236443 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9096 | 117 | n = int(input())
A = [0]*(10**9+5)
for i in range(n):
a = int(input())
A[a-1]+=1
A[a-1]%=2
print(sum(A))
|
s164824479 | p03607 | u734876600 | 1601236408 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9164 | 113 | n = int(input())
A = [0]*(10**9+5)
for i in range(n):
a = int(input())
A[a]+=1
A[a]%=2
print(sum(A))
|
s367530212 | p03607 | u734876600 | 1601236194 | Python | Python (3.8.2) | py | Runtime Error | 164 | 9604 | 117 | n = int(input())
A = [0]*(10**5+5)
for i in range(n):
a = int(input())
A[a-1]+=1
A[a-1]%=2
print(sum(A))
|
s799685034 | p03607 | u507456172 | 1600365079 | Python | Python (3.8.2) | py | Runtime Error | 164 | 13192 | 263 | N = int(input())
A = []
ans = 0
for _ in range(N):
A.append(int(input()))
A.sort()
if N == 1:
print(1)
else:
for i in range(N-2):
if A[i] != A[i+1]:
L = len(A[:i+1])
del A[:i+1]
if L%2 == 1:
ans += 1
print(ans) |
s047819093 | p03607 | u453623947 | 1600288630 | Python | Python (3.8.2) | py | Runtime Error | 150 | 17424 | 187 | n = int(input())
a = set(int(input()) for i in range(n))
kami = []
a.sort()
for i in range(n) :
if i in kami :
kami.remove(i)
else :
kami.add(i)
print(len(kami))
|
s596993544 | p03607 | u620846115 | 1600269122 | Python | Python (3.8.2) | py | Runtime Error | 144 | 13184 | 184 | import collections
n = int(input())
alist = [int(input()) for i in range(n)]
cole = collections.Counters(alist)
count = 0
for i in cole.values():
if i%2==1:
count+=1
print(count) |
s865401905 | p03607 | u806976856 | 1599509617 | Python | PyPy3 (7.3.0) | py | Runtime Error | 106 | 65388 | 173 | n=int(input())
x=[0]*(10**9+1)
ans=0
for i in range(n):
a=int(input())
if x[a]==0:
x[a]=1
ans+=1
else:
ans-=1
x[a]=0
print(ans)
|
s678450624 | p03607 | u650932312 | 1599403268 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9000 | 152 | N = int(input())
ans = []
for i in range(N):
A = int(input())
if A in ans:
ans.append(A)
else:
ans.remove(A)
print(len(ans)) |
s773093123 | p03607 | u583507988 | 1599395502 | Python | Python (3.8.2) | py | Runtime Error | 163 | 20516 | 159 | n=int(input())
a=[int(input()) for i in range(n)]
data=[0]*10**6
ans=0
for i in a:
data[i-1]+=1
if data[i-1]%2==0:
ans-=1
else:
ans+=1
print(ans) |
s940906895 | p03607 | u444238096 | 1597091611 | Python | Python (3.8.2) | py | Runtime Error | 156 | 13748 | 198 | N = int(input())
A = []
for i in range(N):
A.append(int(input()))
hantei=[0]*100007
for i in A:
if hantei[i]==0:
hantei[i]="a"
else:
hantei[i]=0
print(hantei.count("a")) |
s522068528 | p03607 | u869790980 | 1596943576 | Python | PyPy2 (7.3.0) | py | Runtime Error | 375 | 85556 | 147 |
for _ in range(int(raw_input())):
v = int(raw_input())
cc[v] += 1
if cc[v] == 2:
cc[v] = 0
s = 0
for k in cc:
if cc[k] == 1:
s +=1
print s |
s283183413 | p03607 | u467463073 | 1596834689 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9116 | 284 | a.sort()
count = 0
temp = a[0]
tempcount = 1
for i in range(1,n):
if a[i]==temp:
tempcount += 1
else:
if not tempcount%2 == 0:
count += 1
tempcount = 1
temp = a[i]
#print(i,tempcount)
if tempcount%2 == 1:
count += 1
print(count) |
s417780219 | p03607 | u697690147 | 1596686152 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9192 | 186 | n = int(input())
a = [False] * int(1e9)
cnt = 0
for i in range(n):
ai = int(input()) - 1
a[ai] = not a[ai]
if a[ai]:
cnt += 1
else:
cnt -= 1
print(cnt) |
s321388744 | p03607 | u697690147 | 1596685923 | Python | Python (3.8.2) | py | Runtime Error | 156 | 9660 | 184 | n = int(input())
a = [False] * 100000
cnt = 0
for i in range(n):
ai = int(input()) - 1
a[ai] = not a[ai]
if a[ai]:
cnt += 1
else:
cnt -= 1
print(cnt) |
s942939939 | p03607 | u786020649 | 1596055116 | Python | Python (3.8.2) | py | Runtime Error | 2274 | 2484832 | 166 | import sys
readline=sys.stdin.readline
n=int(readline().strip())
a=[int(readline().strip()) for _ in range(n)]
l=[0]*(max(a)+1)
for x in a:
l[x]^=1
print(sum(l))
|
s206175407 | p03607 | u786020649 | 1596054782 | Python | Python (3.8.2) | py | Runtime Error | 2274 | 2485812 | 113 | import sys
read=sys.stdin.read
n,*a=map(int,read().split())
l=[0]*(max(a)+1)
for x in a:
l[x]^=1
print(sum(l)) |
s591549932 | p03607 | u786020649 | 1596054752 | Python | Python (3.8.2) | py | Runtime Error | 2285 | 2485636 | 110 | import sys
read=sys.stdin.read
n,*a=map(int,read().split())
l=[0]*max(a)
for i in a:
l[a]^=1
print(sum(l))
|
s043665452 | p03607 | u094999522 | 1595563491 | Python | PyPy3 (7.3.0) | py | Runtime Error | 115 | 91392 | 145 | #!/usr/bin/env python3
n, *a = map(int, open(0).read().split())
b = [0] * (10**5 + 1)
for i in a:
b[i] += 1
print(sum(i % 2 > 0 for i in b))
|
s849893191 | p03607 | u350093546 | 1595530001 | Python | PyPy3 (7.3.0) | py | Runtime Error | 97 | 74708 | 175 | import collections
n=int(input())
lst=[int(input()) for i in range(n)]
xs=list(set(lst))
ans=0
lst=collections.Counter(lst)
for i in xs:
if lst[i]%=1:
ans+=1
print(ans) |
s002103024 | p03607 | u626228246 | 1595422092 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8972 | 281 | from collections import Counter
n = int(input())
l = []
for i in range(n):
l.append(int(input()))
lcnt = Counter(l)
l_value = list(lcnt.values())
for i in range(len(l_value)):
if l_value[i]%2 == 0:
l_value[i] = 0
else:
l_value[i] = 1
print(sum(l_value))
|
s559662823 | p03607 | u350093546 | 1594349915 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8960 | 115 | n=int(input())
a=list(map(int,input().split()))
b=set(a)
ans=0
for i in b:
a.count(i)%2==1:
ans+=1
print(ans) |
s312733675 | p03607 | u854992222 | 1593908303 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8880 | 201 | n = int(input())
a = [int(input()) for _ in range(n)]
a = sorted(a):
tmp = 0
ans = 0
for i in a:
if i == tmp:
ans -= 1
tmp = 0
else:
ans += 1
tmp = i
print(ans) |
s550376476 | p03607 | u729119068 | 1593461152 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9120 | 70 | N=int(input())
S={}
for i in range(N):
S=S^{input()}
print(len(S)) |
s931321971 | p03607 | u766566560 | 1593227182 | Python | Python (3.8.2) | py | Runtime Error | 163 | 20720 | 163 | N = int(input())
A = [int(input()) for _ in range(N)]
cnt = [0] * 1000000
for i in A:
if cnt[i] == 0:
cnt[i] += 1
else:
cnt[i] = 0
print(cnt.count(1)) |
s596938834 | p03607 | u706414019 | 1593195683 | Python | Python (3.8.2) | py | Runtime Error | 174 | 16644 | 125 | N = int(input())
s = [0]*(10**6)
for i in range(N):
a = int(input())
s[a-1] += 1
s[a-1] = s[a-1]%2
print(sum(s))
|
s771533458 | p03607 | u706414019 | 1593195621 | Python | Python (3.8.2) | py | Runtime Error | 174 | 16612 | 123 | N = int(input())
s = [0]*10**6
for i in range(N):
a = int(input())
s[a-1] += 1
s[a-1] = s[a-1]%2
print(sum(s))
|
s569412619 | p03607 | u289288647 | 1593130007 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9176 | 168 | N = int(input())
ans = [0]*(10**9)
for _ in range(N):
a = int(input())
if ans[a-1] == 0:
ans[a-1] += 1
else:
ans[a-1] = 0
print(sum(ans))
|
s403244574 | p03607 | u363146889 | 1593114503 | Python | PyPy3 (7.3.0) | py | Runtime Error | 226 | 99036 | 631 | # -*- coding: utf-8 -*-
## Library
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
## input
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# yoko = list(map(int, input().split()))
# tate = [int(... |
s006987599 | p03607 | u766566560 | 1593057473 | Python | Python (3.8.2) | py | Runtime Error | 2079 | 793940 | 165 | N = int(input())
A = [int(input()) for _ in range(N)]
cnt = [0] * 100000000
for i in A:
if cnt[i] == 0:
cnt[i] += 1
else:
cnt[i] = 0
print(cnt.count(1)) |
s801542009 | p03607 | u766566560 | 1593057440 | Python | Python (3.8.2) | py | Runtime Error | 331 | 91104 | 164 | N = int(input())
A = [int(input()) for _ in range(N)]
cnt = [0] * 10000000
for i in A:
if cnt[i] == 0:
cnt[i] += 1
else:
cnt[i] = 0
print(cnt.count(1)) |
s660088386 | p03607 | u766566560 | 1593057218 | Python | Python (3.8.2) | py | Runtime Error | 142 | 12900 | 163 | N = int(input())
A = [int(input()) for _ in range(N)]
cnt = [0] * 1000000000
for i in A:
if cnt[i] == 0:
cnt[i] += 1
else:
cnt[i] == 0
print(1 in cnt) |
s997492358 | p03607 | u167523937 | 1593046765 | Python | Python (3.8.2) | py | Runtime Error | 159 | 14004 | 281 | n=int(input())
a=[int(input()) for i in range(n)]
a=sorted(a)
ans=[]
num=1
for i in range(n-1):
if a[i]==a[i+1]:
num+=1
else:
if num%2!=0:
ans.append(current_a)
if i+1==n-1:
ans.append(current_a)
num=1
print(len(ans)) |
s305026855 | p03607 | u167523937 | 1593046677 | Python | Python (3.8.2) | py | Runtime Error | 159 | 14100 | 279 | n=int(input())
a=[int(input()) for i in range(n)]
a=sorted(a)
ans=[]
num=1
for i in range(n-1):
if a[i]==a[i+1]:
num+=1
else:
if num%2!=0:
ans.append(current_a)
if i+1==n:
ans.append(current_a)
num=1
print(len(ans)) |
s106241521 | p03607 | u750651325 | 1592851784 | Python | Python (3.8.2) | py | Runtime Error | 157 | 9608 | 175 | N = int(input())
x = [0]*100000
count = 0
for i in range(N):
a = int(input())
if x[a-1] == 1:
x[a-1] = 0
else:
x[a-1] += 1
print(x.count(1))
|
s490209275 | p03607 | u318427318 | 1592627835 | Python | Python (3.8.2) | py | Runtime Error | 461 | 12972 | 434 | #-*-coding:utf-8-*-
def main():
n = int(input())
numbers=[]
answers=[]
number=0
numbers=[int(input()) for _ in range(n)]
for number in numbers:
if len(answers)==0:
answers.append(number)
else:
if number in answers:
answers.pop(number)
... |
s016801289 | p03607 | u545644875 | 1592002018 | Python | Python (3.4.3) | py | Runtime Error | 194 | 10716 | 249 | N = int(input())
A = [input() for _ in range(N)]
A.sort()
ans = 0
ans_list = list()
for i in range(A):
count = 0
if A[i] == A[i +1]:
count +=1
else:
ans_list.append(count)
for i in ans_list:
if i % 2 == 0:
ans += 1
print(ans)
|
s703995638 | p03607 | u394731058 | 1591720366 | Python | Python (3.4.3) | py | Runtime Error | 199 | 7896 | 174 | n = int(input())
l = [int(input()) for _ in range(n)]
l.sort()
c = 1
t = l[0]
for i in l[1:]:
if t == i:
c += 1
else:
ans += c%2
c = 1
t = i
print(ans)
|
s724569840 | p03607 | u394731058 | 1591720278 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 174 | n = int(input())
l = [int(input()) _ for in range(n)]
l.sort()
c = 1
t = l[0]
for i in l[1:]:
if t == i:
c += 1
else:
ans += c%2
c = 1
t = i
print(ans)
|
s606059874 | p03607 | u609814378 | 1591713401 | Python | Python (3.4.3) | py | Runtime Error | 2117 | 7316 | 291 | import sys
N = int(input())
A = []
for _ in range(N):
A.append(int(input()))
checklis = [0]*max(A)
for i in A:
lisnumber = i-1
if checklis[lisnumber] == 0:
checklis[lisnumber] = 1
elif checklis[lisnumber] == 1:
checklis[lisnumber] = 0
print(sum(checklis)) |
s009573844 | p03607 | u730769327 | 1591676754 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 38384 | 121 | n = int(input())
b=[0]*10**9
for i in range(n):
j=int(input())-1
if b[j]:
b[j]=0
else:
b[j]=1
print(sum(b)) |
s521613491 | p03607 | u730769327 | 1591676681 | Python | PyPy3 (2.4.0) | py | Runtime Error | 473 | 44120 | 122 | n = int(input())
b=[0]*100000
for i in range(n):
j=int(input())-1
if b[j]:
b[j]=0
else:
b[j]=1
print(sum(b)) |
s742678947 | p03607 | u730769327 | 1591676637 | Python | PyPy3 (2.4.0) | py | Runtime Error | 478 | 44120 | 120 | n = int(input())
b=[0]*100000
for i in range(n):
j=int(input())
if b[j]:
b[j]=0
else:
b[j]=1
print(sum(b)) |
s241048304 | p03607 | u884795391 | 1591584631 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 13204 | 143 | n = int(input())
a = [int(input()) for i in range(n)]
b = list(set(a))
for j in b:
a.remove(j)
for k in a:
b.remove(k)
print(len(b)) |
s171480250 | p03607 | u304517780 | 1591186010 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 285 | from collections import Counter
def main():
n = int(input())
a = []
for i in range(n):
a.append(int(input()))
counter = Counter(a)
ans: int = 0
for key, value in counter.items():
if value % 2 == 1:
ans += 1
print(ans)
main()
|
s520196660 | p03607 | u674588203 | 1591118503 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 4948 | 380 | N=int(input())
arr0=[]
arr1=[]
arr2=[]
arr3=[]
arr4=[]
arr5=[]
arr6=[]
arr7=[]
arr8=[]
arr9=[]
arrs=[arr0,arr1,arr2,arr3,arr4,arr5,arr6,arr7,arr8,arr9]
amount=0
for n in range(N):
_=int(input())
a = _//100000000
if arrs[a].count(_)>=1:
arrs[a].remove(_)
else:
arrs[a].append(_)
for x i... |
s576649348 | p03607 | u674588203 | 1591118375 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 4936 | 416 | def judge(N):
return N//100000000
N=int(input())
arr0=[]
arr1=[]
arr2=[]
arr3=[]
arr4=[]
arr5=[]
arr6=[]
arr7=[]
arr8=[]
arr9=[]
arrs=[arr0,arr1,arr2,arr3,arr4,arr5,arr6,arr7,arr8,arr9]
amount=0
for n in range(N):
_=int(input())
a = judge (_)
if arrs[a].count(_)>=1:
arrs[a].remove(_)
else... |
s990309664 | p03607 | u674588203 | 1591118106 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 4928 | 415 | def judge(N):
return N//100000000
N=int(input())
arr0=[]
arr1=[]
arr2=[]
arr3=[]
arr4=[]
arr5=[]
arr6=[]
arr7=[]
arr8=[]
arr9=[]
arrs=[arr0,arr1,arr2,arr3,arr4,arr5,arr6,arr7,arr8,arr9]
amount=0
for n in range(N):
_=int(input())
a = judge (_)
if arrs[a].count(_)>1:
arrs[a].remove(_)
else:... |
s320261643 | p03607 | u674588203 | 1591114602 | Python | Python (3.4.3) | py | Runtime Error | 1767 | 3316 | 571 | import math
N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<40000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 40001<_<99000:
_m= _
if SISterN.count(_m)==1:
... |
s065887461 | p03607 | u674588203 | 1591114534 | Python | Python (3.4.3) | py | Runtime Error | 1770 | 3188 | 559 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<40000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 40001<_<99000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s021560006 | p03607 | u674588203 | 1591114447 | Python | Python (3.4.3) | py | Runtime Error | 1763 | 3188 | 551 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<40000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 40001<_<99990:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s756777945 | p03607 | u674588203 | 1591114369 | Python | Python (3.4.3) | py | Runtime Error | 1772 | 3188 | 551 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<40000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 40001<_<99900:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s484341527 | p03607 | u674588203 | 1591114303 | Python | Python (3.4.3) | py | Runtime Error | 1753 | 3188 | 551 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<40000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 40001<_<99000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s793940647 | p03607 | u674588203 | 1591113890 | Python | Python (3.4.3) | py | Runtime Error | 1768 | 3188 | 551 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<30000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 30001<_<90000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s819439787 | p03607 | u674588203 | 1591113712 | Python | Python (3.4.3) | py | Runtime Error | 1764 | 3188 | 550 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<30000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 30001<_<90000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s957439525 | p03607 | u674588203 | 1591113645 | Python | Python (3.4.3) | py | Runtime Error | 1782 | 3316 | 550 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<30000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 30001<_<80000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s311319292 | p03607 | u674588203 | 1591113577 | Python | Python (3.4.3) | py | Runtime Error | 2103 | 3572 | 555 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<30000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 30001<_<70000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s611355706 | p03607 | u674588203 | 1591113140 | Python | Python (3.4.3) | py | Runtime Error | 1818 | 3188 | 551 | N=int(input())
sisterN=[]
SISTERn=[]
SIStern=[]
for n in range(N):
_=int(input())
if _<30000:
_s= _
if sisterN.count(_s)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
elif 30001<_<70000:
_m= _
if SISterN.count(_m)==1:
SISterN.remo... |
s334027858 | p03607 | u674588203 | 1591112632 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 380 | N=int(input())
sisterN=[]
SISTERn=[]
for n in range(N):
_=int(input())
if _<50000:
_= s_
if sisterN.count(s_)==1:
sisterN.remove(_s)
else:
sisterN.append(_s)
else:
_= b_
if SISTERn.count(_b)==1:
SISTERn.remove(_b)
else:
... |
s222857373 | p03607 | u674588203 | 1591111202 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 7072 | 197 | N=int(input())
sisterN=[]
for n in range(N):
_=int(input())
sisterN.append(_)
for s in sisterN:
if sisterN.count(sisterN[s])%2==0:
sisterN.remove(sisterN[s])
print(len(sisterN)) |
s414365646 | p03607 | u674588203 | 1591110823 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | N=int(input())
sisterN=(,)
for n in range(N):
_=int(input())
sisterN.append(_)
Ans=len(set(sisterN))
print(Ans) |
s173938413 | p03607 | u455642216 | 1590701352 | Python | Python (3.4.3) | py | Runtime Error | 174 | 7072 | 149 | N=int(input())
A=[int(input()) for x in range(N)]
y=set()
for i in A:
if i in y:
y.remove(i)
else:
y.append(i)
print(len(y))
|
s110404893 | p03607 | u991134049 | 1590430662 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 131 | N = int(input())
A = set()
for i in range(N):
x = int(input())
if x in A:
A.remove(x)
else:
A.append(x)
print(len(A)) |
s725213203 | p03607 | u587589241 | 1590367621 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38256 | 130 | n=int(input())
A=set()
for i in range(n):
a=input()
if a in A:
A.remove(a)
else:
A.add(a)
print(len(A) |
s446649205 | p03607 | u587589241 | 1590367557 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38640 | 134 | n=int(input())
A=set()
for i in range(n):
a=input()
if a in A:
A.remove(a)
else:
A.append(a)
print(len(A)) |
s921480932 | p03607 | u587589241 | 1590367247 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3316 | 161 | from collections import deque
n=int(input())
A=[]
for i in range(n):
a=input()
if a in A:
A.append(a)
else:
A.remove(a)
print(len(A)) |
s763068293 | p03607 | u329407311 | 1590344408 | Python | Python (3.4.3) | py | Runtime Error | 228 | 7388 | 223 | N = int(input())
arr = [ int(input()) for i in range(N)]
arr.sort()
cnt = 0
num = 1
a = arr[0]
for i in range(1,N):
if arr[i] == a:
num += 1
else:
num = 1
if num % 2 == 1:
cnt += 1
printx(int(cnt)) |
s495040902 | p03607 | u285891772 | 1590254836 | Python | Python (3.4.3) | py | Runtime Error | 108 | 9536 | 1002 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees#, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mu... |
s620240562 | p03607 | u285891772 | 1590213909 | Python | PyPy3 (2.4.0) | py | Runtime Error | 282 | 59628 | 1500 | import sys, re
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees#, log2
from collections import deque, defaultdict, Counter
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mu... |
s769131831 | p03607 | u846226907 | 1589847730 | Python | Python (3.4.3) | py | Runtime Error | 204 | 3828 | 278 |
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(readline())
a = [0]*(10**5+1)
for i in range(N):
a[int(input())]+=1
res = 0
for i in range(1,10**5+1):
if a[i]%2:
res+=1
print(res)
|
s930102825 | p03607 | u846226907 | 1589847564 | Python | Python (3.4.3) | py | Runtime Error | 62 | 3828 | 281 |
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(readline())
a = [0]*(10**5+1)
for i in range(N):
a[int(readline())]+=1
res = 0
for i in range(1,10**5+1):
if a[i]%2:
res+=1
print(res)
|
s714157502 | p03607 | u593567568 | 1589648668 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 263 | from collections import defaultdict
readline = sys.stdin.buffer.readline
N = int(readline())
NUMBERS = defaultdict(bool)
for _ in range(N):
n = int(readline())
NUMBERS[n] = not NUMBERS[n]
ans = 0
for k,v in NUMBERS.items():
if v:
ans += 1
print(ans) |
s730734633 | p03607 | u337626942 | 1589596448 | Python | Python (3.4.3) | py | Runtime Error | 2117 | 7320 | 189 | n=int(input())
a=[int(input()) for i in range(n)]
m=max(a)
table=[0]*m
for i in range(n):
table[a[i]-1]+=1
ans=0
for j in range(m):
if table[j]%2==1:
ans+=1
print(ans) |
s998931850 | p03607 | u337626942 | 1589594118 | Python | Python (3.4.3) | py | Runtime Error | 2115 | 7072 | 188 | n=int(input())
a=[int(input()) for i in range(n)]
m=max(a)
table=[0]*m
for i in range(n):
table[a[i]-1]+=1
ans=0
for j in range(m):
if table[j]%2==1:
ans+=1
print(ans) |
s070781613 | p03607 | u337626942 | 1589593731 | Python | Python (3.4.3) | py | Runtime Error | 313 | 10868 | 168 | n=int(input())
table=[0]*10**6
for i in range(n):
a=int(input())
table[a-1]+=1
ans=0
for j in range(10**6):
if table[j]%2==1:
ans+=1
print(ans) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.