結果

問題 No.504 ゲーム大会(ランキング)
ユーザー HEGO55HEGO55
提出日時 2017-05-10 15:18:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,151 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 2,286 ms
コンパイル使用メモリ 71,252 KB
実行使用メモリ 71,420 KB
最終ジャッジ日時 2023-10-13 10:02:13
合計ジャッジ時間 13,795 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,964 KB
testcase_01 AC 123 ms
55,740 KB
testcase_02 AC 124 ms
56,028 KB
testcase_03 AC 124 ms
56,116 KB
testcase_04 AC 126 ms
55,592 KB
testcase_05 AC 125 ms
55,784 KB
testcase_06 AC 122 ms
55,772 KB
testcase_07 AC 1,140 ms
69,268 KB
testcase_08 AC 1,150 ms
69,300 KB
testcase_09 AC 1,151 ms
68,816 KB
testcase_10 AC 1,113 ms
68,992 KB
testcase_11 AC 1,129 ms
68,756 KB
testcase_12 AC 1,073 ms
69,040 KB
testcase_13 AC 1,085 ms
71,420 KB
testcase_14 AC 1,142 ms
69,048 KB
権限があれば一括ダウンロードができます

ソースコード

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 ranking = 1;
		for(int i=0; i<N; i++){
			point[i] = sc.nextInt();
		}
		
		for(int j=0; j<N; j++){
			if(point[0]<point[j]){
				ranking++;
			}
			System.out.println(ranking);
		}
	}
} 
0