Submission #1033452
Source Code Expand
N,*M=`dd`.split.map &:to_i;X,Y,*A=M.shift N;D=[*0..1e6];s=0;(N-3).times{|i|s+=A[i];1.upto(A[i]){|j|D.unshift D[j*2-1]}};M.map{|e|p (D[e]||e-s)+X-Y}
Submission Info
Submission Time | |
---|---|
Task | H - Tokaido |
User | leafmoon |
Language | Ruby (2.3.3) |
Score | 1600 |
Code Size | 147 Byte |
Status | AC |
Exec Time | 1996 ms |
Memory | 86848 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 | 391 ms | 41584 KB |
01-02.txt | AC | 159 ms | 17536 KB |
01-03.txt | AC | 284 ms | 27516 KB |
01-04.txt | AC | 345 ms | 33744 KB |
01-05.txt | AC | 390 ms | 41456 KB |
01-06.txt | AC | 392 ms | 41460 KB |
01-07.txt | AC | 313 ms | 31416 KB |
01-08.txt | AC | 394 ms | 41456 KB |
01-09.txt | AC | 390 ms | 41584 KB |
01-10.txt | AC | 278 ms | 27400 KB |
01-11.txt | AC | 309 ms | 29776 KB |
01-12.txt | AC | 389 ms | 41004 KB |
01-13.txt | AC | 392 ms | 41460 KB |
01-14.txt | AC | 390 ms | 41348 KB |
01-15.txt | AC | 392 ms | 41452 KB |
01-16.txt | AC | 400 ms | 41460 KB |
01-17.txt | AC | 265 ms | 31728 KB |
01-18.txt | AC | 263 ms | 31728 KB |
01-19.txt | AC | 263 ms | 31728 KB |
02-01.txt | AC | 505 ms | 35272 KB |
02-02.txt | AC | 1962 ms | 79108 KB |
02-03.txt | AC | 1996 ms | 77512 KB |
02-04.txt | AC | 1935 ms | 77212 KB |
02-05.txt | AC | 1858 ms | 61396 KB |
02-06.txt | AC | 1981 ms | 77452 KB |
02-07.txt | AC | 1961 ms | 77708 KB |
02-08.txt | AC | 1884 ms | 61796 KB |
02-09.txt | AC | 1897 ms | 61776 KB |
02-10.txt | AC | 1925 ms | 86848 KB |
02-11.txt | AC | 1969 ms | 78372 KB |
02-12.txt | AC | 1996 ms | 78444 KB |
02-13.txt | AC | 1970 ms | 78240 KB |
02-14.txt | AC | 1979 ms | 78376 KB |
02-15.txt | AC | 1863 ms | 68900 KB |
02-16.txt | AC | 1843 ms | 68768 KB |
sample-01.txt | AC | 166 ms | 21504 KB |
sample-02.txt | AC | 166 ms | 21504 KB |