摘要:
非严格次小生成树 #include <bits/stdc++.h> using namespace std; #define ll long long const int maxN=1005; int vis[100005]; int n,m; vector<pair<int,int>> e[max 阅读全文
摘要:
使用队列存储每一个船上的每一个人,当一条新的船到达时,把之前超时的人弹出队列,然后输出答案。 #include <bits/stdc++.h> #define ll long long using namespace std; struct node { int timee,country; }q[ 阅读全文