結果

問題 No.9014 テストの合計点と平均点
ユーザー Thunder-Sky
提出日時 2023-01-05 22:58:26
言語 JavaScript
(node v25.8.2)
コンパイル:
true
実行:
node _filename_ ONLINE_JUDGE
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 358 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 112 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 52,300 KB
最終ジャッジ日時 2026-05-23 09:44:50
合計ジャッジ時間 3,852 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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