摘要:
链接: "https://leetcode cn.com/contest/weekly contest 154/problems/critical connections in a network/" 力扣数据中心有 n 台服务器,分别按从 0 到 n 1 的方式进行了编号。 它们之间以「服务器到服 阅读全文
摘要:
头文件 fstream ofstream 关联一个文件,把它设为输出设备,我们可以向里面写入数据 ifstream 关联一个文件,把它视为输入设备,我们可以从里面读出数据 编码是ANSI include include using namespace std; int main() { ofstre 阅读全文
摘要:
链接: "https://leetcode cn.com/contest/weekly contest 153/" 环形公交路线上有 n 个站,按次序从 0 到 n 1 进行编号。我们已知每一对相邻公交站之间的距离,distance[i] 表示编号为 i 的车站和编号为 (i + 1) % n 的车 阅读全文
摘要:
并集 set_union() 交集set_intersection() 补 set_difference() include include include include using namespace std; int main() { set a,b; vector c; int n,m; c 阅读全文