結果

問題 No.46 はじめのn歩
ユーザー inoskheinoskhe
提出日時 2018-05-04 00:25:39
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 176 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 19,632 KB
最終ジャッジ日時 2023-09-10 09:27:13
合計ジャッジ時間 7,524 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,132 KB
testcase_01 AC 79 ms
15,152 KB
testcase_02 AC 79 ms
15,212 KB
testcase_03 AC 79 ms
15,088 KB
testcase_04 AC 80 ms
15,212 KB
testcase_05 AC 80 ms
15,328 KB
testcase_06 AC 79 ms
15,080 KB
testcase_07 AC 80 ms
15,136 KB
testcase_08 TLE -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b = gets.split.map(&:to_i)

def min_hosu(hohaba,kukan)
  hosu = 0
  aruita = 0
  while aruita < kukan
    aruita += hohaba
    hosu += 1
  end
  puts hosu
end

min_hosu(a,b)
0