結果

問題 No.22 括弧の対応
ユーザー なおなお
提出日時 2014-12-21 11:34:37
言語 Perl
(5.38.2)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 80 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 5,396 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2023-09-27 12:47:19
合計ジャッジ時間 990 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,468 KB
testcase_01 AC 3 ms
4,500 KB
testcase_02 AC 3 ms
4,472 KB
testcase_03 AC 8 ms
6,016 KB
testcase_04 AC 5 ms
5,016 KB
testcase_05 AC 5 ms
5,136 KB
testcase_06 AC 6 ms
5,408 KB
testcase_07 AC 7 ms
5,724 KB
testcase_08 AC 6 ms
5,312 KB
testcase_09 AC 6 ms
5,352 KB
testcase_10 AC 7 ms
5,664 KB
testcase_11 AC 5 ms
5,104 KB
testcase_12 AC 6 ms
5,392 KB
testcase_13 AC 7 ms
5,424 KB
testcase_14 AC 3 ms
4,876 KB
testcase_15 AC 8 ms
5,836 KB
testcase_16 AC 8 ms
5,884 KB
testcase_17 AC 3 ms
4,496 KB
testcase_18 AC 2 ms
4,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~/ /;$k=$';$i++,""^$_?push@a,$i:($b[$b[$i]=pop@a]=$i)for<>=~/./g;print$b[$k]
0