結果

問題 No.656 ゴルフ
ユーザー koba-e964koba-e964
提出日時 2021-09-17 01:04:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 71,596 KB
最終ジャッジ日時 2023-09-12 04:17:09
合計ジャッジ時間 1,931 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,160 KB
testcase_01 AC 74 ms
71,352 KB
testcase_02 AC 74 ms
71,376 KB
testcase_03 AC 75 ms
71,152 KB
testcase_04 AC 75 ms
71,520 KB
testcase_05 AC 73 ms
71,376 KB
testcase_06 AC 75 ms
71,596 KB
testcase_07 AC 76 ms
71,384 KB
testcase_08 AC 75 ms
71,584 KB
testcase_09 AC 76 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

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