結果

問題 No.504 ゲーム大会(ランキング)
ユーザー fukuseifukusei
提出日時 2017-05-10 15:09:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,183 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 2,817 ms
コンパイル使用メモリ 72,372 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-10-13 10:01:08
合計ジャッジ時間 14,844 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,784 KB
testcase_01 AC 125 ms
55,896 KB
testcase_02 AC 129 ms
56,072 KB
testcase_03 AC 128 ms
57,408 KB
testcase_04 AC 124 ms
55,828 KB
testcase_05 AC 123 ms
56,044 KB
testcase_06 AC 123 ms
55,964 KB
testcase_07 AC 1,158 ms
68,968 KB
testcase_08 AC 1,118 ms
68,992 KB
testcase_09 AC 1,133 ms
69,128 KB
testcase_10 AC 1,183 ms
68,944 KB
testcase_11 AC 1,150 ms
68,936 KB
testcase_12 AC 1,106 ms
68,984 KB
testcase_13 AC 1,141 ms
71,524 KB
testcase_14 AC 1,172 ms
68,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int pos = 1;
        int num = sc.nextInt();
        int array[] = new int[num];
        
        for(int i=0; i<num; i++){
        	array[i] = sc.nextInt();
        }
        
        for(int j=0; j<num; j++){
        	if(array[0] < array[j]){
        		pos ++;
        	}
        	System.out.println(pos);
        }
    }
}
0