結果
問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
ユーザー | mai |
提出日時 | 2018-10-22 00:43:50 |
言語 | JavaScript (node v21.7.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 43 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 58,124 KB |
最終ジャッジ日時 | 2024-04-21 02:21:36 |
合計ジャッジ時間 | 3,463 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
40,320 KB |
testcase_01 | AC | 87 ms
42,420 KB |
testcase_02 | AC | 82 ms
42,688 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 144 ms
52,972 KB |
testcase_10 | AC | 167 ms
56,780 KB |
testcase_11 | AC | 167 ms
55,332 KB |
testcase_12 | AC | 170 ms
55,448 KB |
testcase_13 | AC | 180 ms
55,444 KB |
testcase_14 | AC | 184 ms
57,620 KB |
testcase_15 | AC | 176 ms
58,124 KB |
testcase_16 | AC | 187 ms
57,340 KB |
testcase_17 | AC | 83 ms
42,428 KB |
testcase_18 | WA | - |
ソースコード
const cin = []; const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', (line)=>{ cin.push(line); }); process.stdin.on('end', ()=>{main()}); Array.prototype.map_toInt = function(){ return this.map((e)=>+e); }; function main(){ const N = +cin.shift(); console.log( cin.shift().split(" ").map_toInt().reduce((s,e,i)=>(s+e)) ); }