結果
| 問題 | No.3541 Progression (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-01 00:14:44 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 38,272 KB |
| 実行使用メモリ | 6,528 KB |
| スコア | 473 |
| 最終ジャッジ日時 | 2026-07-01 00:14:55 |
| 合計ジャッジ時間 | 5,286 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 WA * 2 |
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<cstdio>
| ^~~~~~
main.cpp:2:19: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int a,l,p,A,B=1e9;main(){for(scanf("%d",&A);~scanf("%d",&A);l++,B=A)if(p-B+A)a=a<l?l:a,l=1,p=B-A;printf("%d",p+B?a<l?l:a:1);}
| ^~~~
ソースコード
#import<cstdio>
int a,l,p,A,B=1e9;main(){for(scanf("%d",&A);~scanf("%d",&A);l++,B=A)if(p-B+A)a=a<l?l:a,l=1,p=B-A;printf("%d",p+B?a<l?l:a:1);}