結果

問題 No.457 (^^*)
ユーザー tailstails
提出日時 2016-12-08 00:23:49
言語 Perl
(5.38.2)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 5,360 KB
実行使用メモリ 5,828 KB
最終ジャッジ日時 2023-08-25 03:02:47
合計ジャッジ時間 1,548 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,704 KB
testcase_01 AC 3 ms
4,524 KB
testcase_02 AC 2 ms
4,832 KB
testcase_03 AC 2 ms
4,792 KB
testcase_04 AC 2 ms
4,676 KB
testcase_05 AC 3 ms
4,532 KB
testcase_06 AC 3 ms
4,808 KB
testcase_07 AC 3 ms
4,828 KB
testcase_08 AC 4 ms
4,616 KB
testcase_09 AC 6 ms
4,952 KB
testcase_10 AC 10 ms
5,148 KB
testcase_11 AC 16 ms
5,636 KB
testcase_12 AC 15 ms
5,508 KB
testcase_13 AC 15 ms
5,576 KB
testcase_14 AC 15 ms
5,812 KB
testcase_15 AC 15 ms
5,828 KB
testcase_16 AC 15 ms
5,656 KB
testcase_17 AC 15 ms
5,688 KB
testcase_18 AC 2 ms
4,712 KB
testcase_19 AC 2 ms
4,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

map{
	$_=reverse;
	y/()/)(/;
	my($a,$b,$c,$d,$e);
	for(/./g){
		++$a if/\(/;
		$b+=$a,$a=0 if/\*/;
		$d+=$c,$c=$b,$b=0 if/\^/;
		$e+=$d if/\)/;
	}
	print$e+0,$"
}(<>)x2
0