結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-16 17:39:04 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 13,099 ms |
| コンパイル使用メモリ | 237,400 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 03:14:58 |
| 合計ジャッジ時間 | 14,013 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
package main
import "fmt"
func main() {
var price, tax int
fmt.Scanf("%d %d", &price, &tax)
fmt.Println(solve(price, tax))
}
func solve(price int, taxPercent int) int {
tax := (price * 100) * taxPercent
return price + (tax / 10000)
}