Submission #2893821
Source Code Expand
from statistics import median_low, median_high n = int(input()) xs = [int(x) for x in input().split()] m1, m2 = median_low(xs), median_high(xs) medians = (str(m2 if x < m2 else m1) for x in xs) print('\n'.join(medians))
Submission Info
Submission Time | |
---|---|
Task | C - Many Medians |
User | zehnpaard |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 230 Byte |
Status | AC |
Exec Time | 304 ms |
Memory | 30760 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 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 | AC | 41 ms | 5272 KB |
10.txt | AC | 285 ms | 28800 KB |
11.txt | AC | 183 ms | 26860 KB |
12.txt | AC | 140 ms | 22440 KB |
2.txt | AC | 156 ms | 16704 KB |
3.txt | AC | 294 ms | 29824 KB |
4.txt | AC | 283 ms | 28680 KB |
5.txt | AC | 297 ms | 29992 KB |
6.txt | AC | 289 ms | 29196 KB |
7.txt | AC | 234 ms | 24156 KB |
8.txt | AC | 289 ms | 29192 KB |
9.txt | AC | 304 ms | 30760 KB |
sample1.txt | AC | 35 ms | 5144 KB |
sample2.txt | AC | 36 ms | 5144 KB |
sample3.txt | AC | 35 ms | 5144 KB |