結果

問題 No.656 ゴルフ
ユーザー kohei2019
提出日時 2022-03-03 01:03:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 109 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,264 KB
実行使用メモリ 53,816 KB
最終ジャッジ日時 2024-07-16 15:03:21
合計ジャッジ時間 1,267 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = 0
for s in S:
    if s == '0':
        ans += 10
    else:
        ans += int(s)
print(ans)
0