Блог пользователя hrushikesht

Автор hrushikesht, 7 лет назад, По-английски

I submitted a solution to Captain Marmot 474C. I am getting "Runtime Error" which says "Exit code is 3". I am getting the error for test case 1 for which the program is printing the answer correctly, as this is the sample test case. I am also returning 0 at the end of the code.

Here's the submission link. 27468903

Code

I am unable to find the problem in my code. Any kind of help in this issue is appreciated. Thanks in advance.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

Автор hrushikesht, история, 7 лет назад, По-английски

Hi,

I just read the editorial of Magic Formulas. I couldn't understand a particular formula in editorial.

In editorial it is written that,

.

But in question, the formula is given as,

.

I am not able to understand how these formulas are equivalent. Please help me understanding what I am missing here.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится