Submission #992977
Source Code Expand
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import Counter N, M = map(int, input().split()) X = list(map(lambda x: int(x) % M, input().split())) # print(Counter(X)) c = Counter(X) cnt = c[0] // 2 for i in range(1, M//2+1): # print(i, M-i, c[i], c[M-i]) cnt += min(c[i], c[M-i]) print(cnt)
Submission Info
Submission Time | |
---|---|
Task | D - Pair Cards |
User | ioryz |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 487 Byte |
Status | WA |
Exec Time | 125 ms |
Memory | 19680 KB |
Judge Result
Set Name | sample | all | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 700 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt |
all | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt, 01-17.txt, 01-18.txt, 01-19.txt, 01-20.txt, 01-21.txt, 01-22.txt, 01-23.txt, 01-24.txt, 01-25.txt, 01-26.txt, 01-27.txt, 01-28.txt, 01-29.txt, 01-30.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 32 ms | 3572 KB |
01-02.txt | AC | 74 ms | 10996 KB |
01-03.txt | WA | 75 ms | 11124 KB |
01-04.txt | WA | 75 ms | 11124 KB |
01-05.txt | WA | 75 ms | 10996 KB |
01-06.txt | WA | 75 ms | 11124 KB |
01-07.txt | WA | 75 ms | 10996 KB |
01-08.txt | WA | 81 ms | 12788 KB |
01-09.txt | WA | 81 ms | 13812 KB |
01-10.txt | WA | 99 ms | 14196 KB |
01-11.txt | WA | 125 ms | 15332 KB |
01-12.txt | WA | 74 ms | 11272 KB |
01-13.txt | WA | 101 ms | 14344 KB |
01-14.txt | WA | 75 ms | 11124 KB |
01-15.txt | AC | 74 ms | 11124 KB |
01-16.txt | WA | 74 ms | 10996 KB |
01-17.txt | AC | 79 ms | 12532 KB |
01-18.txt | AC | 83 ms | 13940 KB |
01-19.txt | AC | 88 ms | 14196 KB |
01-20.txt | WA | 125 ms | 19680 KB |
01-21.txt | WA | 75 ms | 10996 KB |
01-22.txt | WA | 75 ms | 10996 KB |
01-23.txt | WA | 76 ms | 11124 KB |
01-24.txt | WA | 82 ms | 13556 KB |
01-25.txt | WA | 95 ms | 14196 KB |
01-26.txt | WA | 121 ms | 14196 KB |
01-27.txt | WA | 94 ms | 11796 KB |
01-28.txt | WA | 68 ms | 4084 KB |
01-29.txt | AC | 42 ms | 3444 KB |
01-30.txt | AC | 66 ms | 3316 KB |
sample-01.txt | AC | 26 ms | 3316 KB |
sample-02.txt | WA | 26 ms | 3316 KB |