結果

問題 No.17 2つの地点に泊まりたい
ユーザー %20%20
提出日時 2017-07-18 03:13:52
言語 Perl
(5.38.0)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,456 KB
実行使用メモリ 5,480 KB
最終ジャッジ日時 2023-08-05 03:54:21
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,692 KB
testcase_01 AC 3 ms
4,924 KB
testcase_02 AC 6 ms
4,900 KB
testcase_03 AC 84 ms
5,000 KB
testcase_04 AC 10 ms
4,988 KB
testcase_05 AC 52 ms
5,168 KB
testcase_06 AC 31 ms
4,992 KB
testcase_07 AC 23 ms
4,920 KB
testcase_08 AC 84 ms
5,464 KB
testcase_09 AC 83 ms
5,480 KB
testcase_10 AC 71 ms
5,040 KB
testcase_11 AC 84 ms
5,048 KB
testcase_12 AC 2 ms
4,632 KB
testcase_13 AC 3 ms
4,768 KB
testcase_14 AC 3 ms
4,636 KB
testcase_15 AC 3 ms
4,692 KB
testcase_16 AC 3 ms
4,636 KB
testcase_17 AC 12 ms
4,824 KB
testcase_18 AC 66 ms
4,908 KB
testcase_19 AC 59 ms
4,876 KB
testcase_20 AC 9 ms
4,920 KB
testcase_21 AC 5 ms
4,652 KB
testcase_22 AC 75 ms
4,856 KB
testcase_23 AC 48 ms
4,996 KB
testcase_24 AC 62 ms
5,104 KB
testcase_25 AC 5 ms
4,896 KB
testcase_26 AC 74 ms
5,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$N=<>-1;
@S=map/ .* /?$%[$&][$`]=$%[$`][$&]=$':$_,<>;
for$k(@@=0..$N){//,map$%[$'][$_]-=$-=($%[$'][$_]||=$\=9e9)-$%[$k][$']-$%[$k][$_],@@for@@}
//,map$'-$_&&($\-=$-=$\-$S[$']-$S[$_]-$%[0][$']-$%[$'][$_]-$%[$_][$N]),@@for@@=1..$N-1;
print
0