Home > other >  Great god with me!!!!!!!
Great god with me!!!!!!!

Time:11-11

If a n the number of digits of n is equal to the sum of the number itself, is referred to as n wang needed, all wang needed for between 100 ~ 10000000 deposit to a list, and output

CodePudding user response:

The name haha

 

# 100 ~ 10000000 n wang needed several
N_list=[]
For I in range (100100000 0 + 1) :
Sum=0
For j in STR (I) :
The sum +=int len (j) * * (STR) (I)
If I==sum:
N_list. Append (I)
Print (n_list)


  • Related