結果

問題 No.9014 テストの合計点と平均点
ユーザー Thunder-Sky
提出日時 2023-01-05 22:58:26
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-11-29 15:08:28
合計ジャッジ時間 2,771 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    var input = input.split("\n")[0].split(",");
    var result = (() => {
        count = 0;
        input.map(function(value) { count = count + Number(value)});
        return "合計点:" + count + "\n平均点:" + (count / 3).toFixed(1);
    })();
    console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0