結果
| 問題 | No.3542 Progression (Python) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-06 23:21:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 170 bytes |
| 記録 | |
| コンパイル時間 | 886 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 59,904 KB |
| スコア | 0 |
| 最終ジャッジ日時 | 2026-05-16 15:05:20 |
| 合計ジャッジ時間 | 10,270 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 29 |
ソースコード
n=int(input()) a=list(map(int,input().split())) print(a) c=s=2 if n<2: print(1) else: for i in range(n-2): s=s+1 if a[i+2]+a[i]==2*a[i+1]else 2 c=max(c,s) print(c)