結果

問題 No.504 ゲーム大会(ランキング)
ユーザー dohatsutsu
提出日時 2017-04-21 22:23:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,251 ms
コンパイル使用メモリ 159,208 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-20 05:16:53
合計ジャッジ時間 3,599 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int N;
int ans=0;
int k,a;

int main(){
  cin>>N;
  cin>>k;
  cout<<1<<endl;
  for(int i=1;i<N;i++){
    cin>>a;
    if(a>k)ans++;
    cout<<ans+1<<endl;
  }

  return 0;
}
0