結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
harhogefoo
|
| 提出日時 | 2016-10-13 07:41:24 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 2,000 ms |
| コード長 | 321 bytes |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-12-29 15:52:24 |
| 合計ジャッジ時間 | 4,200 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
Syntax OK
ソースコード
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
harhogefoo