結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
![]() |
提出日時 | 2017-04-27 05:23:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 181 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 660 ms |
コンパイル使用メモリ | 70,904 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 14:16:31 |
合計ジャッジ時間 | 3,204 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include<iostream> #include<algorithm> #include<vector> #include<set> #include<string> int main() { int n; std::cin >> n; int ans = 1; int k; std::cin >> k; int a; std::cout << ans << std::endl; for (int i = 1; i < n; i++) { std::cin >> a; if (a > k) { ans++; } std::cout << ans << std::endl; } }