結果
| 問題 | No.3541 Progression (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-30 23:58:55 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 37,888 KB |
| 実行使用メモリ | 6,528 KB |
| スコア | 477 |
| 最終ジャッジ日時 | 2026-06-30 23:59:07 |
| 合計ジャッジ時間 | 5,232 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 28 WA * 1 |
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<cstdio>
| ^~~~~~
main.cpp:2:15: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int a,l,p,A,B;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;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);}