結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2020-08-24 13:16:06 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 46 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 72,836 KB |
最終ジャッジ日時 | 2024-11-06 10:17:46 |
合計ジャッジ時間 | 3,715 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 15 |
ソースコード
function Main(input) { const foo = input.split("\n"); const hoge = foo[1].split(" "); const N = foo[0]; let cal = 0; for(let i = 0; i < N; i++) { cal = cal + hoge[i]; } console.log(cal); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));