結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2017-04-28 16:47:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 176 ms / 2,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 609 ms |
コンパイル使用メモリ | 64,168 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 17:48:58 |
合計ジャッジ時間 | 2,913 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> int main() { int n; int rank = 1; std::cin >> n; int a[n]; for (int i = 0; i < n; i++) { std::cin >> a[i]; } for (int i = 0; i < n; i++) { if (a[0] < a[i]) { rank += 1; } std::cout << rank << std::endl; } }