結果
| 問題 | No.3542 Progression (Python) |
| コンテスト | |
| ユーザー |
Rho
|
| 提出日時 | 2026-05-06 22:01:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 59,520 KB |
| スコア | 414 |
| 最終ジャッジ日時 | 2026-05-16 15:04:35 |
| 合計ジャッジ時間 | 5,547 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 |
ソースコード
n=int(input()) a=list(map(int,input().split())) a.append(~0) ans,cnt=1,2 for i in range(n-1): if a[i]+a[i+2]==2*a[i+1]: cnt+=1 else: ans=max(ans,cnt) cnt=2 print(ans)
Rho