結果
| 問題 |
No.607 開通777年記念
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2017-12-07 00:11:21 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 5,888 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-11-29 01:34:42 |
| 合計ジャッジ時間 | 3,587 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 1 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
($n,$m)=glob<>;
for(1..$m){
@a=glob<>;
die "@a" if @a!=$n;
$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