結果

問題 No.289 数字を全て足そう
ユーザー Shin09shinShin09shin
提出日時 2019-01-15 06:31:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 151 ms / 1,000 ms
コード長 109 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 81,048 KB
最終ジャッジ日時 2023-09-06 00:46:29
合計ジャッジ時間 5,096 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
79,924 KB
testcase_01 AC 142 ms
79,900 KB
testcase_02 AC 143 ms
79,960 KB
testcase_03 AC 139 ms
79,720 KB
testcase_04 AC 139 ms
79,816 KB
testcase_05 AC 139 ms
80,096 KB
testcase_06 AC 140 ms
80,172 KB
testcase_07 AC 143 ms
80,852 KB
testcase_08 AC 151 ms
80,800 KB
testcase_09 AC 150 ms
80,012 KB
testcase_10 AC 148 ms
80,180 KB
testcase_11 AC 149 ms
80,176 KB
testcase_12 AC 150 ms
80,944 KB
testcase_13 AC 144 ms
80,252 KB
testcase_14 AC 146 ms
80,920 KB
testcase_15 AC 141 ms
80,128 KB
testcase_16 AC 143 ms
80,036 KB
testcase_17 AC 145 ms
80,764 KB
testcase_18 AC 145 ms
80,840 KB
testcase_19 AC 145 ms
79,952 KB
testcase_20 AC 147 ms
81,048 KB
testcase_21 AC 145 ms
79,820 KB
testcase_22 AC 150 ms
80,856 KB
testcase_23 AC 150 ms
80,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

i = input()
pattern = r'([0-9])'
lists = re.findall(pattern, i)

print(sum(int(i) for i in lists))
0