結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー yun8686yun8686
提出日時 2019-11-20 11:40:09
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 42,128 KB
最終ジャッジ日時 2024-04-21 03:06:27
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
40,064 KB
testcase_01 AC 88 ms
40,064 KB
testcase_02 AC 92 ms
41,872 KB
testcase_03 AC 83 ms
41,864 KB
testcase_04 AC 81 ms
39,936 KB
testcase_05 AC 83 ms
40,320 KB
testcase_06 AC 83 ms
41,748 KB
testcase_07 AC 84 ms
41,996 KB
testcase_08 AC 84 ms
41,752 KB
testcase_09 AC 84 ms
41,872 KB
testcase_10 AC 82 ms
41,744 KB
testcase_11 AC 82 ms
41,752 KB
testcase_12 AC 80 ms
39,936 KB
testcase_13 AC 83 ms
42,128 KB
testcase_14 AC 81 ms
39,936 KB
testcase_15 AC 83 ms
42,000 KB
testcase_16 AC 85 ms
40,192 KB
testcase_17 AC 84 ms
39,936 KB
testcase_18 AC 84 ms
41,880 KB
testcase_19 AC 83 ms
41,832 KB
testcase_20 AC 83 ms
41,736 KB
testcase_21 AC 83 ms
42,008 KB
testcase_22 AC 83 ms
39,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

process.stdin.resume();
process.stdin.setEncoding('utf8');
// Your code here!

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));
function main(inputs){
    var ans = 0;
    inputs[0].split("").forEach(v=>{
        ans += (v-0);
    });
    console.log(ans);

}
0