Homelander2003's blog

By Homelander2003, history, 7 weeks ago, In English

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.

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By Homelander2003, history, 13 months ago, In English

Constraints: 1<=n<=200 1<=k<=10

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it