結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  fukusei | 
| 提出日時 | 2017-05-10 15:09:10 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1,229 ms / 2,000 ms | 
| コード長 | 464 bytes | 
| コンパイル時間 | 2,246 ms | 
| コンパイル使用メモリ | 74,108 KB | 
| 実行使用メモリ | 58,928 KB | 
| 最終ジャッジ日時 | 2024-09-15 07:07:54 | 
| 合計ジャッジ時間 | 14,014 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
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);
        }
    }
}
            
            
            
        