結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-29 21:58:57 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 129 bytes |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-07-02 13:39:02 |
| 合計ジャッジ時間 | 3,689 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 23 |
コンパイルメッセージ
Syntax OK
ソースコード
require 'bigdecimal'
require 'bigdecimal/util'
d, p = gets.chomp.split(' ').map(&:to_f)
puts ((1 + (p / 100.0).to_d) * d).to_f