結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
![]() |
提出日時 | 2019-03-31 22:47:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 176 ms / 2,000 ms |
コード長 | 296 bytes |
コンパイル時間 | 550 ms |
コンパイル使用メモリ | 63,124 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 14:26:55 |
合計ジャッジ時間 | 3,447 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> int main() { int l, k, t; int rank = 1; std::cin >> l; std::cin >> k; std::cout << 1 << std::endl; for (int i = 0; i < l - 1; i++) { std::cin >> t; if (t > k) { rank++; } std::cout << rank << std::endl; } }