摘要:
Tangled in CablesYou are the owner of SmallCableCo and have purchased the franchise rights for a small town. Unfortunately, you lack enough funds to start your business properly and are relying on parts you have found in an old warehouse you bought. Among your finds is a single spool of cable and a 阅读全文
摘要:
题目: A到B地,要有B到A地才行得通分析: 初始化 a[i] = i,然後讀入x,y,交換a[x],a[y]。最後判斷是否a[i]==i#include <set>#include <map>#include <cmath>#include <queue>#include <stack>#include <string>#include <vector>#include <cstdio>#include <cstring>#include <iostream>#includ 阅读全文