Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3773 |
3 | Radewoosh | 3646 |
4 | ecnerwala | 3624 |
5 | jqdai0815 | 3620 |
5 | Benq | 3620 |
7 | orzdevinwang | 3612 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | Um_nik | 163 |
2 | cry | 161 |
3 | maomao90 | 160 |
4 | -is-this-fft- | 159 |
5 | awoo | 158 |
6 | atcoder_official | 157 |
7 | adamant | 155 |
8 | nor | 154 |
9 | maroonrk | 152 |
10 | Dominater069 | 148 |
Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
Название |
---|
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.