結果

問題 No.289 数字を全て足そう
ユーザー パイソン勉強中パイソン勉強中
提出日時 2018-12-04 22:37:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 133 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 9,196 KB
最終ジャッジ日時 2023-09-22 18:21:30
合計ジャッジ時間 1,783 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,040 KB
testcase_01 AC 25 ms
9,140 KB
testcase_02 AC 25 ms
9,020 KB
testcase_03 AC 24 ms
9,048 KB
testcase_04 AC 25 ms
9,188 KB
testcase_05 AC 25 ms
9,024 KB
testcase_06 AC 26 ms
8,980 KB
testcase_07 AC 29 ms
9,168 KB
testcase_08 AC 29 ms
9,196 KB
testcase_09 AC 26 ms
9,188 KB
testcase_10 AC 26 ms
9,120 KB
testcase_11 AC 28 ms
9,192 KB
testcase_12 AC 31 ms
9,144 KB
testcase_13 AC 28 ms
9,148 KB
testcase_14 AC 31 ms
9,012 KB
testcase_15 AC 28 ms
9,172 KB
testcase_16 AC 28 ms
8,996 KB
testcase_17 AC 30 ms
9,148 KB
testcase_18 AC 31 ms
9,156 KB
testcase_19 AC 29 ms
9,112 KB
testcase_20 AC 29 ms
8,984 KB
testcase_21 AC 25 ms
9,004 KB
testcase_22 AC 31 ms
8,992 KB
testcase_23 AC 35 ms
9,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

text = input()

total = 0
for v in text :
    if re.search('\d',v) is not None :
        total += int(v)
print(str(total))
0