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

Автор Philosophi, история, 8 месяцев назад, По-английски

Hi everyone, im currently solving this problem. I dont know why if i test on my computer, the answer is right but when i submit, i get WA. I suspect its because of some memory issues, but i cant find any.

https://codeforces.me/contest/1712/submission/366889551

Heres the test

4 1 2 2 3 1000000000

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

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

Автор Philosophi, история, 8 месяцев назад, По-английски

https://codeforces.me/contest/1726/submission/365331041 Can anyone tell me where did i do wrong in this solution ? thanks

Update: My answer in the first test can be drawn in a pic like this

If we remove blue we get 2 connected components, if we remove red we get 1 connected component. So in total we get 3, which is the same with the answer. Was my understanding wrong somewhere?

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

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

Автор Philosophi, история, 18 месяцев назад, По-английски

Hi everyone, I am recently solving this problem and my code is here. Can anyone tell me why i can not pass the 9th test ? thank you so much !!!

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

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