hrushikesht's blog

By hrushikesht, 4 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.

Read more »

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

By hrushikesht, history, 4 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.

Read more »

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