|
|
I hope that all tests take into account the multiplicative function condition: F(1) == G(1) == 1 For example: 1 9 My AC solution outputs 0. Apparently, the problem statement is incomplete. It should guarantee that for the given tests a solution always exists. It is told that F is a multiplicative function. So F(1)=1 by definition. any idea mobius inversion? Who has russian tasks? У кого нибудь есть русские условия задач? ато потратил кучу времени на перевод да и вообще ничего не понятно, т.к. переводчики не понимают математич. термины(((( Вверху слева есть ccылка "Русский", переключает язык сайта УСЛОВИЯ задач, а не заголовки. Texts of the statements are quite simple. Try to understand it yourself... I think, this problem is very very very very very very very very very very very very very very very very very very very very very very very very very very very very very easy, but i cannot understand it in english language(((( whot is coprime? Что такое coprime? What should I do if there is no possilble solution in problem C?For example if f(1)=0 no matter what is the value of g(1),f(1)*g(1) can not be equal to 1. I think there can be no such tests. |
|
|