結果

問題 No.656 ゴルフ
ユーザー c7t1012c7t1012
提出日時 2018-04-07 00:31:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-08 18:06:25
合計ジャッジ時間 1,049 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

ipt = int(input())
S = []
while ipt > 0:
    if ipt % 10 == 0:
        S.append(10)
    else:
        S.append(ipt % 10)
    ipt //= 10
print(sum(S))
0