結果

問題 No.289 数字を全て足そう
ユーザー 👑 KazunKazun
提出日時 2020-05-31 03:49:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 1,000 ms
コード長 96 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,016 KB
実行使用メモリ 61,084 KB
最終ジャッジ日時 2024-04-27 15:22:50
合計ジャッジ時間 2,083 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
52,432 KB
testcase_01 AC 40 ms
53,384 KB
testcase_02 AC 40 ms
53,540 KB
testcase_03 AC 39 ms
52,452 KB
testcase_04 AC 39 ms
52,824 KB
testcase_05 AC 50 ms
58,492 KB
testcase_06 AC 45 ms
59,240 KB
testcase_07 AC 47 ms
60,040 KB
testcase_08 AC 49 ms
58,680 KB
testcase_09 AC 43 ms
58,664 KB
testcase_10 AC 46 ms
59,296 KB
testcase_11 AC 46 ms
60,492 KB
testcase_12 AC 46 ms
61,084 KB
testcase_13 AC 44 ms
59,464 KB
testcase_14 AC 43 ms
59,484 KB
testcase_15 AC 44 ms
59,364 KB
testcase_16 AC 45 ms
58,952 KB
testcase_17 AC 44 ms
60,948 KB
testcase_18 AC 44 ms
60,132 KB
testcase_19 AC 45 ms
59,520 KB
testcase_20 AC 44 ms
59,176 KB
testcase_21 AC 38 ms
52,920 KB
testcase_22 AC 44 ms
59,160 KB
testcase_23 AC 43 ms
58,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
U=set(map(str,range(10)))

T=0
for s in S:
    if s in U:
        T+=int(s)

print(T)
0