結果

問題 No.504 ゲーム大会(ランキング)
ユーザー Mcpu3Mcpu3
提出日時 2018-06-26 00:16:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,059 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 1,831 ms
コンパイル使用メモリ 71,440 KB
実行使用メモリ 66,084 KB
最終ジャッジ日時 2023-09-13 13:59:29
合計ジャッジ時間 12,186 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,324 KB
testcase_01 AC 120 ms
55,732 KB
testcase_02 AC 121 ms
54,196 KB
testcase_03 AC 121 ms
55,952 KB
testcase_04 AC 121 ms
56,348 KB
testcase_05 AC 119 ms
55,972 KB
testcase_06 AC 120 ms
55,828 KB
testcase_07 AC 1,031 ms
65,888 KB
testcase_08 AC 1,059 ms
66,076 KB
testcase_09 AC 1,039 ms
65,968 KB
testcase_10 AC 1,040 ms
66,004 KB
testcase_11 AC 1,031 ms
65,704 KB
testcase_12 AC 983 ms
65,992 KB
testcase_13 AC 1,023 ms
66,084 KB
testcase_14 AC 1,040 ms
65,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no504{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n=stdIn.nextInt(),m=stdIn.nextInt(),a,i,c=1;
		System.out.println("1");
		for(i=1;i<n;i++) {
			a=stdIn.nextInt();
			if(a>m)c++;
			System.out.println(c);
		}
	}
}
0