given an integer $$$n$$$, find the number of $$$(i,j,k)$$$ so that:
$$$1<i<j<k<=n$$$.
$$$i*j*k$$$ is a perfect square.
$$$3<n<=10^5$$$
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
given an integer $$$n$$$, find the number of $$$(i,j,k)$$$ so that:
$$$1<i<j<k<=n$$$.
$$$i*j*k$$$ is a perfect square.
$$$3<n<=10^5$$$
Name |
---|
Im dumb so pls don't take this seriously though. I can now think of a O(N*sqrt(N)) solution, would it be exceeded time limit cause u did not mention the time.
the time limit 1.5s
well, 1e5*1e3=1e8 (could be less) might still get the job done.
what's your approach (help me pls)
It would probably be okay even with just 1 second TL, $$$n$$$ is only $$$10^5$$$, not even $$$2 \cdot 10^5$$$ or something.
can you give me the idea of your solution