Submission #2866457
Source Code Expand
N = gets.to_i Xs = gets.split.map(&:to_i) xs = Xs.sort n = N / 2 Xs.each{|x| puts xs.index(x) < n ? xs[n] : xs[n - 1]}
Submission Info
Submission Time | |
---|---|
Task | C - Many Medians |
User | noriakiokubo |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 124 Byte |
Status | TLE |
Exec Time | 2109 ms |
Memory | 20160 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 | AC | 7 ms | 1788 KB |
10.txt | TLE | 2108 ms | 18116 KB |
11.txt | TLE | 2109 ms | 18808 KB |
12.txt | TLE | 2108 ms | 13628 KB |
2.txt | TLE | 2108 ms | 9992 KB |
3.txt | TLE | 2108 ms | 18460 KB |
4.txt | TLE | 2109 ms | 18120 KB |
5.txt | TLE | 2108 ms | 18816 KB |
6.txt | TLE | 2108 ms | 18112 KB |
7.txt | TLE | 2108 ms | 14080 KB |
8.txt | TLE | 2108 ms | 20160 KB |
9.txt | TLE | 2109 ms | 19072 KB |
sample1.txt | AC | 7 ms | 1788 KB |
sample2.txt | AC | 7 ms | 1788 KB |
sample3.txt | AC | 7 ms | 1788 KB |