All are present

How many 10 digit perfect squares have no digit appearing more than once in it?


The answer is 87.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Here is my solution:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
count=0
for x in range(1,10**5):
    s= str(x**2)
    l=0
    if len(s)==10:
        for i in range(0,len(s)):
            for j in range(0,len(s)):
                if s[i]==s[j]:
                    l=l+1
        if l==len(s):
            count=count+1

print(count)

0 pending reports

Ă—

Problem Loading...

Note Loading...

Set Loading...