結果
| 問題 | No.3542 Progression (Python) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-03 11:29:38 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 844 ms |
| コンパイル使用メモリ | 82,840 KB |
| 実行使用メモリ | 73,524 KB |
| スコア | 420 |
| 最終ジャッジ日時 | 2026-10-09 09:52:30 |
| 合計ジャッジ時間 | 4,537 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 28 RE * 1 |
ソースコード
n=int(input()) a=list(map(int,input().split())) r,m,c=a[1]-a[0],1,1 for i in range(0,n-1): if r==a[i+1]-a[i]: c+=1 else: m,c,r=max(m,c),2,a[i+1]-a[i]; print(max(m,c))