結果
| 問題 | No.1687 What the Heck? | 
| コンテスト | |
| ユーザー |  tails | 
| 提出日時 | 2021-09-24 21:40:57 | 
| 言語 | Perl (5.40.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 497 ms / 2,000 ms | 
| コード長 | 87 bytes | 
| コンパイル時間 | 193 ms | 
| コンパイル使用メモリ | 5,888 KB | 
| 実行使用メモリ | 53,376 KB | 
| 最終ジャッジ日時 | 2024-07-05 10:16:19 | 
| 合計ジャッジ時間 | 4,451 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 | 
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 2. Main.pl syntax OK
ソースコード
<>;
$a[$_]=++$n for glob<>;
for(@a){
	if($-<$s-$_){
		$-=$s-$_;
	}
	$s+=$_;
}
print$-;
            
            
            
        