結果

問題 No.504 ゲーム大会(ランキング)
ユーザー HEGO55HEGO55
提出日時 2017-05-10 15:13:06
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 393 bytes
コンパイル時間 3,730 ms
コンパイル使用メモリ 71,100 KB
実行使用メモリ 73,376 KB
最終ジャッジ日時 2023-10-13 10:01:43
合計ジャッジ時間 13,060 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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