結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
f Ox
|
| 提出日時 | 2021-05-18 00:07:24 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 42,624 KB |
| 最終ジャッジ日時 | 2024-10-07 05:45:15 |
| 合計ジャッジ時間 | 2,448 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 19 RE * 1 |
ソースコード
function Main(input) {
let num = input.replace(/[^0-9]/g, '');
let array = num.split('');
let sum = array.reduce((a,b)=>a+b);
console.log(sum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
f Ox