結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
kazapyon27
|
| 提出日時 | 2017-06-11 18:59:55 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 400 ms / 2,000 ms |
| コード長 | 578 bytes |
| 記録 | |
| コンパイル時間 | 3,651 ms |
| コンパイル使用メモリ | 81,420 KB |
| 実行使用メモリ | 56,708 KB |
| 最終ジャッジ日時 | 2026-04-11 19:41:15 |
| 合計ジャッジ時間 | 8,037 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
/*No.504 ゲーム大会(ランキング)*/
import java.io.*;
public class No504{
public static void main(String[] args) {
try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){
int player=Integer.parseInt(input.readLine());
Integer score[] = new Integer [player];
int Rank=1;
for(int i=0;i<score.length;i++){
score[i]=Integer.parseInt(input.readLine());
}
for(int j=0;j<score.length;j++){
if(score[0]<score[j]){
Rank+=1;
}
System.out.println(Rank);
}
}catch(Exception e){
e.printStackTrace();
}
}
}
kazapyon27