結果

問題 No.504 ゲーム大会(ランキング)
ユーザー uafr_cs
提出日時 2017-10-28 18:36:38
言語 Java
(openjdk 23)
結果
AC  
実行時間 1,181 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 3,392 ms
コンパイル使用メモリ 74,712 KB
実行使用メモリ 69,904 KB
最終ジャッジ日時 2024-11-22 03:52:24
合計ジャッジ時間 13,688 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		final int K = sc.nextInt();
		System.out.println(1);
		
		int count = 0;
		for(int i = 0; i < N - 1; i++){
			final int a = sc.nextInt();
			
			if(a > K){ count++; }
			
			System.out.println(count + 1);
		}

	}
}
0