Reminder: in case of any technical issues, you can use the lightweight website m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

anajin's blog

By anajin, history, 4 years ago, In English,

In the latest contest, i got trouble in problem H.
When i want to compare x is lager than y, i use x>y+eps (i learn this from a book), but i get WRONG ANWSER , but when i just use x>y ,then i accept .
I just wonder which one is true. Thx first.

Read more »

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

By anajin, 5 years ago, In English,

I search it in google , but i can't find it. Can somebody tell me how to use lower_bound in set<pair<int,int>> , so i can find the fist pair whose first element is not small than the element i search for ?

Read more »

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