Submission #214108


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 (1..$N) {
    $S{$n} = $n;
}

foreach my $t (@A) {
    ($S{$t}, $S{$t+1}) = ($S{$t+1}, $S{$t});
}

my %R;
foreach my $t (keys %S) {
    $R{$S{$t}} = $t;
}

foreach my $k (1..$N) {
    my $r = $k;
    foreach my $d (1..$D) {
        $r = $R{$r};
    }
    print "$r\n";
}

Submission Info

Submission Time
Task D - 阿弥陀
User ktnyt
Language Perl (5.14.2)
Score 30
Code Size 421 Byte
Status TLE
Exec Time 4037 ms
Memory 54520 KB

Compile Error

./Main.pl syntax OK

Judge Result

Set Name Subtask1 Subtask2 Subtask3 Subtask4
Score / Max Score 10 / 10 20 / 20 0 / 20 0 / 50
Status
AC × 9
AC × 18
AC × 2
TLE × 16
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 1199 ms 54508 KB
01_random01.txt AC 23 ms 988 KB
01_random02.txt AC 22 ms 924 KB
01_random03.txt AC 23 ms 1060 KB
01_random04.txt AC 54 ms 3112 KB
01_random05.txt AC 647 ms 34080 KB
01_random06.txt AC 1112 ms 47600 KB
01_random07.txt AC 1319 ms 54520 KB
02_i.txt AC 353 ms 1568 KB
02_p.txt AC 308 ms 1316 KB
02_random01.txt AC 23 ms 1056 KB
02_random02.txt AC 22 ms 1056 KB
02_random03.txt AC 57 ms 1888 KB
02_random04.txt AC 353 ms 1256 KB
02_random05.txt AC 141 ms 4320 KB
02_random06.txt AC 249 ms 17200 KB
02_random07.txt AC 746 ms 33392 KB
02_random08.txt AC 750 ms 33324 KB
02_rp01.txt AC 178 ms 1396 KB
02_rp02.txt AC 186 ms 1320 KB
02_rp03.txt AC 61 ms 1316 KB
02_rp04.txt AC 168 ms 1320 KB
02_rp05.txt AC 176 ms 1328 KB
03_i.txt TLE 4028 ms 1052 KB
03_random01.txt TLE 4029 ms 3884 KB
03_random02.txt TLE 4033 ms 31732 KB
03_random03.txt TLE 4032 ms 26476 KB
03_random04.txt TLE 4032 ms 26096 KB
03_random05.txt TLE 4030 ms 6052 KB
03_random06.txt TLE 4031 ms 5344 KB
03_random07.txt TLE 4030 ms 8232 KB
03_random08.txt TLE 4029 ms 1572 KB
03_random09.txt TLE 4030 ms 10276 KB
03_random10.txt TLE 4031 ms 17772 KB
03_random11.txt TLE 4031 ms 30312 KB
03_random12.txt TLE 4033 ms 31344 KB
03_random13.txt TLE 4032 ms 24448 KB
03_random14.txt TLE 4031 ms 19828 KB
03_random15.txt TLE 4030 ms 8240 KB
04_i.txt TLE 4037 ms 54132 KB
04_p1.txt TLE 4033 ms 40056 KB
04_p2.txt TLE 4033 ms 32556 KB
04_random01.txt TLE 4033 ms 29296 KB
04_random02.txt TLE 4031 ms 18728 KB
04_random03.txt TLE 4031 ms 19832 KB
04_random04.txt TLE 4033 ms 33516 KB
04_random05.txt TLE 4032 ms 28268 KB
04_random06.txt TLE 4032 ms 27884 KB
04_random07.txt TLE 4032 ms 39792 KB
04_random08.txt TLE 4032 ms 33400 KB
04_random09.txt TLE 4032 ms 36972 KB
04_random10.txt TLE 4031 ms 24168 KB
04_random11.txt TLE 4033 ms 54120 KB
04_random12.txt TLE 4034 ms 54128 KB
04_random13.txt TLE 4034 ms 54124 KB
04_rp01.txt TLE 4033 ms 40180 KB
04_rp02.txt TLE 4034 ms 40108 KB
04_rp03.txt TLE 4033 ms 40180 KB
04_rp04.txt TLE 4033 ms 40176 KB
04_rp05.txt TLE 4034 ms 40176 KB
04_rp06.txt TLE 4034 ms 40068 KB
04_rp07.txt TLE 4033 ms 40180 KB
04_rp08.txt TLE 4034 ms 40180 KB
04_rp09.txt TLE 4032 ms 40168 KB
04_rp10.txt TLE 4034 ms 40180 KB
sample_1.txt AC 23 ms 932 KB
sample_2.txt AC 22 ms 1056 KB
sample_3.txt AC 23 ms 1056 KB