結果
| 問題 | No.3542 Progression (Python) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-16 22:19:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 2,017 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 59,648 KB |
| スコア | 426 |
| 最終ジャッジ日時 | 2026-05-16 22:19:59 |
| 合計ジャッジ時間 | 6,242 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 |
ソースコード
N,*A=map(int,open(0).read().split())
v,x=1,1
for i in range(1,N):
if i^1 and A[i]+A[i-2]==A[i-1]*2:
v+=1
else:
v=2
x=max(x,v)
print(x)