結果

問題 No.504 ゲーム大会(ランキング)
ユーザー hoktohokto
提出日時 2019-01-04 08:19:14
言語 Ruby
(3.3.0)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 15,440 KB
最終ジャッジ日時 2023-08-15 15:22:41
合計ジャッジ時間 4,756 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
14,992 KB
testcase_01 AC 71 ms
14,996 KB
testcase_02 AC 70 ms
15,140 KB
testcase_03 AC 69 ms
15,148 KB
testcase_04 AC 72 ms
15,020 KB
testcase_05 AC 72 ms
15,088 KB
testcase_06 AC 74 ms
15,332 KB
testcase_07 AC 200 ms
15,132 KB
testcase_08 AC 203 ms
15,440 KB
testcase_09 AC 199 ms
15,280 KB
testcase_10 AC 205 ms
15,436 KB
testcase_11 AC 203 ms
15,240 KB
testcase_12 AC 197 ms
15,380 KB
testcase_13 AC 191 ms
15,440 KB
testcase_14 AC 198 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
ken_num=gets.to_i
ken_rank=1
enemy_num=-99999
n.times do|i|
	if enemy_num>ken_num
		ken_rank+=1
	end
	puts ken_rank
	if i!=n-1
	enemy_num=gets.to_i
	end
end
0