結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-17 12:24:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 186 ms / 2,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 854 ms |
| コンパイル使用メモリ | 102,812 KB |
| 最終ジャッジ日時 | 2025-02-16 08:54:05 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
#ifdef _WIN32
#include <Windows.h>
#endif
int main()
{
int n, k, p = 1;
cin >> n >> k;
cout << p << endl;
for (int i = 0; i < n - 1; i++){
int t;
cin >> t;
if (k < t) p++;
cout << p << endl;
}
}
kpinkcat