Submission #1033442
Source Code Expand
N,*M=`dd`.split.map &:to_i;A=M.shift N;D=[*0..10**6];s=0;2.upto(N-2){|i|s+=A[i];1.upto(A[i]){|j|D.unshift D[j*2-1]}};M.map{|e|p (D[e]||e-s)+A[0]-A[1]}
Submission Info
Submission Time | |
---|---|
Task | H - Tokaido |
User | leafmoon |
Language | Ruby (2.3.3) |
Score | 1600 |
Code Size | 150 Byte |
Status | AC |
Exec Time | 1900 ms |
Memory | 88496 KB |
Compile Error
./Main.rb:1: warning: `&' interpreted as argument prefix
Judge Result
Set Name | sample | dataset1 | dataset2 | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 700 / 700 | 900 / 900 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt |
dataset1 | sample-01.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 |
dataset2 | 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, 02-01.txt, 02-02.txt, 02-03.txt, 02-04.txt, 02-05.txt, 02-06.txt, 02-07.txt, 02-08.txt, 02-09.txt, 02-10.txt, 02-11.txt, 02-12.txt, 02-13.txt, 02-14.txt, 02-15.txt, 02-16.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 305 ms | 41536 KB |
01-02.txt | AC | 70 ms | 17540 KB |
01-03.txt | AC | 191 ms | 27456 KB |
01-04.txt | AC | 257 ms | 33720 KB |
01-05.txt | AC | 305 ms | 41480 KB |
01-06.txt | AC | 304 ms | 41484 KB |
01-07.txt | AC | 226 ms | 31360 KB |
01-08.txt | AC | 306 ms | 41488 KB |
01-09.txt | AC | 304 ms | 41536 KB |
01-10.txt | AC | 191 ms | 27396 KB |
01-11.txt | AC | 220 ms | 29828 KB |
01-12.txt | AC | 300 ms | 40972 KB |
01-13.txt | AC | 303 ms | 41480 KB |
01-14.txt | AC | 301 ms | 41404 KB |
01-15.txt | AC | 305 ms | 41484 KB |
01-16.txt | AC | 296 ms | 41484 KB |
01-17.txt | AC | 173 ms | 31804 KB |
01-18.txt | AC | 174 ms | 31756 KB |
01-19.txt | AC | 175 ms | 31756 KB |
02-01.txt | AC | 418 ms | 35460 KB |
02-02.txt | AC | 1900 ms | 80692 KB |
02-03.txt | AC | 1851 ms | 79032 KB |
02-04.txt | AC | 1849 ms | 78932 KB |
02-05.txt | AC | 1753 ms | 62964 KB |
02-06.txt | AC | 1852 ms | 78788 KB |
02-07.txt | AC | 1842 ms | 79164 KB |
02-08.txt | AC | 1770 ms | 63416 KB |
02-09.txt | AC | 1790 ms | 63476 KB |
02-10.txt | AC | 1817 ms | 88496 KB |
02-11.txt | AC | 1859 ms | 79888 KB |
02-12.txt | AC | 1880 ms | 80316 KB |
02-13.txt | AC | 1849 ms | 79964 KB |
02-14.txt | AC | 1850 ms | 79832 KB |
02-15.txt | AC | 1763 ms | 70364 KB |
02-16.txt | AC | 1732 ms | 70368 KB |
sample-01.txt | AC | 78 ms | 21504 KB |
sample-02.txt | AC | 78 ms | 21508 KB |