結果

問題 No.504 ゲーム大会(ランキング)
ユーザー takeya_okino
提出日時 2017-06-18 15:54:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 1,165 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,117 ms
コンパイル使用メモリ 75,304 KB
実行使用メモリ 58,528 KB
最終ジャッジ日時 2024-10-01 20:08:08
合計ジャッジ時間 13,230 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int score = sc.nextInt();
    int order = 1;
    System.out.println(1);
    for(int i = 1; i < N; i++) {
      int a = sc.nextInt();
      if(a > score) {
        order++;
      }
      System.out.println(order);
    }
  }
}
0