結果
| 問題 | No.3541 Progression (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-17 07:47:48 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 832µs | |
| コード長 | 105 bytes |
| 記録 | |
| コンパイル時間 | 455 ms |
| コンパイル使用メモリ | 80,856 KB |
| 実行使用メモリ | 9,900 KB |
| スコア | 509 |
| 最終ジャッジ日時 | 2026-09-28 16:10:32 |
| 合計ジャッジ時間 | 3,320 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 |
コンパイルメッセージ
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 a,b,c,m,s;main(){for(;std::cin>>c;a=b,b=c)m=b+b-a-c?b?2:0:m+1,s+=s<m;std::cout<<s;}
| ^~~~
ソースコード
#import<iostream>
int a,b,c,m,s;main(){for(;std::cin>>c;a=b,b=c)m=b+b-a-c?b?2:0:m+1,s+=s<m;std::cout<<s;}