結果
| 問題 | No.3541 Progression (C++) |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2026-05-17 03:20:43 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 1,446 ms |
| コンパイル使用メモリ | 208,968 KB |
| 実行使用メモリ | 6,400 KB |
| スコア | 394 |
| 最終ジャッジ日時 | 2026-05-17 03:20:53 |
| 合計ジャッジ時間 | 6,411 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
int N,A[2002],a=1;int main(){scanf("%d",&N);for(int i=N;i;i--)scanf("%d",&A[i]);for(int i=N-1;i;i--){for(int j=i;j;j--){if(A[i]-A[i+1]-A[j]+A[j+1]){break;}a=std::max(a,i-j+2);}}printf("%d\n",a);}
harurun