結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
yuruhuwaRuby
|
| 提出日時 | 2016-05-30 22:48:05 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 5,000 ms |
| コード長 | 112 bytes |
| 記録 | |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 29,952 KB |
| 最終ジャッジ日時 | 2026-04-01 18:57:05 |
| 合計ジャッジ時間 | 2,795 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
Main.rb:2: warning: '*' after local variable or literal is interpreted as binary operator even though it seems like argument prefix Syntax OK
ソースコード
money,tax = gets.split.map(&:to_i) consumption_tax = money * tax *0.01 sum = money + consumption_tax p sum.to_i
yuruhuwaRuby