結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
42,120 KB
testcase_01 AC 80 ms
42,248 KB
testcase_02 AC 80 ms
42,180 KB
testcase_03 WA -
testcase_04 AC 79 ms
42,160 KB
testcase_05 AC 79 ms
42,324 KB
testcase_06 AC 79 ms
42,340 KB
testcase_07 AC 79 ms
42,260 KB
testcase_08 AC 80 ms
42,252 KB
testcase_09 AC 81 ms
42,204 KB
testcase_10 AC 81 ms
42,340 KB
testcase_11 AC 80 ms
42,588 KB
testcase_12 AC 80 ms
42,324 KB
testcase_13 AC 79 ms
42,288 KB
testcase_14 AC 80 ms
42,300 KB
testcase_15 AC 80 ms
42,284 KB
testcase_16 AC 80 ms
42,316 KB
testcase_17 AC 80 ms
42,264 KB
testcase_18 AC 79 ms
42,116 KB
testcase_19 AC 81 ms
42,164 KB
testcase_20 WA -
testcase_21 AC 80 ms
42,116 KB
testcase_22 AC 80 ms
42,332 KB
testcase_23 AC 80 ms
42,324 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