結果

問題 No.504 ゲーム大会(ランキング)
ユーザー AREIDO2
提出日時 2017-04-25 14:48:45
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 53,868 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 08:46:18
合計ジャッジ時間 2,748 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;

int main(){
  int n,k,a,c=1;
  cin >> n;
  cin >> k;
  cout << c << "\n";
  for(int i=1;i<n;i++){
    cin >> a;
    if(a>k)
      c++;
    cout << c << "\n";
  }
  return 0;
}
0