Submission #1033468


Source Code Expand

N,*M=`dd`.split.map &:to_i;X,Y,*A,_=M.shift N;D=[*0..1e6];s=0;A.map{|e|1.upto(e){|j|D.unshift D[j*2-1]};s+=e};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 137 Byte
Status AC
Exec Time 1957 ms
Memory 88512 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
AC × 2
AC × 20
AC × 37
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 392 ms 44532 KB
01-02.txt AC 158 ms 17532 KB
01-03.txt AC 282 ms 27524 KB
01-04.txt AC 345 ms 35156 KB
01-05.txt AC 392 ms 44528 KB
01-06.txt AC 393 ms 44528 KB
01-07.txt AC 311 ms 32188 KB
01-08.txt AC 391 ms 44404 KB
01-09.txt AC 395 ms 44652 KB
01-10.txt AC 279 ms 27392 KB
01-11.txt AC 306 ms 30288 KB
01-12.txt AC 388 ms 43944 KB
01-13.txt AC 394 ms 44528 KB
01-14.txt AC 390 ms 44292 KB
01-15.txt AC 392 ms 44528 KB
01-16.txt AC 385 ms 44528 KB
01-17.txt AC 266 ms 34796 KB
01-18.txt AC 265 ms 34800 KB
01-19.txt AC 263 ms 34796 KB
02-01.txt AC 503 ms 35788 KB
02-02.txt AC 1942 ms 80636 KB
02-03.txt AC 1937 ms 79296 KB
02-04.txt AC 1908 ms 79128 KB
02-05.txt AC 1843 ms 61388 KB
02-06.txt AC 1920 ms 79116 KB
02-07.txt AC 1957 ms 79372 KB
02-08.txt AC 1875 ms 61852 KB
02-09.txt AC 1855 ms 61776 KB
02-10.txt AC 1889 ms 88512 KB
02-11.txt AC 1943 ms 80164 KB
02-12.txt AC 1931 ms 80296 KB
02-13.txt AC 1947 ms 80092 KB
02-14.txt AC 1947 ms 80164 KB
02-15.txt AC 1833 ms 62496 KB
02-16.txt AC 1789 ms 62492 KB
sample-01.txt AC 165 ms 21512 KB
sample-02.txt AC 166 ms 21512 KB