結果

問題 No.504 ゲーム大会(ランキング)
ユーザー shinwisteriashinwisteria
提出日時 2017-04-21 22:38:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 988 ms / 2,000 ms
コード長 404 bytes
コンパイル時間 2,713 ms
コンパイル使用メモリ 72,756 KB
実行使用メモリ 67,028 KB
最終ジャッジ日時 2023-09-27 11:23:47
合計ジャッジ時間 12,427 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,672 KB
testcase_01 AC 116 ms
56,236 KB
testcase_02 AC 113 ms
56,640 KB
testcase_03 AC 113 ms
55,800 KB
testcase_04 AC 113 ms
55,620 KB
testcase_05 AC 112 ms
55,512 KB
testcase_06 AC 114 ms
54,060 KB
testcase_07 AC 985 ms
66,452 KB
testcase_08 AC 984 ms
66,856 KB
testcase_09 AC 988 ms
65,560 KB
testcase_10 AC 962 ms
66,904 KB
testcase_11 AC 984 ms
66,676 KB
testcase_12 AC 928 ms
66,644 KB
testcase_13 AC 906 ms
66,368 KB
testcase_14 AC 961 ms
67,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Gamecontest {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int count = 1 , a = s.nextInt();
		System.out.println(count);
		for(int i = 0;i < N-1;i++){
			if(s.nextInt() > a){
				count++;
			}
			System.out.println(count);
		}
		s.close();

	}

}
0