結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2017-04-21 22:22:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 183 ms / 2,000 ms |
コード長 | 168 bytes |
コンパイル時間 | 589 ms |
コンパイル使用メモリ | 64,324 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 05:15:39 |
合計ジャッジ時間 | 2,945 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;main(){int cnt=1,n,a,b;cin>>n>>a;cout<<cnt<<endl;for(int i=1;i<n;i++){cin>>b;if(b>a)cnt++;cout<<cnt<<endl;}}