update 202
This commit is contained in:
parent
a35d60437a
commit
ef8b50bb87
@ -8,7 +8,7 @@ class Solution:
|
|||||||
str_n = str(n)
|
str_n = str(n)
|
||||||
total = 0
|
total = 0
|
||||||
for number in str_n:
|
for number in str_n:
|
||||||
total += number * number
|
total += str(number) * str(number)
|
||||||
|
|
||||||
if total == 1:
|
if total == 1:
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user