結果

問題 No.656 ゴルフ
ユーザー koba-e964
提出日時 2021-09-17 01:04:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 82,960 KB
実行使用メモリ 53,812 KB
最終ジャッジ日時 2024-06-29 17:18:37
合計ジャッジ時間 989 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

s = input()
a = 0
for c in s:
    if c == '0':
        a += 10
    else:
        a += ord(c) - 48
print(a)
0