結果

問題 No.289 数字を全て足そう
ユーザー fV9TwBhUoa9S3eV
提出日時 2019-09-13 09:11:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-04 03:43:58
合計ジャッジ時間 1,473 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.289 数字をすべて足そう
S = input()
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
result = 0

for s in S:
    if s in numbers:
        result += int(s)

print(result)
0