結果

問題 No.504 ゲーム大会(ランキング)
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:34:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,053 ms / 2,000 ms
コード長 540 bytes
コンパイル時間 2,339 ms
コンパイル使用メモリ 79,492 KB
実行使用メモリ 58,740 KB
最終ジャッジ日時 2024-04-23 15:47:21
合計ジャッジ時間 12,442 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,556 KB
testcase_01 AC 133 ms
41,712 KB
testcase_02 AC 135 ms
41,960 KB
testcase_03 AC 135 ms
41,196 KB
testcase_04 AC 135 ms
41,668 KB
testcase_05 AC 136 ms
41,496 KB
testcase_06 AC 132 ms
41,500 KB
testcase_07 AC 1,047 ms
57,108 KB
testcase_08 AC 1,020 ms
55,460 KB
testcase_09 AC 1,014 ms
57,160 KB
testcase_10 AC 1,053 ms
57,312 KB
testcase_11 AC 1,028 ms
57,088 KB
testcase_12 AC 928 ms
55,720 KB
testcase_13 AC 929 ms
58,740 KB
testcase_14 AC 1,009 ms
57,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		int n=getInt(),r=1,m=getInt();
		System.out.println(1);
		for(int i=1;i<n;++i)
			System.out.println(getInt()>m?++r:r);
	}
}
0