結果

問題 No.504 ゲーム大会(ランキング)
ユーザー shinwisteria
提出日時 2017-04-21 22:38:59
言語 Java
(openjdk 23)
結果
AC  
実行時間 1,127 ms / 2,000 ms
コード長 404 bytes
コンパイル時間 4,189 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 58,896 KB
最終ジャッジ日時 2024-07-20 05:29:57
合計ジャッジ時間 14,540 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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