TheHoodyGang's blog

By TheHoodyGang, history, 4 months ago, In English

Please help in this question 1974F - Cutting Game according to me my method is completely correct 275053218 but I am repeatedly getting Runtime Error, I have debugged this a lot of times but to no avail.

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

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by TheHoodyGang (previous revision, new revision, compare).

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

This is wrong

275053218

1. auto it = rows.upper_bound(r2); // if it is already rows.begin()
it--; 

2. auto it = cols.upper_bound(c2); // if it is already cols.begin()
it--; 
  • »
    »
    4 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks a lot!Now I am getting WA, could you please mention what is the mistake or perhaps give a counter example.