Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Xclusive_OR's blog

By Xclusive_OR, history, 2 years ago, In English

Problem Link

in the good function bool good(double x){ double temp=( x*x + sqrt(x) ); if(temp-c>0) return 0; else if(temp-c<=0) return 1; } why are we doing,

if(temp-c>0) return 0; else if(temp-c<=0) return 1;

instead of return temp-c== 0;

Full text and comments »

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

By Xclusive_OR, history, 2 years ago, In English

https://codeforces.com/edu/course/2/lesson/6/2/practice/contest/283932/problem/B

I was trying to solve this problem but I am getting wrong answer on test case 9 which I am unable to correct , please help,

here is my code link :

Full text and comments »

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