Why using custom comparator gives MLE?

Revision en1, by im_115, 2022-01-12 11:12:19

Problem link — 20C - Dijkstra?
Solution with custom comparator (give MLE) — 142440675
Solution without comparator (Accepted) — 142444892
The logic of both the solutions are same (Dijkstra). Only the implementation is different. Why does using a custom comparator give MLE?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English im_115 2022-01-12 11:12:19 370 Initial revision (published)