結果

問題 No.504 ゲーム大会(ランキング)
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 18:36:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,274 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 3,803 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 68,096 KB
最終ジャッジ日時 2024-05-01 21:19:31
合計ジャッジ時間 16,127 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,272 KB
testcase_01 AC 132 ms
41,436 KB
testcase_02 AC 141 ms
41,556 KB
testcase_03 AC 130 ms
41,372 KB
testcase_04 AC 131 ms
41,040 KB
testcase_05 AC 133 ms
41,088 KB
testcase_06 AC 132 ms
41,052 KB
testcase_07 AC 1,274 ms
58,148 KB
testcase_08 AC 1,148 ms
58,144 KB
testcase_09 AC 1,150 ms
57,764 KB
testcase_10 AC 1,193 ms
58,436 KB
testcase_11 AC 1,099 ms
58,440 KB
testcase_12 AC 1,113 ms
68,096 KB
testcase_13 AC 1,076 ms
58,096 KB
testcase_14 AC 1,163 ms
58,196 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