結果

問題 No.289 数字を全て足そう
ユーザー soupesuteakasoupesuteaka
提出日時 2016-03-02 17:40:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 212 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 65,792 KB
最終ジャッジ日時 2024-04-16 21:03:05
合計ジャッジ時間 2,549 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
63,104 KB
testcase_01 AC 62 ms
63,104 KB
testcase_02 AC 58 ms
62,976 KB
testcase_03 AC 57 ms
63,104 KB
testcase_04 AC 58 ms
62,704 KB
testcase_05 AC 60 ms
63,824 KB
testcase_06 AC 60 ms
64,000 KB
testcase_07 AC 61 ms
65,152 KB
testcase_08 AC 61 ms
64,740 KB
testcase_09 AC 60 ms
64,256 KB
testcase_10 AC 61 ms
64,256 KB
testcase_11 AC 63 ms
65,588 KB
testcase_12 AC 62 ms
65,664 KB
testcase_13 AC 62 ms
65,024 KB
testcase_14 AC 61 ms
65,792 KB
testcase_15 AC 61 ms
65,024 KB
testcase_16 AC 61 ms
65,024 KB
testcase_17 AC 68 ms
65,056 KB
testcase_18 AC 68 ms
64,768 KB
testcase_19 AC 67 ms
65,152 KB
testcase_20 AC 66 ms
65,024 KB
testcase_21 AC 61 ms
62,592 KB
testcase_22 AC 66 ms
64,924 KB
testcase_23 AC 66 ms
64,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
import re
import itertools
from collections import deque

### defs ###


### main ###
S = sys.stdin.readline().strip('\n')
ans=0
for c in S:
	if(c.isdigit()):
		ans += int(c)
print(ans)
0