Submission #993001
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): # print(i, M-i, c[i], c[M-i]) cnt += min(c[i], c[M-i]) cnt += c[M//2] // 2 print(cnt)
Submission Info
Submission Time | |
---|---|
Task | D - Pair Cards |
User | ioryz |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 506 Byte |
Status | WA |
Exec Time | 124 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 | WA | 110 ms | 3700 KB |
01-02.txt | WA | 74 ms | 11124 KB |
01-03.txt | AC | 77 ms | 11124 KB |
01-04.txt | WA | 75 ms | 10996 KB |
01-05.txt | WA | 74 ms | 11124 KB |
01-06.txt | WA | 75 ms | 11124 KB |
01-07.txt | WA | 74 ms | 10996 KB |
01-08.txt | WA | 82 ms | 12788 KB |
01-09.txt | WA | 82 ms | 13812 KB |
01-10.txt | WA | 99 ms | 14196 KB |
01-11.txt | WA | 122 ms | 15332 KB |
01-12.txt | WA | 76 ms | 11148 KB |
01-13.txt | WA | 101 ms | 14348 KB |
01-14.txt | AC | 75 ms | 11124 KB |
01-15.txt | WA | 75 ms | 10996 KB |
01-16.txt | AC | 75 ms | 11124 KB |
01-17.txt | WA | 80 ms | 12532 KB |
01-18.txt | WA | 84 ms | 13940 KB |
01-19.txt | WA | 89 ms | 14196 KB |
01-20.txt | AC | 124 ms | 19680 KB |
01-21.txt | AC | 76 ms | 10996 KB |
01-22.txt | WA | 75 ms | 10996 KB |
01-23.txt | WA | 75 ms | 11124 KB |
01-24.txt | WA | 81 ms | 13556 KB |
01-25.txt | WA | 95 ms | 14196 KB |
01-26.txt | WA | 123 ms | 14196 KB |
01-27.txt | AC | 95 ms | 11796 KB |
01-28.txt | WA | 69 ms | 4084 KB |
01-29.txt | AC | 42 ms | 3444 KB |
01-30.txt | AC | 68 ms | 3316 KB |
sample-01.txt | WA | 26 ms | 3316 KB |
sample-02.txt | WA | 26 ms | 3316 KB |