Submission #549420


Source Code Expand

<>;$_='@b=sort{$b<=>$a}<>=~/\d+/g;'x2;s/b/a/;eval;$_>$a[$i++]&&($x=NO)for@b;print$x||YES,$/

Submission Info

Submission Time
Task C - Hotel
User x20
Language Perl (5.14.2)
Score 100
Code Size 91 Byte
Status AC
Exec Time 410 ms
Memory 32700 KB

Compile Error

Name "main::a" used only once: possible typo at ./Main.pl line 1.
Name "main::b" used only once: possible typo at ./Main.pl line 1.
Name "main::i" used only once: possible typo at ./Main.pl line 1.
./Main.pl syntax OK

Judge Result

Set Name Sample Dataset1 Dataset2
Score / Max Score 0 / 0 60 / 60 40 / 40
Status
AC × 4
AC × 29
AC × 55
Set Name Test Cases
Sample 0-sample-1.txt, 0-sample-2.txt, 0-sample-3.txt, 0-sample-4.txt
Dataset1 0-sample-1.txt, 0-sample-2.txt, 0-sample-3.txt, 0-sample-4.txt, 1-max-0.txt, 1-max-1.txt, 1-max-2.txt, 1-max-3.txt, 1-max-4.txt, 1-random-00.txt, 1-random-01.txt, 1-random-02.txt, 1-random-03.txt, 1-random-04.txt, 1-random-05.txt, 1-random-06.txt, 1-random-07.txt, 1-random-08.txt, 1-random-09.txt, 1-random-10.txt, 1-random-11.txt, 1-random-12.txt, 1-random-13.txt, 1-random-14.txt, 1-random-15.txt, 1-random-16.txt, 1-random-17.txt, 1-random-18.txt, 1-random-19.txt
Dataset2 0-sample-1.txt, 0-sample-2.txt, 0-sample-3.txt, 0-sample-4.txt, 1-max-0.txt, 1-max-1.txt, 1-max-2.txt, 1-max-3.txt, 1-max-4.txt, 1-random-00.txt, 1-random-01.txt, 1-random-02.txt, 1-random-03.txt, 1-random-04.txt, 1-random-05.txt, 1-random-06.txt, 1-random-07.txt, 1-random-08.txt, 1-random-09.txt, 1-random-10.txt, 1-random-11.txt, 1-random-12.txt, 1-random-13.txt, 1-random-14.txt, 1-random-15.txt, 1-random-16.txt, 1-random-17.txt, 1-random-18.txt, 1-random-19.txt, 2-max-0.txt, 2-max-1.txt, 2-max-2.txt, 2-max-3.txt, 2-max-4.txt, 2-max-5.txt, 2-random-00.txt, 2-random-01.txt, 2-random-02.txt, 2-random-03.txt, 2-random-04.txt, 2-random-05.txt, 2-random-06.txt, 2-random-07.txt, 2-random-08.txt, 2-random-09.txt, 2-random-10.txt, 2-random-11.txt, 2-random-12.txt, 2-random-13.txt, 2-random-14.txt, 2-random-15.txt, 2-random-16.txt, 2-random-17.txt, 2-random-18.txt, 2-random-19.txt
Case Name Status Exec Time Memory
0-sample-1.txt AC 27 ms 992 KB
0-sample-2.txt AC 27 ms 936 KB
0-sample-3.txt AC 28 ms 980 KB
0-sample-4.txt AC 29 ms 932 KB
1-max-0.txt AC 28 ms 1044 KB
1-max-1.txt AC 29 ms 1044 KB
1-max-2.txt AC 29 ms 928 KB
1-max-3.txt AC 28 ms 1060 KB
1-max-4.txt AC 28 ms 928 KB
1-random-00.txt AC 28 ms 1044 KB
1-random-01.txt AC 28 ms 936 KB
1-random-02.txt AC 29 ms 928 KB
1-random-03.txt AC 30 ms 1052 KB
1-random-04.txt AC 29 ms 932 KB
1-random-05.txt AC 28 ms 992 KB
1-random-06.txt AC 28 ms 928 KB
1-random-07.txt AC 26 ms 920 KB
1-random-08.txt AC 28 ms 928 KB
1-random-09.txt AC 27 ms 1044 KB
1-random-10.txt AC 27 ms 1052 KB
1-random-11.txt AC 27 ms 1044 KB
1-random-12.txt AC 28 ms 1048 KB
1-random-13.txt AC 27 ms 984 KB
1-random-14.txt AC 27 ms 984 KB
1-random-15.txt AC 26 ms 1040 KB
1-random-16.txt AC 28 ms 924 KB
1-random-17.txt AC 28 ms 928 KB
1-random-18.txt AC 28 ms 1048 KB
1-random-19.txt AC 29 ms 1048 KB
2-max-0.txt AC 403 ms 32700 KB
2-max-1.txt AC 402 ms 32696 KB
2-max-2.txt AC 401 ms 32692 KB
2-max-3.txt AC 410 ms 32692 KB
2-max-4.txt AC 400 ms 32700 KB
2-max-5.txt AC 399 ms 32684 KB
2-random-00.txt AC 257 ms 21152 KB
2-random-01.txt AC 295 ms 25624 KB
2-random-02.txt AC 297 ms 23796 KB
2-random-03.txt AC 285 ms 22948 KB
2-random-04.txt AC 161 ms 12504 KB
2-random-05.txt AC 131 ms 10116 KB
2-random-06.txt AC 148 ms 12088 KB
2-random-07.txt AC 60 ms 4252 KB
2-random-08.txt AC 320 ms 26280 KB
2-random-09.txt AC 216 ms 20980 KB
2-random-10.txt AC 135 ms 12068 KB
2-random-11.txt AC 241 ms 20828 KB
2-random-12.txt AC 356 ms 29292 KB
2-random-13.txt AC 282 ms 23628 KB
2-random-14.txt AC 89 ms 7964 KB
2-random-15.txt AC 66 ms 5016 KB
2-random-16.txt AC 197 ms 16760 KB
2-random-17.txt AC 167 ms 13944 KB
2-random-18.txt AC 186 ms 16712 KB
2-random-19.txt AC 125 ms 10356 KB