結果

問題 No.429 CupShuffle
ユーザー tailstails
提出日時 2016-10-03 00:03:41
言語 Perl
(5.38.2)
結果
AC  
実行時間 831 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 5,384 KB
実行使用メモリ 61,376 KB
最終ジャッジ日時 2023-08-25 03:16:03
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,452 KB
testcase_01 AC 6 ms
5,228 KB
testcase_02 AC 6 ms
5,304 KB
testcase_03 AC 6 ms
5,104 KB
testcase_04 AC 9 ms
5,576 KB
testcase_05 AC 6 ms
5,356 KB
testcase_06 AC 10 ms
5,456 KB
testcase_07 AC 10 ms
5,644 KB
testcase_08 AC 7 ms
5,120 KB
testcase_09 AC 11 ms
5,548 KB
testcase_10 AC 80 ms
10,720 KB
testcase_11 AC 831 ms
61,296 KB
testcase_12 AC 694 ms
61,376 KB
testcase_13 AC 755 ms
61,364 KB
testcase_14 AC 720 ms
61,312 KB
testcase_15 AC 6 ms
5,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$k,$x)=glob<>;
$a[$_]=[glob<>]for 1..$k;
@c=(0,glob<>);
@d=0..$n;
@d[@$_]=@d[@$_[1,0]]for@a[1..$x-1];
@c[@$_]=@c[@$_[1,0]]for@a[reverse$x+1..$k];
print"@{[grep$c[$_]-$d[$_],1..$n]}";
0