結果

問題 No.504 ゲーム大会(ランキング)
ユーザー yagi2yagi2
提出日時 2017-04-21 22:27:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 988 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 1,739 ms
コンパイル使用メモリ 71,448 KB
実行使用メモリ 66,952 KB
最終ジャッジ日時 2023-09-27 11:15:33
合計ジャッジ時間 11,398 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
56,224 KB
testcase_01 AC 114 ms
55,832 KB
testcase_02 AC 113 ms
55,880 KB
testcase_03 AC 119 ms
56,380 KB
testcase_04 AC 118 ms
55,876 KB
testcase_05 AC 113 ms
56,016 KB
testcase_06 AC 109 ms
55,776 KB
testcase_07 AC 982 ms
66,640 KB
testcase_08 AC 974 ms
65,648 KB
testcase_09 AC 964 ms
66,904 KB
testcase_10 AC 988 ms
66,952 KB
testcase_11 AC 964 ms
66,888 KB
testcase_12 AC 940 ms
66,540 KB
testcase_13 AC 940 ms
66,328 KB
testcase_14 AC 979 ms
66,680 KB
権限があれば一括ダウンロードができます

ソースコード

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