Always falling from this ladder!

Revision en1, by shubhiks1032, 2017-01-06 03:50:38

Problem Name: Ladder Problem Link: http://codeforces.net/problemset/problem/279/C My solution: http://codeforces.net/contest/279/submission/23569730

I came up with a different solution that the editorial and other people solutions however its failing on one of the test cases and I am not able to find any mistake.

Basically I have inserted the checkpoints at which the ladder is starting and ending and within a query I use upper_bound to get the rightmost point if the given interval can be a ladder and compare it with the given "right" value and output the corresponding answer. Any help would be highly appreciated. :)

Tags #set, stl, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English shubhiks1032 2017-01-06 03:50:38 664 Initial revision (published)