結果

問題 No.504 ゲーム大会(ランキング)
ユーザー uzumakiyorumunnuzumakiyorumunn
提出日時 2017-06-10 18:56:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 677 ms
コンパイル使用メモリ 57,644 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 20:34:16
合計ジャッジ時間 2,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 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 2 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 178 ms
4,348 KB
testcase_08 AC 178 ms
4,348 KB
testcase_09 AC 180 ms
4,348 KB
testcase_10 AC 180 ms
4,348 KB
testcase_11 AC 179 ms
4,348 KB
testcase_12 AC 170 ms
4,348 KB
testcase_13 AC 165 ms
4,348 KB
testcase_14 AC 182 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<set>


using namespace std;

int main(){

	int N;
	int a;
	int rank=1,Ka;

	cin>>N;
	cin>>Ka;

	cout<<rank<<endl;
	for(int i=1;i<N;i++){
		cin>>a;
		if(Ka<a) rank++;
		cout<<rank<<endl;
	}
}
0