Submission #2835499
Source Code Expand
n, c = map(int, input().split()) l = sorted([int(input()) for _ in range(n)]) if n == 1: print(1) else: i = 0 j = n - 1 ans = 0 while i < j: if l[i] + l[j] <= c - 1: ans += 1 i += 1 j -= 1 else: ans += 1 j -= 1 print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - 収納 |
User | anagohirame |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 295 Byte |
Status | WA |
Exec Time | 229 ms |
Memory | 8280 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
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, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | WA | 228 ms | 8276 KB |
02.txt | WA | 225 ms | 8280 KB |
03.txt | WA | 222 ms | 8012 KB |
04.txt | WA | 221 ms | 8276 KB |
05.txt | AC | 213 ms | 6904 KB |
06.txt | WA | 189 ms | 4632 KB |
07.txt | AC | 183 ms | 7848 KB |
08.txt | AC | 216 ms | 8164 KB |
09.txt | AC | 228 ms | 8272 KB |
10.txt | WA | 194 ms | 4628 KB |
11.txt | AC | 229 ms | 8276 KB |
12.txt | AC | 228 ms | 8276 KB |
13.txt | AC | 215 ms | 7628 KB |
sample_01.txt | WA | 17 ms | 3060 KB |
sample_02.txt | WA | 17 ms | 3060 KB |
sample_03.txt | AC | 17 ms | 3060 KB |