Submission #2384090
Source Code Expand
N = int(input()) b = [int(i) for i in input().split()] b.sort() s = b[(N-1)//2] l = b[N//2] for i in range(N): if i > s: print(s) else: print(l)
Submission Info
Submission Time | |
---|---|
Task | C - Many Medians |
User | wrb0312 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 177 Byte |
Status | WA |
Exec Time | 313 ms |
Memory | 26016 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 10.txt, 11.txt, 12.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | WA | 16 ms | 3060 KB |
10.txt | WA | 278 ms | 25472 KB |
11.txt | AC | 252 ms | 24928 KB |
12.txt | AC | 170 ms | 20116 KB |
2.txt | WA | 149 ms | 13672 KB |
3.txt | WA | 296 ms | 25224 KB |
4.txt | WA | 280 ms | 24036 KB |
5.txt | WA | 313 ms | 25620 KB |
6.txt | WA | 303 ms | 23820 KB |
7.txt | WA | 230 ms | 19444 KB |
8.txt | WA | 298 ms | 23828 KB |
9.txt | WA | 295 ms | 26016 KB |
sample1.txt | WA | 17 ms | 2940 KB |
sample2.txt | WA | 17 ms | 2940 KB |
sample3.txt | AC | 17 ms | 2940 KB |