Submission #7580605


Source Code Expand

Copy
$s+=($.*=$_)%=$==1e9+7for<>=~/ .* /..$`;($n-=$_[-$']-($\=$_[@_]=($s%$=*$n+$.*($_<=$'))%$=))%=$=for 1..$&;print

Submission Info

Submission Time
Task E - Balanced Piles
User x20
Language Perl (v5.18.2)
Score 800
Code Size 110 Byte
Status
Exec Time 1923 ms
Memory 33024 KB

Compile Error

./Main.pl syntax OK

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 s1.txt, s2.txt, s3.txt
All 800 / 800 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, 17.txt, 18.txt, 19.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 30.txt, 31.txt, 32.txt, 33.txt, 34.txt, 35.txt, 36.txt, 37.txt, 38.txt, 39.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt 3 ms 512 KB
02.txt 2 ms 384 KB
03.txt 3 ms 512 KB
04.txt 2 ms 384 KB
05.txt 2 ms 384 KB
06.txt 2 ms 384 KB
07.txt 2 ms 384 KB
08.txt 2 ms 384 KB
09.txt 719 ms 16768 KB
10.txt 909 ms 20992 KB
11.txt 1333 ms 30080 KB
12.txt 30 ms 1152 KB
13.txt 395 ms 9728 KB
14.txt 150 ms 3968 KB
15.txt 410 ms 9728 KB
16.txt 36 ms 640 KB
17.txt 29 ms 512 KB
18.txt 390 ms 512 KB
19.txt 230 ms 384 KB
20.txt 180 ms 640 KB
21.txt 757 ms 10240 KB
22.txt 1135 ms 20224 KB
23.txt 1688 ms 32768 KB
24.txt 1259 ms 26752 KB
25.txt 427 ms 2432 KB
26.txt 1846 ms 33024 KB
27.txt 1874 ms 32896 KB
28.txt 1863 ms 33024 KB
29.txt 1846 ms 33024 KB
30.txt 1849 ms 33024 KB
31.txt 1803 ms 33024 KB
32.txt 1809 ms 33024 KB
33.txt 1798 ms 33024 KB
34.txt 1820 ms 33024 KB
35.txt 1777 ms 32896 KB
36.txt 1923 ms 33024 KB
37.txt 1809 ms 33024 KB
38.txt 2 ms 384 KB
39.txt 1411 ms 33024 KB
s1.txt 2 ms 384 KB
s2.txt 2 ms 384 KB
s3.txt 28 ms 768 KB