結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-13 15:22:39 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 5,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 7,689 ms |
| コンパイル使用メモリ | 228,780 KB |
| 実行使用メモリ | 39,552 KB |
| 最終ジャッジ日時 | 2024-12-31 16:17:59 |
| 合計ジャッジ時間 | 10,462 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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'));