How to better utilize memory for minimum spanning trees problems?

Revision en1, by tranducbo, 2023-08-27 18:20:49

I've been trying to solve 1857G - Counting Graphs for a while and it seems that my solutions will invariably receive MLE. Is there any way to use less memory to solve these kinds of problems. Any help would be appreciated.

My solutions: 220733247

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English tranducbo 2023-08-27 18:20:49 320 Initial revision (published)