結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2017-03-17 23:23:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 144 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 525 ms |
コンパイル使用メモリ | 62,336 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 13:44:56 |
合計ジャッジ時間 | 2,394 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include<iostream>using namespace std;#define REP(i,n) for (int i=0;i<(n);i++)int N,A,K,rk=1;int main(){ios::sync_with_stdio(false);cin>>N;REP(i,N){cin>>A;if(i==0)K=A;if(K<A)rk++;cout<<rk<<endl;}}