結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-13 15:22:39 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 5,000 ms |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 4,577 ms |
| コンパイル使用メモリ | 350,192 KB |
| 実行使用メモリ | 53,112 KB |
| 最終ジャッジ日時 | 2026-06-05 04:37:49 |
| 合計ジャッジ時間 | 8,380 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
import { readFileSync } from 'fs';
function Main(input: string) {
const data = input.split('\n');
const firstLine = data[0].split(' ').map(Number);
const price = firstLine[0];
const taxRate = firstLine[1];
const tax = Math.floor((price * taxRate) / 100);
console.log(price + tax);
}
Main(readFileSync('/dev/stdin', 'utf8'));