結果

問題 No.504 ゲーム大会(ランキング)
ユーザー HEGO55
提出日時 2017-05-10 15:13:06
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 393 bytes
コンパイル時間 2,160 ms
コンパイル使用メモリ 73,988 KB
実行使用メモリ 59,420 KB
最終ジャッジ日時 2024-09-15 07:08:29
合計ジャッジ時間 13,914 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Test31{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] point = new int[N];
		int[] rank  = new int[N];
		int ranking = 1;
		for(int i=0; i<N; i++){
			point[i] = sc.nextInt();
		}
		
		for(int j=0; j<N; j++){
			System.out.println(ranking);
			if(point[0]<=point[j+1]){
				ranking += 1;
			}
		}
	}
} 
0