結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-04-27 20:20:03 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
AC
|
| 実行時間 | 651 ms / 2,000 ms |
| + 27µs | |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 1,363 ms |
| コンパイル使用メモリ | 84,028 KB |
| 実行使用メモリ | 57,352 KB |
| 最終ジャッジ日時 | 2026-08-26 06:31:02 |
| 合計ジャッジ時間 | 8,448 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int rank = 1;
int scoreK = sc.nextInt();
System.out.println(rank);
for (int i = 1; i < n; i++) {
int scoreOthers = sc.nextInt();
if (scoreOthers > scoreK) {
rank++;
}
System.out.println(rank);
}
}
}
samplelpmas