update 202
This commit is contained in:
parent
ef8b50bb87
commit
1cc98ce795
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user