結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,196 KB
testcase_01 AC 77 ms
41,996 KB
testcase_02 AC 79 ms
42,268 KB
testcase_03 WA -
testcase_04 AC 77 ms
42,116 KB
testcase_05 AC 77 ms
42,160 KB
testcase_06 AC 75 ms
42,120 KB
testcase_07 AC 76 ms
41,940 KB
testcase_08 AC 77 ms
41,936 KB
testcase_09 AC 78 ms
41,908 KB
testcase_10 AC 78 ms
42,380 KB
testcase_11 AC 77 ms
42,420 KB
testcase_12 AC 77 ms
42,128 KB
testcase_13 AC 78 ms
42,164 KB
testcase_14 AC 78 ms
42,120 KB
testcase_15 AC 77 ms
42,116 KB
testcase_16 AC 75 ms
41,948 KB
testcase_17 AC 77 ms
42,076 KB
testcase_18 AC 77 ms
43,988 KB
testcase_19 AC 76 ms
41,952 KB
testcase_20 WA -
testcase_21 AC 76 ms
42,120 KB
testcase_22 AC 77 ms
42,132 KB
testcase_23 AC 77 ms
42,128 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 num=input[0].split(" ").map(Number);
	
	console.log(Math.floor(num[0]*((100+num[1])/100)));
	
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0