結果
| 問題 | No.3541 Progression (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-16 16:25:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 429 ms |
| コンパイル使用メモリ | 78,592 KB |
| 実行使用メモリ | 6,400 KB |
| スコア | 473 |
| 最終ジャッジ日時 | 2026-05-16 16:25:45 |
| 合計ジャッジ時間 | 5,146 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 28 WA * 1 |
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
main.cpp:2:15: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int x,y,s,c,m;main(){c+=!!(std::cin>>x>>s>>x);s-=x;while(std::cin>>y){s==x-y?c++:c=1;s=x-y;x=y;m<c&&(m=c);}std::cout<<m+1;}
| ^~~~
ソースコード
#import<iostream>
int x,y,s,c,m;main(){c+=!!(std::cin>>x>>s>>x);s-=x;while(std::cin>>y){s==x-y?c++:c=1;s=x-y;x=y;m<c&&(m=c);}std::cout<<m+1;}