Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
# | 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 |
Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
Name |
---|
Do you know how polynomial interpolation works? If there's a polynomial $$$P$$$ with degree $$$k$$$ and you have value of $$$f(x)$$$ for $$$k + 1$$$ different $$$x$$$, then the polynomial is uniquely determined. If you only need one example of such $$$m$$$, then maybe it's enough to just try different values of $$$m$$$. If you need all such $$$m$$$ it might be trickier, though.
Yes, I do know Polynomial Interpolation and i was trying the same , i made a lot of tries but couldn't get it correct and i thought i wasn't going in the right direction . Thanks for replying , I will try again to figure out tricky part again.
Well what was the problem? Did no value of $$$m$$$ work? Or do you think you had a bug somewhere?
I'd suggest next time you make such a blog, you should say that you already tried polynomial interpolation with different values of $$$m$$$, but it didn't work because [reason]. It makes it so much easier to help you. Besides if you had said that we wouldn't have this conversation.