結果

問題 No.504 ゲーム大会(ランキング)
ユーザー picakunpicakun
提出日時 2017-06-08 00:40:32
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 449 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 66,452 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-23 19:01:27
合計ジャッジ時間 2,931 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 174 ms
4,348 KB
testcase_08 AC 173 ms
4,348 KB
testcase_09 AC 173 ms
4,348 KB
testcase_10 AC 170 ms
4,348 KB
testcase_11 AC 170 ms
4,348 KB
testcase_12 AC 159 ms
4,348 KB
testcase_13 AC 159 ms
4,348 KB
testcase_14 AC 174 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<iomanip>
#define RREP(i,s,e) for (i = s; i >= e; i--)
#define rrep(i,n) RREP(i,n,0)
#define REP(i,s,e) for (i = s; i < e; i++)
#define rep(i,n) REP(i,0,n)
#define INF 100000000
using namespace std;

int main(){
	int n;
	cin >> n;
	int a[n];
	int i;
	rep(i,n)
		cin >> a[i];
	int ans = 1;
	rep(i,n){
		if(a[0] < a[i])
			ans++;
		cout << ans <<endl;
	}
	return 0;

}

0