結果

問題 No.56 消費税
ユーザー ctktctkt
提出日時 2022-10-17 14:50:49
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 428 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 6,928 KB
実行使用メモリ 44,360 KB
最終ジャッジ日時 2023-09-10 13:53:23
合計ジャッジ時間 4,091 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
42,072 KB
testcase_01 AC 78 ms
42,104 KB
testcase_02 AC 77 ms
42,104 KB
testcase_03 WA -
testcase_04 AC 80 ms
42,048 KB
testcase_05 AC 79 ms
42,296 KB
testcase_06 AC 78 ms
42,020 KB
testcase_07 AC 79 ms
42,116 KB
testcase_08 AC 79 ms
42,080 KB
testcase_09 AC 79 ms
41,928 KB
testcase_10 AC 78 ms
41,872 KB
testcase_11 AC 78 ms
42,184 KB
testcase_12 AC 78 ms
42,264 KB
testcase_13 AC 79 ms
42,188 KB
testcase_14 AC 79 ms
41,904 KB
testcase_15 AC 79 ms
42,016 KB
testcase_16 AC 78 ms
42,104 KB
testcase_17 AC 79 ms
42,092 KB
testcase_18 AC 79 ms
42,104 KB
testcase_19 AC 79 ms
42,152 KB
testcase_20 WA -
testcase_21 AC 78 ms
42,096 KB
testcase_22 AC 79 ms
41,880 KB
testcase_23 AC 79 ms
42,008 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

// inputに入力データ全体が入る
function Main(input) {
	// 1行目がinput[0], 2行目がinput[1], …に入る
	input = input.split("\n");
	let n=input[0].split(" ").map(Number);
	
	console.log(Math.floor(n[0]*((100+n[1])/100)));
	
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0