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