rover1's blog

By rover1, history, 4 years ago, In English

Recently i was doing this (https://codeforces.com/contest/448/problem/D) question and got stuck when my solution goes in infinite loop then i see the correct solution and notice the difference and dry run my code, then i realize my code is incorrect. Now i want to know why this happen.. link to correct solution -- https://codeforces.com/contest/448/submission/7139620 what i have done is instead of writing l = x+1 i have written l=x Please HELP..

Full text and comments »

  • Vote: I like it
  • -14
  • Vote: I do not like it

By rover1, history, 4 years ago, In English

Hi everyone, can someone explain the solution for this problem Link https://www.codechef.com/COX2019/problems/CHESHCYC It seems that this problem needs inclusion exclusion principle and binary search but i can't figure it out... If anyone is interested to see the accepted solution link https://www.codechef.com/viewsolution/27600843 Please help...

Full text and comments »

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