hrushikesht's blog

By hrushikesht, 8 years ago, In English

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.

Full text and comments »

  • Vote: I like it
  • +10
  • Vote: I do not like it

By hrushikesht, history, 8 years ago, In English

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.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it