結果

問題 No.504 ゲーム大会(ランキング)
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 18:36:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 974 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 1,889 ms
コンパイル使用メモリ 70,840 KB
実行使用メモリ 66,984 KB
最終ジャッジ日時 2023-08-14 08:47:13
合計ジャッジ時間 12,815 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
55,964 KB
testcase_01 AC 113 ms
56,224 KB
testcase_02 AC 113 ms
55,692 KB
testcase_03 AC 111 ms
55,920 KB
testcase_04 AC 111 ms
55,996 KB
testcase_05 AC 113 ms
55,700 KB
testcase_06 AC 112 ms
55,776 KB
testcase_07 AC 959 ms
66,588 KB
testcase_08 AC 974 ms
66,984 KB
testcase_09 AC 955 ms
66,372 KB
testcase_10 AC 945 ms
66,408 KB
testcase_11 AC 961 ms
66,624 KB
testcase_12 AC 922 ms
66,448 KB
testcase_13 AC 913 ms
66,160 KB
testcase_14 AC 962 ms
66,480 KB
権限があれば一括ダウンロードができます

ソースコード

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