結果

問題 No.504 ゲーム大会(ランキング)
ユーザー akitsu818akitsu818
提出日時 2017-04-21 22:45:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,014 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 2,777 ms
コンパイル使用メモリ 72,452 KB
実行使用メモリ 66,788 KB
最終ジャッジ日時 2023-09-27 11:29:11
合計ジャッジ時間 12,462 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
55,692 KB
testcase_01 AC 113 ms
56,460 KB
testcase_02 AC 111 ms
55,700 KB
testcase_03 AC 111 ms
55,356 KB
testcase_04 AC 117 ms
55,752 KB
testcase_05 AC 117 ms
55,816 KB
testcase_06 AC 114 ms
56,160 KB
testcase_07 AC 1,014 ms
66,740 KB
testcase_08 AC 990 ms
65,272 KB
testcase_09 AC 954 ms
66,788 KB
testcase_10 AC 950 ms
66,372 KB
testcase_11 AC 991 ms
66,520 KB
testcase_12 AC 911 ms
66,264 KB
testcase_13 AC 919 ms
65,956 KB
testcase_14 AC 955 ms
66,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package javacode;

import java.util.Scanner;

public class yukicoder01 {

	public static void main(String args[]){
		
		Scanner cin = new Scanner(System.in);
		
		int target = cin.nextInt();
		long score = cin.nextLong();
		int rank = 1;
		long tmp;
                System.out.println(rank);
		for(int i=0;i<target-1;i++){
			tmp = cin.nextLong();
			if(tmp>score){
				rank++;
			}
			System.out.println(rank);
		}
		
	}
}
0