結果

問題 No.289 数字を全て足そう
ユーザー pluto77
提出日時 2016-02-04 10:50:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 1,000 ms
コード長 135 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 00:43:42
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_289

s=[]
s=raw_input()

res=0
for i in xrange(len(s)):
 x=ord(s[i])
 if x>48 and x<=57:
  res+=x-48

print res
 
0