結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー yun8686
提出日時 2019-11-20 11:40:09
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 33 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 42,252 KB
最終ジャッジ日時 2024-10-13 01:28:39
合計ジャッジ時間 2,345 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

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