結果
| 問題 |
No.607 開通777年記念
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2017-12-07 00:09:25 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| コンパイル時間 | 41 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-29 01:34:38 |
| 合計ジャッジ時間 | 3,566 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"
tails