結果
| 問題 | No.289 数字を全て足そう | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-02-15 14:44:09 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 36 ms / 1,000 ms | 
| コード長 | 121 bytes | 
| コンパイル時間 | 185 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-06 13:51:26 | 
| 合計ジャッジ時間 | 1,824 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
s = input()
nums = [str(i) for i in range(10)]
ans = 0
for e in s:
    if e in nums:
        ans += int(e)
print(ans)
            
            
            
        