結果

問題 No.289 数字を全て足そう
ユーザー goki1008
提出日時 2021-04-24 22:13:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-04 09:15:00
合計ジャッジ時間 1,756 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
A = ['1','2','3','4','5','6','7','8','9']
x = 0
for n in A:
  p = S.count(n)
  x = x + (p * int(n))

if x == 0:
  print('()')
else:
  print(x)
0