結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
![]() |
提出日時 | 2017-05-04 08:03:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 180 ms / 2,000 ms |
コード長 | 484 bytes |
コンパイル時間 | 1,742 ms |
コンパイル使用メモリ | 166,272 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 06:09:17 |
合計ジャッジ時間 | 4,631 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>#define re(i,j,n) for(li i=(j);i<(n);i++)#define rep(i,n) re(i,0,(n))#define all(a) begin(a),end(a)#define pb push_backusing namespace std;typedef long int li;typedef unsigned long long ull;typedef vector<int> vi;typedef vector<li> vli;typedef vector<string> vs;int main(){int n;cin>>n;li k,a,p=1;cin>>k;cout<<1<<endl;rep(i,n-1) {cin>>a;if(a>k)p++;cout<<p<<endl;}return 0;}