結果

問題 No.289 数字を全て足そう
ユーザー siganaisiganai
提出日時 2022-05-12 10:21:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 102 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 76,328 KB
最終ジャッジ日時 2023-09-27 08:47:47
合計ジャッジ時間 3,198 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,284 KB
testcase_01 AC 64 ms
71,364 KB
testcase_02 AC 62 ms
71,496 KB
testcase_03 AC 61 ms
71,252 KB
testcase_04 AC 62 ms
71,364 KB
testcase_05 AC 67 ms
75,896 KB
testcase_06 AC 67 ms
76,132 KB
testcase_07 AC 69 ms
76,048 KB
testcase_08 AC 68 ms
76,044 KB
testcase_09 AC 68 ms
75,952 KB
testcase_10 AC 69 ms
76,052 KB
testcase_11 AC 69 ms
76,080 KB
testcase_12 AC 68 ms
76,240 KB
testcase_13 AC 69 ms
76,300 KB
testcase_14 AC 64 ms
76,328 KB
testcase_15 AC 66 ms
76,092 KB
testcase_16 AC 66 ms
75,908 KB
testcase_17 AC 66 ms
76,128 KB
testcase_18 AC 67 ms
76,172 KB
testcase_19 AC 68 ms
75,924 KB
testcase_20 AC 68 ms
76,072 KB
testcase_21 AC 64 ms
71,508 KB
testcase_22 AC 67 ms
76,224 KB
testcase_23 AC 68 ms
76,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
ans = 0
for i in range(len(s)):
    if s[i].isdigit():
        ans += int(s[i])
print(ans)
0