結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
![]() |
提出日時 | 2017-12-30 16:40:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 193 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 488 ms |
コンパイル使用メモリ | 53,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 13:21:54 |
合計ジャッジ時間 | 3,653 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> using namespace std; int main() { int n, scoreK; cin >> n >> scoreK; int rank = 1; cout << rank << endl; for (int i = 1; i < n; i++) { int scoreOthers; cin >> scoreOthers; if (scoreOthers > scoreK) { rank++; } cout << rank << endl; } return 0; }