結果

問題 No.429 CupShuffle
ユーザー %20%20
提出日時 2017-01-05 01:44:23
言語 Perl
(5.38.0)
結果
AC  
実行時間 426 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 5,432 KB
実行使用メモリ 41,848 KB
最終ジャッジ日時 2023-08-25 03:19:10
合計ジャッジ時間 2,497 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,360 KB
testcase_01 AC 6 ms
5,280 KB
testcase_02 AC 6 ms
5,208 KB
testcase_03 AC 6 ms
5,172 KB
testcase_04 AC 7 ms
5,240 KB
testcase_05 AC 6 ms
5,164 KB
testcase_06 AC 7 ms
5,328 KB
testcase_07 AC 7 ms
5,316 KB
testcase_08 AC 6 ms
5,296 KB
testcase_09 AC 7 ms
5,248 KB
testcase_10 AC 45 ms
8,592 KB
testcase_11 AC 426 ms
40,164 KB
testcase_12 AC 330 ms
39,064 KB
testcase_13 AC 369 ms
41,848 KB
testcase_14 AC 317 ms
34,768 KB
testcase_15 AC 6 ms
5,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::K" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($N,$K,$X)=glob<>;
@N=0..$N;
<>=~$",@N[$`,$']=@N[$',$`]for 1..$X;
@AB=reverse<>;
@C=(0,glob shift@AB);
/ /,@C[$`,$']=@C[$',$`]for@AB;
$N[$_]!=$C[$_]and($a?$b:$a)=$_ for 1..$N;
print"$a $b\n"
0