結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
kazapyon27
|
| 提出日時 | 2017-06-11 18:59:55 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 682 ms / 2,000 ms |
| コード長 | 578 bytes |
| コンパイル時間 | 3,553 ms |
| コンパイル使用メモリ | 74,892 KB |
| 実行使用メモリ | 68,656 KB |
| 最終ジャッジ日時 | 2024-09-24 16:26:21 |
| 合計ジャッジ時間 | 10,312 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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