結果

問題 No.289 数字を全て足そう
ユーザー あかりきあかりき
提出日時 2021-05-24 06:28:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 121 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 60,504 KB
最終ジャッジ日時 2024-04-20 16:31:11
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,704 KB
testcase_01 AC 37 ms
52,240 KB
testcase_02 AC 35 ms
52,948 KB
testcase_03 AC 37 ms
52,612 KB
testcase_04 AC 35 ms
53,072 KB
testcase_05 AC 38 ms
58,312 KB
testcase_06 AC 37 ms
59,284 KB
testcase_07 AC 38 ms
59,756 KB
testcase_08 AC 38 ms
59,968 KB
testcase_09 AC 36 ms
58,128 KB
testcase_10 AC 35 ms
59,640 KB
testcase_11 AC 39 ms
60,504 KB
testcase_12 AC 40 ms
60,376 KB
testcase_13 AC 38 ms
59,536 KB
testcase_14 AC 40 ms
59,692 KB
testcase_15 AC 38 ms
59,224 KB
testcase_16 AC 39 ms
59,164 KB
testcase_17 AC 39 ms
60,424 KB
testcase_18 AC 40 ms
59,756 KB
testcase_19 AC 39 ms
59,600 KB
testcase_20 AC 39 ms
59,856 KB
testcase_21 AC 34 ms
52,320 KB
testcase_22 AC 39 ms
60,424 KB
testcase_23 AC 38 ms
59,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
L=[str(i) for i in range(10)]
ans=0
for i in range(len(s)):
  if s[i] in L:
    ans+=int(s[i])
print(ans)
0