結果

問題 No.504 ゲーム大会(ランキング)
ユーザー kazapyon27kazapyon27
提出日時 2017-06-11 18:59:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 715 ms / 2,000 ms
コード長 578 bytes
コンパイル時間 4,427 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 71,596 KB
最終ジャッジ日時 2023-10-24 21:13:14
合計ジャッジ時間 10,053 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
53,444 KB
testcase_01 AC 48 ms
53,448 KB
testcase_02 AC 49 ms
53,456 KB
testcase_03 AC 49 ms
53,448 KB
testcase_04 AC 48 ms
53,448 KB
testcase_05 AC 48 ms
53,444 KB
testcase_06 AC 48 ms
53,444 KB
testcase_07 AC 674 ms
71,396 KB
testcase_08 AC 715 ms
71,436 KB
testcase_09 AC 685 ms
71,520 KB
testcase_10 AC 702 ms
71,400 KB
testcase_11 AC 673 ms
71,596 KB
testcase_12 AC 671 ms
71,536 KB
testcase_13 AC 644 ms
71,132 KB
testcase_14 AC 679 ms
71,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.504 ゲーム大会(ランキング)*/
import java.io.*;
public class No504{
	public static void main(String[] args) {
		try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){
			int player=Integer.parseInt(input.readLine());
			Integer score[] = new Integer [player];
			int Rank=1;
			for(int i=0;i<score.length;i++){
				score[i]=Integer.parseInt(input.readLine());
			}
			for(int j=0;j<score.length;j++){
				if(score[0]<score[j]){
					Rank+=1;
				}
				System.out.println(Rank);
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0