結果

問題 No.1070 Missing a space
ユーザー yuly3yuly3
提出日時 2020-06-26 09:44:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 241 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-16 23:31:22
合計ジャッジ時間 1,917 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,100 KB
testcase_01 AC 67 ms
71,420 KB
testcase_02 AC 69 ms
71,340 KB
testcase_03 AC 68 ms
71,424 KB
testcase_04 AC 68 ms
71,584 KB
testcase_05 AC 69 ms
71,144 KB
testcase_06 AC 68 ms
71,360 KB
testcase_07 AC 67 ms
71,256 KB
testcase_08 AC 67 ms
71,200 KB
testcase_09 AC 67 ms
70,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    C = rl().rstrip()
    
    ans = 0
    for ci in C[1:]:
        if ci != '0':
            ans += 1
    print(ans)


if __name__ == '__main__':
    solve()
0