yukicoder contest 261 参戦記
A 1168 Digit Sum Sequence
増えていったりしないので、何も考えずに99回ループを回せば OK.
N = int(input())
for _ in range(99):
    N = sum(int(c) for c in str(N))
print(N)
B 1169 Row and Column and Diagonal
解けず.
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
増えていったりしないので、何も考えずに99回ループを回せば OK.
N = int(input())
for _ in range(99):
    N = sum(int(c) for c in str(N))
print(N)
解けず.
Register as a new user and use Qiita more conveniently
Go to list of users who liked