Блог пользователя rover1

Автор rover1, история, 5 лет назад, По-английски

Recently i was doing this (https://codeforces.net/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.net/contest/448/submission/7139620 what i have done is instead of writing l = x+1 i have written l=x Please HELP..

Полный текст и комментарии »

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

Автор rover1, история, 5 лет назад, По-английски

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...

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится