Submission #214323


Source Code Expand

Copy
chomp(my $l1 = <>);
chomp(my $l2 = <>);

my ($N, $M, $D) = split(/\s/, $l1);
my @A = split(/\s/, $l2);

my @S;
foreach my $n (0..$N-1) {
    $S[$n] = $n;
}

foreach my $d (1..($D % ($M + 1))) {
    foreach my $t (@A) {
        ($S[$t-1], $S[$t]) = ($S[$t], $S[$t-1]);
    }
}

my @R;
foreach my $t (@S) {
    $R[$S[$t]] = $t;
}

foreach my $k (1..$N) {
    my $r = $R[$k-1] + 1;
    print "$r\n";
}

Submission Info

Submission Time
Task D - 阿弥陀
User ktnyt
Language Perl (5.14.2)
Score 10
Code Size 425 Byte
Status WA
Exec Time 4034 ms
Memory 37232 KB

Compile Error

./Main.pl syntax OK

Judge Result

Set Name Subtask1 Subtask2 Subtask3 Subtask4
Score / Max Score 10 / 10 0 / 20 0 / 20 0 / 50
Status
AC × 9
AC × 15
WA × 1
TLE × 2
AC × 3
WA × 1
TLE × 14
AC × 3
TLE × 26
Set Name Test Cases
Subtask1 sample_1.txt, 01_i.txt, 01_random01.txt, 01_random02.txt, 01_random03.txt, 01_random04.txt, 01_random05.txt, 01_random06.txt, 01_random07.txt
Subtask2 sample_1.txt, sample_2.txt, sample_3.txt, 02_i.txt, 02_p.txt, 02_random01.txt, 02_random02.txt, 02_random03.txt, 02_random04.txt, 02_random05.txt, 02_random06.txt, 02_random07.txt, 02_random08.txt, 02_rp01.txt, 02_rp02.txt, 02_rp03.txt, 02_rp04.txt, 02_rp05.txt
Subtask3 sample_1.txt, sample_2.txt, 03_i.txt, 03_random01.txt, 03_random02.txt, 03_random03.txt, 03_random04.txt, 03_random05.txt, 03_random06.txt, 03_random07.txt, 03_random08.txt, 03_random09.txt, 03_random10.txt, 03_random11.txt, 03_random12.txt, 03_random13.txt, 03_random14.txt, 03_random15.txt
Subtask4 sample_1.txt, sample_2.txt, sample_3.txt, 04_i.txt, 04_p1.txt, 04_p2.txt, 04_random01.txt, 04_random02.txt, 04_random03.txt, 04_random04.txt, 04_random05.txt, 04_random06.txt, 04_random07.txt, 04_random08.txt, 04_random09.txt, 04_random10.txt, 04_random11.txt, 04_random12.txt, 04_random13.txt, 04_rp01.txt, 04_rp02.txt, 04_rp03.txt, 04_rp04.txt, 04_rp05.txt, 04_rp06.txt, 04_rp07.txt, 04_rp08.txt, 04_rp09.txt, 04_rp10.txt
Case Name Status Exec Time Memory
01_i.txt AC 480 ms 37232 KB
01_random01.txt AC 27 ms 988 KB
01_random02.txt AC 23 ms 1056 KB
01_random03.txt AC 24 ms 936 KB
01_random04.txt AC 42 ms 2732 KB
01_random05.txt AC 177 ms 12452 KB
01_random06.txt AC 421 ms 29224 KB
01_random07.txt AC 480 ms 37228 KB
02_i.txt AC 1203 ms 1312 KB
02_p.txt WA 60 ms 1132 KB
02_random01.txt AC 24 ms 1048 KB
02_random02.txt AC 24 ms 936 KB
02_random03.txt AC 237 ms 1648 KB
02_random04.txt AC 23 ms 1180 KB
02_random05.txt AC 2486 ms 4260 KB
02_random06.txt AC 296 ms 17072 KB
02_random07.txt TLE 4033 ms 33264 KB
02_random08.txt TLE 4034 ms 33384 KB
02_rp01.txt AC 346 ms 1188 KB
02_rp02.txt AC 314 ms 1188 KB
02_rp03.txt AC 98 ms 1188 KB
02_rp04.txt AC 320 ms 1176 KB
02_rp05.txt AC 335 ms 1140 KB
03_i.txt AC 24 ms 1060 KB
03_random01.txt TLE 4030 ms 3876 KB
03_random02.txt TLE 4033 ms 31808 KB
03_random03.txt TLE 4032 ms 26476 KB
03_random04.txt TLE 4033 ms 26104 KB
03_random05.txt TLE 4031 ms 6056 KB
03_random06.txt TLE 4030 ms 5404 KB
03_random07.txt TLE 4030 ms 8308 KB
03_random08.txt WA 2882 ms 1568 KB
03_random09.txt TLE 4030 ms 10268 KB
03_random10.txt TLE 4031 ms 17772 KB
03_random11.txt TLE 4034 ms 30316 KB
03_random12.txt TLE 4034 ms 31332 KB
03_random13.txt TLE 4033 ms 24564 KB
03_random14.txt TLE 4033 ms 19772 KB
03_random15.txt TLE 4032 ms 8220 KB
04_i.txt TLE 4034 ms 34732 KB
04_p1.txt TLE 4033 ms 18288 KB
04_p2.txt TLE 4032 ms 14960 KB
04_random01.txt TLE 4032 ms 18548 KB
04_random02.txt TLE 4032 ms 9068 KB
04_random03.txt TLE 4031 ms 17964 KB
04_random04.txt TLE 4033 ms 31984 KB
04_random05.txt TLE 4033 ms 25964 KB
04_random06.txt TLE 4032 ms 15596 KB
04_random07.txt TLE 4034 ms 33268 KB
04_random08.txt TLE 4034 ms 28276 KB
04_random09.txt TLE 4033 ms 33780 KB
04_random10.txt TLE 4031 ms 10988 KB
04_random11.txt TLE 4034 ms 34756 KB
04_random12.txt TLE 4034 ms 34672 KB
04_random13.txt TLE 4033 ms 34660 KB
04_rp01.txt TLE 4033 ms 18420 KB
04_rp02.txt TLE 4031 ms 18412 KB
04_rp03.txt TLE 4032 ms 18368 KB
04_rp04.txt TLE 4032 ms 18416 KB
04_rp05.txt TLE 4033 ms 18348 KB
04_rp06.txt TLE 4031 ms 18408 KB
04_rp07.txt TLE 4032 ms 18428 KB
04_rp08.txt TLE 4033 ms 18416 KB
04_rp09.txt TLE 4032 ms 18416 KB
04_rp10.txt TLE 4033 ms 18424 KB
sample_1.txt AC 23 ms 984 KB
sample_2.txt AC 23 ms 988 KB
sample_3.txt AC 23 ms 932 KB