結果

問題 No.1798 Financial Quiz
ユーザー testtest
提出日時 2022-11-20 04:59:24
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 37,488 KB
最終ジャッジ日時 2023-10-21 06:45:12
合計ジャッジ時間 3,169 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
37,488 KB
testcase_01 AC 64 ms
37,488 KB
testcase_02 AC 63 ms
37,488 KB
testcase_03 AC 63 ms
37,488 KB
testcase_04 AC 62 ms
37,488 KB
testcase_05 AC 64 ms
37,488 KB
testcase_06 AC 65 ms
37,488 KB
testcase_07 AC 64 ms
37,488 KB
testcase_08 AC 63 ms
37,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    let src = input.replace("\n", "").split(" ");
    let N = parseInt(src[0]);
    let P = parseInt(src[1]);
    let ans = N - (N * P / 100);
    console.log(ans.toString());
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0