Submission #1101370


Source Code Expand

gets;c=0;
[*$<].reverse.map{|s|a,b=s.split.map &:to_i;
		  c=(a+c-1)/b*b+b-a;}
p c

Submission Info

Submission Time
Task A - Multiple Array
User kotatsugame
Language Ruby (2.3.3)
Score 300
Code Size 85 Byte
Status AC
Exec Time 150 ms
Memory 12412 KB

Compile Error

./Main.rb:2: warning: `&' interpreted as argument prefix

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 18
Set Name Test Cases
Sample s1.txt, s2.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
01.txt AC 148 ms 12412 KB
02.txt AC 147 ms 12412 KB
03.txt AC 148 ms 12412 KB
04.txt AC 148 ms 12412 KB
05.txt AC 147 ms 12412 KB
06.txt AC 148 ms 12412 KB
07.txt AC 140 ms 12412 KB
08.txt AC 148 ms 12412 KB
09.txt AC 136 ms 12412 KB
10.txt AC 149 ms 12412 KB
11.txt AC 137 ms 12412 KB
12.txt AC 128 ms 12412 KB
13.txt AC 138 ms 12412 KB
14.txt AC 150 ms 12412 KB
15.txt AC 11 ms 1788 KB
16.txt AC 11 ms 1788 KB
s1.txt AC 11 ms 1788 KB
s2.txt AC 11 ms 1788 KB