結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-12-01 16:17:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 170 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 1,438 ms |
| コンパイル使用メモリ | 73,312 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 21:29:05 |
| 合計ジャッジ時間 | 3,334 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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