結果

問題 No.504 ゲーム大会(ランキング)
コンテスト
ユーザー R_F
提出日時 2017-12-13 14:03:52
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 790 ms / 2,000 ms
コード長 456 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,274 ms
コンパイル使用メモリ 439,816 KB
実行使用メモリ 93,480 KB
最終ジャッジ日時 2026-05-14 15:53:48
合計ジャッジ時間 18,006 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.util.Scanner

class No504() {
	private var input = Scanner(System. `in`)
	private var testCase = input.nextInt()
	private var rank = 1
	private var kScore = input.nextInt()

	fun ranking() {
		for (i in 1..this.testCase - 1) currentRanking()
		println(this.rank)
	}

	fun currentRanking() {
		println(this.rank)
		if (this.input.nextInt() > this.kScore) this.rank++
	}

}

fun main(args: Array<String>) {
	var no504 = No504()
	no504.ranking()
}
0