結果

問題 No.504 ゲーム大会(ランキング)
ユーザー RIGIHRIGIH
提出日時 2017-06-23 18:22:41
言語 C++11
(gcc 11.4.0)
結果
OLE  
実行時間 -
コード長 359 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 58,168 KB
実行使用メモリ 348,316 KB
最終ジャッジ日時 2024-04-14 12:24:00
合計ジャッジ時間 7,375 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 OLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include <iostream>
#include <cstring>
#include <math.h>
using namespace std;


int main(){
	while(1){

	int n,i;
	cin>>n;

	int *a;
	a=new int[n];
	for(i=0;i<n;i++){
		cin>>a[i];
	}
	/*for(i=0;i<n;i++){
		cout<<a[i]<<endl;
	}*/
	printf("1\n");
	int k=1;
	for(i=1;i<n;i++){
		if(a[0]<a[i]) k++;
		printf("%d\n",k);
	}

	


	}

	
	return 0;
}
0