Submission #4033974


Source Code Expand

import sys
from collections import Counter

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    N = ii()
    A = imi(N)
    c = Counter(A)
    ans = 0
    for v in c.values():
        if v % 2 == 1:
            ans += 1
    return ans


if __name__ == "__main__":
    print(solve())

Submission Info

Submission Time
Task C - Write and Erase
User tayu
Language Python (3.4.3)
Score 300
Code Size 626 Byte
Status AC
Exec Time 115 ms
Memory 16616 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 11
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
01.txt AC 95 ms 7420 KB
02.txt AC 96 ms 7420 KB
03.txt AC 115 ms 16616 KB
04.txt AC 95 ms 7416 KB
05.txt AC 108 ms 12000 KB
06.txt AC 99 ms 7416 KB
07.txt AC 97 ms 6372 KB
08.txt AC 96 ms 7416 KB
sample_01.txt AC 21 ms 3316 KB
sample_02.txt AC 21 ms 3316 KB
sample_03.txt AC 22 ms 3316 KB