結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2018-09-21 20:01:18 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 6,692 KB |
実行使用メモリ | 53,072 KB |
最終ジャッジ日時 | 2024-10-13 00:41:27 |
合計ジャッジ時間 | 2,352 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 9 WA * 6 |
ソースコード
function Main(input) { input = input.split('\n'); let num = input[0]; let ar_integer = input[1].split(' '); let sum = 0; while(num > 0) { sum += parseInt(ar_integer[num - 1]); num--; } console.log(sum); } Main(require('fs').readFileSync('/dev/stdin', 'utf8'));