hrishabhpatel09's blog

By hrishabhpatel09, history, 5 hours ago, In English

2036E - Reverse the Rivers

Can anybody tell, what i m doing wrong? Here is my Submission: 290106596

»
5 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

int ei = n-1; while(req-- && si<=ei){ int a,c; char b; cin>>a>>b>>c; I think, because of the condition in the while loop, si <= ei, your loop is prematurely being terminated without even taking the full input. Hence, remove this condition.