結果
| 問題 | 
                            No.289 数字を全て足そう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-10-02 05:38:59 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 224 bytes | 
| コンパイル時間 | 87 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-10-12 09:59:22 | 
| 合計ジャッジ時間 | 1,814 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 RE * 1 | 
ソースコード
from operator import add
from functools import reduce
def isNum(s):
    Num = [str(i) for i in range(10)]
    return True if s in Num else False
S = list(input())
S = filter(isNum, S)
print(reduce(add, list(map(int, S))))