結果

問題 No.9014 テストの合計点と平均点
ユーザー testtest
提出日時 2022-11-14 21:45:44
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 42,028 KB
最終ジャッジ日時 2023-10-14 04:45:41
合計ジャッジ時間 2,239 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
41,980 KB
testcase_01 AC 76 ms
41,924 KB
testcase_02 AC 75 ms
42,020 KB
testcase_03 AC 75 ms
41,784 KB
testcase_04 AC 76 ms
42,028 KB
testcase_05 AC 76 ms
41,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    let src = input.replace("\n", "").split(",");
    let sum = (parseInt(src[0]) + parseInt(src[1])) + parseInt(src[2]);
    let avr = parseFloat(sum / 3.0).toFixed(1).toString();
    console.log("合計点:" + sum);
    console.log("平均点:" + avr);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0