Java朴素Prim MLE

P3366 【模板】最小生成树

java是这样的, 好多题明明复杂度都对但是就是mle
by TuringCat @ 2024-03-21 23:38:57


用这个去读 亲测能过 ```java static class Read{ StreamTokenizer st = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); public int nextInt() throws Exception{ st.nextToken(); return (int)st.nval; } } ```
by Wancy123 @ 2024-04-02 16:20:39


报一丝 刚看到你也是这样读的 我是用kruskal写的能过
by Wancy123 @ 2024-04-02 16:53:34


|