結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2020-07-06 12:03:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 178 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 1,605 ms |
コンパイル使用メモリ | 167,596 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 17:11:16 |
合計ジャッジ時間 | 3,930 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) typedef long long ll; int main(){ int n,k; cin>>n>>k; n--; int rank=1; cout<<rank<<endl; rep(i,n){ int a; cin>>a; if(a>k) rank++; cout<<rank<<endl; } }