結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー swyroakswyroak
提出日時 2021-07-20 23:01:15
言語 JavaScript
(node v21.7.1)
結果
RE  
実行時間 -
コード長 358 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 44,052 KB
最終ジャッジ日時 2023-09-24 12:57:43
合計ジャッジ時間 1,019 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input:string) {
    //console.log(input)
    const oridata=input.split("\n")[1]
    const datas=oridata.split(' ').map(i=>Number(i));
    const Answer=datas.reduce(function (accum:number,current:number){
        return accum+current
    },0)

    console.log(Answer)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//Main("3\n1 10 3")
0