結果

問題 No.218 経験値1.5倍
コンテスト
ユーザー harhogefoo
提出日時 2016-10-13 07:41:24
言語 Ruby
(4.0.7 + ACL)
コンパイル:
ruby -w -c _filename_
実行:
ruby _filename_
結果
AC  
実行時間 51 ms / 2,000 ms
+ 36µs
コード長 321 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 337 ms
コンパイル使用メモリ 8,576 KB
実行使用メモリ 14,592 KB
最終ジャッジ日時 2026-10-09 09:22:47
合計ジャッジ時間 3,181 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #
raw source code

needed_ex = gets.to_i
normal_ex = gets.to_f
campaign_ex = gets.to_f

normal_item_count = (needed_ex / normal_ex).ceil
campaign_item_count = (needed_ex / campaign_ex).ceil
# puts normal_item_count * 2 / 3.0
# puts campaign_item_count

if normal_item_count * 2 / 3.0 >= campaign_item_count
  puts "YES"
else
  puts "NO"
end
0