結果

問題 No.22 括弧の対応
ユーザー tailstails
提出日時 2015-02-11 19:01:23
言語 Perl
(5.38.2)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 70 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 10,012 KB
最終ジャッジ日時 2023-09-27 12:48:35
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,448 KB
testcase_01 AC 2 ms
4,636 KB
testcase_02 AC 2 ms
4,464 KB
testcase_03 AC 123 ms
10,012 KB
testcase_04 AC 10 ms
6,616 KB
testcase_05 AC 9 ms
6,472 KB
testcase_06 AC 13 ms
7,880 KB
testcase_07 AC 15 ms
6,996 KB
testcase_08 AC 13 ms
7,972 KB
testcase_09 AC 10 ms
6,464 KB
testcase_10 AC 14 ms
7,208 KB
testcase_11 AC 9 ms
5,984 KB
testcase_12 AC 13 ms
7,572 KB
testcase_13 AC 16 ms
8,148 KB
testcase_14 AC 5 ms
5,012 KB
testcase_15 AC 18 ms
8,300 KB
testcase_16 AC 21 ms
9,440 KB
testcase_17 AC 2 ms
4,668 KB
testcase_18 AC 3 ms
4,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~$";$k=$';<>=~/(\((?1)*\))(?{$b[$b[pos]="@-"+1]=pos})^/;print$b[$k]
0