結果
| 問題 |
No.56 消費税
|
| ユーザー |
|
| 提出日時 | 2016-01-24 17:46:49 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 9,969 ms |
| コンパイル使用メモリ | 221,780 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 03:04:30 |
| 合計ジャッジ時間 | 10,735 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
sc := bufio.NewScanner(os.Stdin)
sc.Split(bufio.ScanWords)
sc.Scan(); d, _ := strconv.Atoi(sc.Text())
sc.Scan(); p, _ := strconv.Atoi(sc.Text())
ans := int(float64(d * (100 + p)) / 100);
fmt.Println(ans)
}