Submission #40037405


Source Code Expand

N = int(input())
A = list(map(int, input().split()))

import collections

C = list(collections.Counter(A).items())

ans = 0
for c in C:
    ans+=(c[1]//2)

print(ans)

Submission Info

Submission Time
Task C - Socks
User KumaNeko08
Language Python (3.8.2)
Score 300
Code Size 177 Byte
Status AC
Exec Time 316 ms
Memory 86436 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 34
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt, 01_random_26.txt, 02_sorted_00.txt, 02_sorted_01.txt, 02_sorted_02.txt, 02_sorted_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 30 ms 9232 KiB
00_sample_01.txt AC 19 ms 9168 KiB
00_sample_02.txt AC 18 ms 9020 KiB
01_random_00.txt AC 164 ms 63900 KiB
01_random_01.txt AC 170 ms 63792 KiB
01_random_02.txt AC 176 ms 64032 KiB
01_random_03.txt AC 171 ms 64036 KiB
01_random_04.txt AC 172 ms 63932 KiB
01_random_05.txt AC 170 ms 63792 KiB
01_random_06.txt AC 176 ms 63920 KiB
01_random_07.txt AC 180 ms 63916 KiB
01_random_08.txt AC 172 ms 63940 KiB
01_random_09.txt AC 177 ms 65740 KiB
01_random_10.txt AC 174 ms 63864 KiB
01_random_11.txt AC 174 ms 64808 KiB
01_random_12.txt AC 175 ms 63944 KiB
01_random_13.txt AC 171 ms 64980 KiB
01_random_14.txt AC 170 ms 64960 KiB
01_random_15.txt AC 173 ms 65160 KiB
01_random_16.txt AC 180 ms 65880 KiB
01_random_17.txt AC 176 ms 64944 KiB
01_random_18.txt AC 182 ms 65116 KiB
01_random_19.txt AC 182 ms 63796 KiB
01_random_20.txt AC 180 ms 63932 KiB
01_random_21.txt AC 270 ms 65140 KiB
01_random_22.txt AC 259 ms 64952 KiB
01_random_23.txt AC 263 ms 65044 KiB
01_random_24.txt AC 315 ms 86436 KiB
01_random_25.txt AC 316 ms 86340 KiB
01_random_26.txt AC 316 ms 86332 KiB
02_sorted_00.txt AC 253 ms 63792 KiB
02_sorted_01.txt AC 253 ms 65136 KiB
02_sorted_02.txt AC 213 ms 64964 KiB
02_sorted_03.txt AC 213 ms 65220 KiB