結果
問題 | No.607 開通777年記念 |
ユーザー |
![]() |
提出日時 | 2017-12-07 00:07:10 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 01:33:05 |
合計ジャッジ時間 | 3,932 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
コンパイルメッセージ
Name "main::m" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($n,$m)=glob<>; for(<>){ @a=glob<>; $s=0; $i=0; $j=0; while($j<$n){ if($s<777){ $s+=$b[$j]+=$a[$j]; ++$j; } if($s>777){ $s-=$b[$i]; ++$i; } if($s==777){ print"YES"; exit; } } } print"NO"