結果

問題 No.504 ゲーム大会(ランキング)
ユーザー akitsu818
提出日時 2017-04-21 22:25:02
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 3,461 ms
コンパイル使用メモリ 74,108 KB
実行使用メモリ 69,576 KB
最終ジャッジ日時 2024-07-20 05:20:15
合計ジャッジ時間 15,077 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 13
権限があれば一括ダウンロードができます

ソースコード

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;
		for(int i=0;i<target-1;i++){
			tmp = cin.nextLong();
			if(tmp>score){
				rank++;
			}
			System.out.println(rank);
		}
		
	}
}
0