結果

問題 No.326 あみだますたー
ユーザー tailstails
提出日時 2017-11-10 15:35:09
言語 Perl
(5.38.0)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 5,424 KB
最終ジャッジ日時 2023-08-16 02:27:55
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,192 KB
testcase_01 AC 6 ms
5,072 KB
testcase_02 AC 13 ms
5,188 KB
testcase_03 AC 51 ms
5,232 KB
testcase_04 AC 49 ms
5,220 KB
testcase_05 AC 6 ms
5,324 KB
testcase_06 AC 14 ms
5,240 KB
testcase_07 AC 7 ms
5,284 KB
testcase_08 AC 92 ms
5,424 KB
testcase_09 AC 88 ms
5,172 KB
testcase_10 AC 94 ms
5,264 KB
testcase_11 AC 7 ms
5,168 KB
testcase_12 AC 51 ms
5,268 KB
testcase_13 AC 28 ms
5,148 KB
testcase_14 AC 14 ms
5,188 KB
testcase_15 AC 9 ms
5,180 KB
testcase_16 AC 9 ms
5,176 KB
testcase_17 AC 32 ms
5,236 KB
testcase_18 AC 17 ms
5,184 KB
testcase_19 AC 11 ms
5,116 KB
testcase_20 AC 6 ms
5,108 KB
testcase_21 AC 6 ms
5,120 KB
testcase_22 AC 37 ms
5,196 KB
testcase_23 AC 52 ms
5,152 KB
testcase_24 AC 46 ms
5,360 KB
testcase_25 AC 50 ms
5,228 KB
testcase_26 AC 7 ms
5,316 KB
testcase_27 AC 33 ms
5,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{@b[$x-1,$x]=@b[$x,$x-1]}@b=0..<>;f$x=<>for 1..<>;@a=glob<>;f,$\.=" $x ".++$x,++$%while($x)=grep$a[$b[$_-1]]>$a[$b[$_]],1..$#a;print$%
0