Submission #2552780


Source Code Expand

($n,$k)=glob<>;/ /,push@d,$'+!push@w,$`for<>;$f=2e18;while($f-$l>1){$m=$l+$f>>1;$c=0;$c+=$m<$w[$_]?0:1+($m-$w[$_])/$d[$_]|0for 0..$n-1;${$c<$k?l:f}=$m}print$f

Submission Info

Submission Time
Task C - Garden
User kotatsugame
Language Perl (v5.18.2)
Score 0
Code Size 158 Byte
Status WA
Exec Time 2105 ms
Memory 32000 KB

Compile Error

Unquoted string "l" may clash with future reserved word at ./Main.pl line 1.
Unquoted string "f" may clash with future reserved word at ./Main.pl line 1.
./Main.pl syntax OK

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 2
WA × 1
AC × 16
WA × 1
TLE × 6
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23
Case Name Status Exec Time Memory
a01 AC 5 ms 768 KB
a02 AC 5 ms 768 KB
a03 WA 5 ms 768 KB
b04 AC 5 ms 768 KB
b05 TLE 2104 ms 32000 KB
b06 TLE 2105 ms 29952 KB
b07 TLE 2105 ms 29952 KB
b08 TLE 2105 ms 29952 KB
b09 TLE 2029 ms 29952 KB
b10 TLE 2094 ms 29952 KB
b11 AC 841 ms 29952 KB
b12 AC 806 ms 29952 KB
b13 AC 897 ms 29952 KB
b14 AC 1119 ms 29952 KB
b15 AC 838 ms 29952 KB
b16 AC 799 ms 29952 KB
b17 AC 892 ms 29952 KB
b18 AC 1077 ms 32000 KB
b19 AC 840 ms 29952 KB
b20 AC 926 ms 29952 KB
b21 AC 896 ms 29952 KB
b22 AC 1092 ms 29952 KB
b23 AC 1411 ms 29952 KB