結果

問題 No.504 ゲーム大会(ランキング)
ユーザー sei0osei0o
提出日時 2017-05-19 17:57:52
言語 Ruby
(3.2.2)
結果
AC  
実行時間 232 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 16,160 KB
最終ジャッジ日時 2023-10-19 02:49:52
合計ジャッジ時間 3,588 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
16,056 KB
testcase_01 AC 89 ms
16,056 KB
testcase_02 AC 87 ms
16,056 KB
testcase_03 AC 90 ms
16,056 KB
testcase_04 AC 92 ms
16,056 KB
testcase_05 AC 89 ms
16,056 KB
testcase_06 AC 90 ms
16,056 KB
testcase_07 AC 228 ms
16,156 KB
testcase_08 AC 228 ms
16,156 KB
testcase_09 AC 229 ms
16,156 KB
testcase_10 AC 226 ms
16,160 KB
testcase_11 AC 229 ms
16,156 KB
testcase_12 AC 224 ms
16,156 KB
testcase_13 AC 221 ms
16,156 KB
testcase_14 AC 232 ms
16,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
k = gets.to_i
rank = 1
puts rank

(n-1).times do |i|

  if gets.to_i > k
    rank += 1
  end

  puts rank
end
0