結果

問題 No.289 数字を全て足そう
ユーザー TK
提出日時 2023-09-18 20:19:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 25 ms / 1,000 ms
コード長 224 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-05 09:47:07
合計ジャッジ時間 1,689 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

a=input()
sum=0
sum+=1*(a.count("1"))
sum+=2*(a.count("2"))
sum+=3*(a.count("3"))
sum+=4*(a.count("4"))
sum+=5*(a.count("5"))
sum+=6*(a.count("6"))
sum+=7*(a.count("7"))
sum+=8*(a.count("8"))
sum+=9*(a.count("9"))
print(sum)
0