結果
| 問題 | No.3543 Progression (All Language) |
| コンテスト | |
| ユーザー |
Rho
|
| 提出日時 | 2026-05-06 22:07:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 59,520 KB |
| スコア | 197 |
| 最終ジャッジ日時 | 2026-05-16 15:04:46 |
| 合計ジャッジ時間 | 5,762 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
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