problem on the Shopee Code League 2022

Правка en1, от mickeyandkaka, 2022-03-19 13:32:37

Shopee Code League 2022 Qualification Round has just finished, but I'm stucked on a problem called "Connecting the Numbers".

Problem is simple, given 1~n with each number appear twice on a circle (2n numbers in the circle), we can connect the same number inside the circle or outside the circle. We need to check whether or not we can connect all the n pair of numbers without any cross.

I think it's 2-sat, but wa on test3 and MLE on test 5. Do you have any other solutions?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский mickeyandkaka 2022-03-19 13:33:58 74
en1 Английский mickeyandkaka 2022-03-19 13:32:37 525 Initial revision (published)