开了 n+1n+1n+1 大小的 vector 在且仅在 tescase1 段错误了(提交记录),改成固定大小 105 就 AC 了(提交记录),加个 assert(u <= n); 就 Aborted 了(提交记录)
vector
assert(u <= n);
Aborted
题面里也说了点是从 111 编号到 NNN 的:
In the town there are NNN crossing points numbered from 111 to NNN
后面也没有特殊说明,我觉得点的编号应该得是不超过 NNN 的正整数才对吧。