結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
![]() |
提出日時 | 2017-08-01 16:01:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 179 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 63,224 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 05:47:03 |
合計ジャッジ時間 | 2,992 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <math.h> using namespace std; int main() { int n,k,ans = 1; cin >> n >> k; cout << 1 << endl; for(int i = 1;i < n;i++){ int a; cin >> a; if(k < a)ans++; cout << ans << endl; } return 0; }