摘要:
1. POJ2236 Wireless Network 题目链接 题意:给出 n 个坏计算机的坐标,两台计算机直接通信最大距离 d,两种操作 "O p"$(1\le p\le n)$表示修复计算机 p. "S p q"$(1\le p,q\le n)$表示 O 操作,判断与被修理过的所有计算机能否通 阅读全文
摘要:
1. POJ2387 Til the Cows Come Home 题目链接 题意:在一个无向图中,求点 n 到点 1 的最短路径。 用邻接表 dijkstra 即可不需要考虑重边。 #include <iostream> #include <cstdio> #include <algorithm> 阅读全文