結果

問題 No.46 はじめのn歩
ユーザー americandog1993americandog1993
提出日時 2017-04-20 21:20:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 111 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 11,448 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2023-09-27 03:52:44
合計ジャッジ時間 1,606 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,036 KB
testcase_01 AC 83 ms
15,136 KB
testcase_02 AC 84 ms
15,296 KB
testcase_03 AC 84 ms
15,348 KB
testcase_04 AC 81 ms
15,360 KB
testcase_05 AC 87 ms
15,340 KB
testcase_06 AC 83 ms
15,036 KB
testcase_07 AC 83 ms
15,304 KB
testcase_08 AC 80 ms
15,348 KB
testcase_09 AC 81 ms
15,280 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.split.map(&:to_i)

a = input[0]
b = input[1]

ans = b / a

if b % a != 0
   ans += 1
end

puts ans
0