結果

問題 No.289 数字を全て足そう
ユーザー SuburiSuburi
提出日時 2020-09-12 02:14:42
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 27 ms / 1,000 ms
コード長 92 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 9,252 KB
最終ジャッジ日時 2023-08-28 14:14:26
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
9,044 KB
testcase_01 AC 24 ms
9,004 KB
testcase_02 AC 24 ms
9,136 KB
testcase_03 AC 24 ms
8,884 KB
testcase_04 AC 24 ms
9,072 KB
testcase_05 AC 24 ms
9,112 KB
testcase_06 AC 25 ms
9,008 KB
testcase_07 AC 24 ms
9,044 KB
testcase_08 AC 25 ms
9,224 KB
testcase_09 AC 24 ms
9,112 KB
testcase_10 AC 24 ms
9,184 KB
testcase_11 AC 24 ms
9,172 KB
testcase_12 AC 25 ms
9,180 KB
testcase_13 AC 25 ms
9,212 KB
testcase_14 AC 24 ms
9,012 KB
testcase_15 AC 25 ms
9,172 KB
testcase_16 AC 24 ms
8,956 KB
testcase_17 AC 24 ms
9,104 KB
testcase_18 AC 24 ms
8,952 KB
testcase_19 AC 24 ms
9,172 KB
testcase_20 AC 24 ms
9,032 KB
testcase_21 AC 23 ms
9,184 KB
testcase_22 AC 24 ms
9,060 KB
testcase_23 AC 27 ms
9,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

import re

S = list(re.findall(r'\d',S))
S = [int(s) for s in S]

print(sum(S))
0