結果

問題 No.504 ゲーム大会(ランキング)
ユーザー yagi2
提出日時 2017-04-21 22:27:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 1,162 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 2,311 ms
コンパイル使用メモリ 74,304 KB
実行使用メモリ 58,008 KB
最終ジャッジ日時 2024-07-20 05:22:46
合計ジャッジ時間 12,520 ms
ジャッジサーバーID
(参考情報)
judge5 / 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);

        long N = sc.nextLong();
        long K = sc.nextLong();

        long NO = 1;
        System.out.println(NO);
        for (long i = 0; i < N-1; i++) {
            long tmp = sc.nextLong();
            if (K < tmp)NO++;
            System.out.println(NO);
        }
    }
}
0