結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2017-10-29 17:55:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 178 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 655 ms |
コンパイル使用メモリ | 56,528 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 05:21:46 |
合計ジャッジ時間 | 2,797 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; int main(){ int N; cin >> N; int K; cin >> K; int rank = 1; cout << 1 << endl; for(int i = 1; i < N; i++){ int score; cin >> score; if(K < score){ rank++; } cout << rank << endl; } }