摘要:
用队列模拟结束时间最轻便 #include<bits/stdc++.h> using namespace std; const int N = 1010; int finish[N]; unordered_map<int,int> ans; queue<int> q[N]; int main(){ 阅读全文
posted @ 2022-05-06 19:45
xhy666
阅读(36)
评论(0)
推荐(0)
摘要:
``` ``` 阅读全文
posted @ 2022-05-06 01:13
xhy666
阅读(116)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; typedef pair<int,int> pii; const int N = 2e5+10; int fa[N]; bool isleaf[N]; int get_dis(int x){ int res=0 阅读全文
posted @ 2022-05-06 01:12
xhy666
阅读(99)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); int test; cin>>test; while(test--){ int n,a,cnt=0; bool flag=tru 阅读全文
posted @ 2022-05-06 01:11
xhy666
阅读(19)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); int test; cin>>test; while(test--){ int ans; string s; cin>>s; i 阅读全文
posted @ 2022-05-06 01:11
xhy666
阅读(16)
评论(0)
推荐(0)

浙公网安备 33010602011771号