結果

問題 No.504 ゲーム大会(ランキング)
コンテスト
ユーザー akitsu818
提出日時 2017-04-21 22:45:08
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
AC  
実行時間 645 ms / 2,000 ms
コード長 423 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,696 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 144,532 KB
最終ジャッジ日時 2026-04-02 21:05:21
合計ジャッジ時間 8,934 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
純コード判定待ち
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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