結果

問題 No.9013 台形の面積
ユーザー testtest
提出日時 2022-11-14 21:33:25
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 5,156 KB
実行使用メモリ 42,056 KB
最終ジャッジ日時 2023-10-14 04:33:12
合計ジャッジ時間 2,192 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
41,900 KB
testcase_01 AC 78 ms
41,972 KB
testcase_02 AC 77 ms
41,944 KB
testcase_03 AC 77 ms
41,884 KB
testcase_04 AC 76 ms
41,808 KB
testcase_05 AC 77 ms
41,984 KB
testcase_06 AC 77 ms
42,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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