update 202

This commit is contained in:
sangge-rockpi 2024-01-22 16:06:17 +08:00
parent ef8b50bb87
commit 1cc98ce795

View File

@ -8,7 +8,7 @@ class Solution:
str_n = str(n)
total = 0
for number in str_n:
total += str(number) * str(number)
total += int(number) * int(number)
if total == 1:
return True