結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-04-27 20:20:03 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 1,164 ms / 2,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 2,354 ms |
| コンパイル使用メモリ | 74,132 KB |
| 実行使用メモリ | 58,292 KB |
| 最終ジャッジ日時 | 2024-09-13 14:52:21 |
| 合計ジャッジ時間 | 13,621 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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