結果

問題 No.289 数字を全て足そう
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-03-21 01:06:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 1,000 ms
コード長 108 bytes
コンパイル時間 1,462 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 81,132 KB
最終ジャッジ日時 2023-08-22 05:33:30
合計ジャッジ時間 5,580 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
79,680 KB
testcase_01 AC 142 ms
79,680 KB
testcase_02 AC 144 ms
79,724 KB
testcase_03 AC 145 ms
79,896 KB
testcase_04 AC 147 ms
79,680 KB
testcase_05 AC 144 ms
80,124 KB
testcase_06 AC 141 ms
80,316 KB
testcase_07 AC 146 ms
80,712 KB
testcase_08 AC 146 ms
80,856 KB
testcase_09 AC 142 ms
80,224 KB
testcase_10 AC 145 ms
80,384 KB
testcase_11 AC 147 ms
80,328 KB
testcase_12 AC 141 ms
80,904 KB
testcase_13 AC 142 ms
80,144 KB
testcase_14 AC 144 ms
80,848 KB
testcase_15 AC 143 ms
80,164 KB
testcase_16 AC 142 ms
80,148 KB
testcase_17 AC 150 ms
81,132 KB
testcase_18 AC 147 ms
81,056 KB
testcase_19 AC 144 ms
80,316 KB
testcase_20 AC 146 ms
80,932 KB
testcase_21 AC 142 ms
79,876 KB
testcase_22 AC 145 ms
80,848 KB
testcase_23 AC 143 ms
80,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re


s = str(input())

num_str = re.sub("\\D", "", s)
ans = sum([int(i) for i in num_str])
print(ans)
0