結果

問題 No.504 ゲーム大会(ランキング)
ユーザー Kura
提出日時 2019-08-01 18:35:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 1,400 ms
コンパイル使用メモリ 157,788 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 07:46:35
合計ジャッジ時間 3,414 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;cin>>n>>k;
  int ans=1;cout<<ans<<endl;
  int a;
  for(int i=1;i<n;i++){
    cin>>a;
    if(a>k)ans++;
    cout<<ans<<endl;
  }
}
0