Submission #214217


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 $d (1..($D % ($M + 1))) {
    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 = $R{$k};
    print "$r\n";
}

Submission Info

Submission Time
Task D - 阿弥陀
User ktnyt
Language Perl (5.14.2)
Score 10
Code Size 422 Byte
Status WA
Exec Time 4038 ms
Memory 54576 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 × 14
WA × 1
TLE × 3
AC × 3
TLE × 15
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 1233 ms 54576 KB
01_random01.txt AC 253 ms 1064 KB
01_random02.txt AC 25 ms 936 KB
01_random03.txt AC 24 ms 1056 KB
01_random04.txt AC 54 ms 3096 KB
01_random05.txt AC 698 ms 34092 KB
01_random06.txt AC 1029 ms 47600 KB
01_random07.txt AC 1284 ms 54504 KB
02_i.txt AC 2402 ms 1504 KB
02_p.txt WA 89 ms 1316 KB
02_random01.txt AC 24 ms 924 KB
02_random02.txt AC 24 ms 940 KB
02_random03.txt AC 432 ms 1704 KB
02_random04.txt AC 26 ms 1192 KB
02_random05.txt TLE 4031 ms 4380 KB
02_random06.txt AC 487 ms 17264 KB
02_random07.txt TLE 4034 ms 33400 KB
02_random08.txt TLE 4036 ms 33524 KB
02_rp01.txt AC 663 ms 1320 KB
02_rp02.txt AC 609 ms 1316 KB
02_rp03.txt AC 172 ms 1372 KB
02_rp04.txt AC 611 ms 1312 KB
02_rp05.txt AC 631 ms 1312 KB
03_i.txt AC 24 ms 928 KB
03_random01.txt TLE 4030 ms 3872 KB
03_random02.txt TLE 4034 ms 31728 KB
03_random03.txt TLE 4033 ms 26484 KB
03_random04.txt TLE 4033 ms 26092 KB
03_random05.txt TLE 4031 ms 6052 KB
03_random06.txt TLE 4031 ms 5404 KB
03_random07.txt TLE 4030 ms 8308 KB
03_random08.txt TLE 4028 ms 1576 KB
03_random09.txt TLE 4031 ms 10284 KB
03_random10.txt TLE 4033 ms 17724 KB
03_random11.txt TLE 4032 ms 30320 KB
03_random12.txt TLE 4032 ms 31348 KB
03_random13.txt TLE 4033 ms 24452 KB
03_random14.txt TLE 4032 ms 19884 KB
03_random15.txt TLE 4030 ms 8228 KB
04_i.txt TLE 4035 ms 48236 KB
04_p1.txt TLE 4034 ms 31856 KB
04_p2.txt TLE 4032 ms 25892 KB
04_random01.txt TLE 4035 ms 25960 KB
04_random02.txt TLE 4031 ms 15092 KB
04_random03.txt TLE 4031 ms 19440 KB
04_random04.txt TLE 4036 ms 33144 KB
04_random05.txt TLE 4033 ms 27896 KB
04_random06.txt TLE 4032 ms 23660 KB
04_random07.txt TLE 4038 ms 38204 KB
04_random08.txt TLE 4033 ms 32364 KB
04_random09.txt TLE 4033 ms 36140 KB
04_random10.txt TLE 4031 ms 19184 KB
04_random11.txt TLE 4034 ms 48364 KB
04_random12.txt TLE 4035 ms 48244 KB
04_random13.txt TLE 4035 ms 48376 KB
04_rp01.txt TLE 4032 ms 31980 KB
04_rp02.txt TLE 4034 ms 31976 KB
04_rp03.txt TLE 4035 ms 31984 KB
04_rp04.txt TLE 4033 ms 31984 KB
04_rp05.txt TLE 4034 ms 31976 KB
04_rp06.txt TLE 4033 ms 32044 KB
04_rp07.txt TLE 4033 ms 32064 KB
04_rp08.txt TLE 4035 ms 31984 KB
04_rp09.txt TLE 4033 ms 31984 KB
04_rp10.txt TLE 4033 ms 32036 KB
sample_1.txt AC 24 ms 1052 KB
sample_2.txt AC 25 ms 1060 KB
sample_3.txt AC 23 ms 936 KB