結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー 山口太輔
提出日時 2020-08-24 13:37:20
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 331 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 51,456 KB
最終ジャッジ日時 2024-11-06 10:18:24
合計ジャッジ時間 2,661 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const foo = input.split("\n");
    const N = parseInt(foo[0]);
    const hoge = foo[1].split(" ");
    
    let cal = 0;
    for(let i = 0; i < N; i++) {
        cal = cal + parseInt(hoge[i]);
    }
    console.log(cal);
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0