結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2017-03-31 21:02:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 62,720 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-07 04:47:46 |
合計ジャッジ時間 | 3,112 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include<iostream> #include<cassert> 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; assert(N<=100000&&N>=1); REP(i,N){ cin>>A; assert(A<=1000000000&&A>=1); if(i==0)K=A; if(K<A)rk++; cout<<rk<<endl; } }