結果

問題 No.23 技の選択
ユーザー letrangerjpletrangerjp
提出日時 2017-06-03 14:37:18
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 126 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 16,112 KB
最終ジャッジ日時 2023-10-22 02:58:19
合計ジャッジ時間 4,217 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
16,112 KB
testcase_01 AC 72 ms
16,112 KB
testcase_02 AC 70 ms
16,112 KB
testcase_03 AC 70 ms
16,112 KB
testcase_04 AC 69 ms
16,112 KB
testcase_05 AC 70 ms
16,112 KB
testcase_06 AC 70 ms
16,112 KB
testcase_07 AC 74 ms
16,112 KB
testcase_08 AC 71 ms
16,112 KB
testcase_09 AC 73 ms
16,112 KB
testcase_10 WA -
testcase_11 AC 72 ms
16,112 KB
testcase_12 AC 79 ms
16,112 KB
testcase_13 AC 75 ms
16,112 KB
testcase_14 AC 72 ms
16,112 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 82 ms
16,108 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 76 ms
16,112 KB
testcase_21 WA -
testcase_22 AC 74 ms
16,112 KB
testcase_23 AC 72 ms
16,112 KB
testcase_24 AC 78 ms
16,112 KB
testcase_25 AC 79 ms
16,112 KB
testcase_26 AC 78 ms
16,112 KB
testcase_27 AC 71 ms
16,112 KB
testcase_28 AC 77 ms
16,112 KB
testcase_29 AC 71 ms
16,112 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 74 ms
16,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

H, A, D = gets.split.take(3).map(&:to_i)

p (0..H.fdiv(A).ceil).map{|i|
  rest = H - i * A
  i + (rest.fdiv(D)).ceil*1.5
}.min
0