結果
| 問題 | No.289 数字を全て足そう | 
| コンテスト | |
| ユーザー |  togatoga | 
| 提出日時 | 2016-04-25 19:28:54 | 
| 言語 | JavaScript (node v23.5.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 71 ms / 1,000 ms | 
| コード長 | 281 bytes | 
| コンパイル時間 | 72 ms | 
| コンパイル使用メモリ | 6,948 KB | 
| 実行使用メモリ | 43,136 KB | 
| 最終ジャッジ日時 | 2024-10-12 23:38:29 | 
| 合計ジャッジ時間 | 2,748 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
function Main(input) {
	input = input.split("\n");
	var str = input[0];
	res = 0;
	for (var i = 0; i < str.length; i++){
		if (isNaN(str[i])){
			continue;
		}else{
			res += Number(str[i]);
		}
	}
	console.log("%d", res);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
            
            
            
        