結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-12-01 16:17:27 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 510 ms |
| コンパイル使用メモリ | 95,816 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-22 02:08:59 |
| 合計ジャッジ時間 | 2,946 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<iostream>
#include<cmath>
#include<vector>
#include<string>
#include<set>
#include<iomanip>
using namespace std;
int main() {
int N; cin >> N;
int p; cin >> p;
int cnt = 1;
vector<int> v; v.push_back(p);
cout << cnt << endl;
for(int i=0; i < N-1; i++){
cin >> p;
if(v[0] < p) cnt++;
cout << cnt << endl;
}
return 0;
}
hamray