結果

問題 No.22 括弧の対応
ユーザー なおなお
提出日時 2014-12-12 10:00:22
言語 Perl
(5.38.2)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 88 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 6,004 KB
最終ジャッジ日時 2023-09-27 12:47:16
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,668 KB
testcase_01 AC 2 ms
4,768 KB
testcase_02 AC 2 ms
4,580 KB
testcase_03 AC 17 ms
6,004 KB
testcase_04 AC 6 ms
5,172 KB
testcase_05 AC 5 ms
5,180 KB
testcase_06 AC 6 ms
5,276 KB
testcase_07 AC 7 ms
5,416 KB
testcase_08 AC 6 ms
5,168 KB
testcase_09 AC 5 ms
5,196 KB
testcase_10 AC 7 ms
5,536 KB
testcase_11 AC 5 ms
5,040 KB
testcase_12 AC 5 ms
5,172 KB
testcase_13 AC 7 ms
5,512 KB
testcase_14 AC 2 ms
4,756 KB
testcase_15 AC 7 ms
5,808 KB
testcase_16 AC 8 ms
5,812 KB
testcase_17 AC 3 ms
4,476 KB
testcase_18 AC 2 ms
4,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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