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

Автор anshshah91, история, 3 года назад, По-английски

My submission link:https://mirror.codeforces.com/contest/1617/submission/139558699

What i did was pushed all numbers greater than n in a vector and all number lesser than or equal to n with frequency greater than 1 in the same vector. After that i pushed all numbers of input vector in a set and checked for numbers from 1 to n which were not there in permutation and pushed it in another vector b and then i converted vector a to ma modulo for number at each index also sorted vector a and checked if a[i]<b[i] for some index if found that index answer would be -1 as vector b is already sorted so i cannot further make it more lesser otherwise i printed vector b size.

But it is showing WA on test case 9 pretest 304. Please Help if you find out a flaw also a counter test case would be welcomed too. thank you in advance.

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

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

Автор anshshah91, история, 3 года назад, По-английски

I'm confused on where I am going wrong I'm trying to turn green from quite a few time but I'm stuck on grey from quite long I started practicing higher rated problems also but still it doesn't look like it is doing me any benefit can anybody advice where I am going wrong what should I do ahead?

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

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

Автор anshshah91, история, 4 года назад, По-английски

 is a2oj Shut down Permanently Because it was working yesterday and all of a sudden it shows this screen?

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

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