結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-02-18 20:30:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 211 ms / 2,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 3,949 ms |
| コンパイル使用メモリ | 191,316 KB |
| 最終ジャッジ日時 | 2025-01-18 22:36:06 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
int n;
cin>>n;
int a[n];
rep(i,n) cin>>a[i];
int cnt=1;
cout<<1<<endl;
for(int i=1;i<n;i++){
if(a[i]>a[0]) cnt++;
cout<<cnt<<endl;
}
return 0;
}
chacoder1