結果

問題 No.504 ゲーム大会(ランキング)
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-18 15:54:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,070 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,166 ms
コンパイル使用メモリ 76,048 KB
実行使用メモリ 69,740 KB
最終ジャッジ日時 2024-04-09 19:54:10
合計ジャッジ時間 13,125 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
52,616 KB
testcase_01 AC 121 ms
54,140 KB
testcase_02 AC 121 ms
54,136 KB
testcase_03 AC 130 ms
54,208 KB
testcase_04 AC 120 ms
54,036 KB
testcase_05 AC 121 ms
54,104 KB
testcase_06 AC 103 ms
52,956 KB
testcase_07 AC 1,041 ms
69,272 KB
testcase_08 AC 1,005 ms
69,576 KB
testcase_09 AC 1,058 ms
69,400 KB
testcase_10 AC 1,056 ms
69,488 KB
testcase_11 AC 1,070 ms
69,740 KB
testcase_12 AC 984 ms
68,940 KB
testcase_13 AC 978 ms
69,196 KB
testcase_14 AC 1,044 ms
69,504 KB
権限があれば一括ダウンロードができます

ソースコード

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