結果

問題 No.656 ゴルフ
ユーザー ApoiApoi
提出日時 2018-07-26 19:19:09
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-13 18:45:23
合計ジャッジ時間 953 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 14 ms
7,876 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 16 ms
7,792 KB
testcase_04 AC 16 ms
7,848 KB
testcase_05 AC 16 ms
7,816 KB
testcase_06 AC 15 ms
7,968 KB
testcase_07 AC 15 ms
7,780 KB
testcase_08 AC 15 ms
7,828 KB
testcase_09 AC 14 ms
7,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
a = 0
for i in range(9):
    if n[i] != '0':
        a += int(n[i])
    else:
        a += 10
print(a)
0