Can't figure out why it fails!!

Правка en1, от Homelander2003, 2024-09-17 10:16:09

Recently I've been trying this problem. I happen to come across a solution where we use DSU to optimize brute force but my implementation gives WA and I can't seem to figure out if I'm missing any proof of correctness or my implementation is incorrect. Any suggestions are appreciated.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Homelander2003 2024-09-17 10:16:09 414 Initial revision (published)