結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
rinrinta121
|
| 提出日時 | 2019-05-23 17:30:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 2,000 ms |
| コード長 | 575 bytes |
| コンパイル時間 | 727 ms |
| コンパイル使用メモリ | 81,308 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 09:47:37 |
| 合計ジャッジ時間 | 2,889 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
#include<stdio.h>
#include<queue>
#include <climits>
#include <map>
#include <set>
const int mod = 1e9 + 7;
const long long INF = 1LL << 60;
using namespace std;
typedef long long ll;
int main()
{
int n;
cin >> n;
int k = 1;
int ks;
cin >> ks;
cout << 1 << endl;
for(int i = 0; i < n-1; i++){
int s;
cin >> s;
if(s > ks){
k++;
cout << k << endl;
}else{
cout << k << endl;
}
}
}
rinrinta121