結果
問題 |
No.9011 数字を全て足そう(数字だけ)
|
ユーザー |
|
提出日時 | 2022-08-11 20:16:44 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 403 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-09-22 04:07:33 |
合計ジャッジ時間 | 2,513 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
function Main(input) { // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。 var data = input.split('').slice(0,-1) let sum = 0; for(let i = 0;i < data.length ;i++){ sum += parseInt(data[i]); } console.log(sum); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));