結果

問題 No.1687 What the Heck?
ユーザー tailstails
提出日時 2021-09-24 21:40:57
言語 Perl
(5.38.0)
結果
AC  
実行時間 580 ms / 2,000 ms
コード長 87 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 52,588 KB
最終ジャッジ日時 2023-09-18 20:58:53
合計ジャッジ時間 5,647 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,200 KB
testcase_01 AC 6 ms
5,160 KB
testcase_02 AC 6 ms
5,112 KB
testcase_03 AC 7 ms
5,188 KB
testcase_04 AC 6 ms
5,112 KB
testcase_05 AC 6 ms
5,192 KB
testcase_06 AC 6 ms
5,192 KB
testcase_07 AC 227 ms
21,764 KB
testcase_08 AC 269 ms
28,548 KB
testcase_09 AC 171 ms
21,648 KB
testcase_10 AC 113 ms
15,940 KB
testcase_11 AC 121 ms
16,708 KB
testcase_12 AC 580 ms
52,456 KB
testcase_13 AC 492 ms
52,380 KB
testcase_14 AC 487 ms
52,460 KB
testcase_15 AC 502 ms
52,588 KB
testcase_16 AC 486 ms
51,636 KB
testcase_17 AC 39 ms
8,496 KB
testcase_18 AC 495 ms
52,328 KB
testcase_19 AC 10 ms
5,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

<>;
$a[$_]=++$n for glob<>;
for(@a){
	if($-<$s-$_){
		$-=$s-$_;
	}
	$s+=$_;
}
print$-;
0