当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
a) c towni townj, where towni and townj are integers from 1 to no_of_towns. The command means that towni and townj get connected.
b) d towni, where towni is an integer from 1 to no_of_towns. The command means that towni gets disconnected.
c) q towni townj, where towni and townj are integers from 1 to no_of_towns. The command stands for the question: is towni connected with townj?
d) e, that ends the list of commands
4 c 1 2 c 3 4 q 1 3 c 2 3 q 1 4 d 2 q 4 1 q 2 4 e
2 , 2
时间上限 | 内存上限 |
1000 | 65536 |