rt,这份代码可以通过此题,但显然它并没有处理输入顺序反过来的情况(因为是无向图)。
hack:
input: 2 2 A 1 2 Q 2 1 answer: 1 output: Runtime Error