为了能到远方,脚下的每一步都不能|

园龄:粉丝:关注:

07 2024 档案

每日一题-CF1994F
摘要:花30分钟发现lg翻译出错了 又花30分钟学习欧拉回路怎么求 再花30分钟等待codeforces的queue #include<bits/stdc++.h> using namespace std; int t,n,m; vector<int> res; struct edge{ int v,w,
8
0
0
每日一题- CF1991G
摘要:考场真是困傻了,这都不会 横的放左边k列,竖的放上边k行,优先放能消的位置 #include<bits/stdc++.h> using namespace std; int t,n,m,k,q,a[105][105]; char s[1005]; int x[105],y[105]; int mai
8
0
0
CF1991
摘要:A. Maximize the Last Element 很明显只有奇数项可以留到最后,所以取奇数项的max即可 #include<bits/stdc++.h> using namespace std; int t,n,a[105]; int main(){ scanf("%d",&t); whil
14
0
0
每日一题- P4054
摘要:怎么是树状数组板子,这也蓝 #include<bits/stdc++.h> using namespace std; int n,m,q,a[305][305]; int c[305][305][105]; void add(int x,int y,int k,int col){ for(int i
13
0
0
每日一题- P2827
摘要:可爱的单调性啊,不会 #include<bits/stdc++.h> using namespace std; #define int long long int n,m,q,u,v,t,a[100005]; queue<int> que[3]; signed main(){ scanf("%lld
4
0
0
每日一题- CF1995D
摘要:唐氏小状压 #include<bits/stdc++.h> using namespace std; #define lowbit(x) (x&-(x)) int t,n,c,k,cnt[(1<<18)+5][35]; bool f[(1<<18)+5]; char s[(1<<18)+5]; in
14
0
0
每日一题-CF1996G Penacony
摘要:异常明显的思路,考场上却不会,连确定一条边不选都没想到 #include<bits/stdc++.h> using namespace std; #define pii pair<int,int> #define fi first #define se second #define mp make_
54
0
0
每日一题-P1344
摘要:本来求边数又建了个图跑流,然后看题解发现直接流量置为A*w+1(A为足够大的数) 感觉很强 #include<bits/stdc++.h> using namespace std; #define ll long long const int A=1e5; const ll inf=1e18; in
6
0
0
每日一题-P1263
摘要:一眼匈牙利,没有紫啊 #include<bits/stdc++.h> using namespace std; #define pb push_back int n,m,res,a[205][205],p[40005]; int id1[205][205],fr1[40005],cnt1,id2[2
7
0
0
每日一题-P1261
摘要:其实想到方法了,但是以为复杂度炸了,好蠢 #include<bits/stdc++.h> using namespace std; #define pb push_back int n,m,rk[30005],f[30005],g[30005],dis[30005],ans; bool vis[30
7
0
0
每日一题-P1251
摘要:网络流24题~ #include<bits/stdc++.h> using namespace std; #define ll long long const int inf=1e9; const ll lnf=1e18; int N,p,m,f,n,s,r[2005],st,ed; struct
5
0
0
每日一题-P1050
摘要:挺唐的 经典一位一位来 #include<bits/stdc++.h> using namespace std; const int L=100; char _[L+5]; int k; struct node{ int a[L+5],len; node(int _k=0){ len=0;memse
5
0
0
每日一题- CF1992F
摘要:随便补补题 #include<bits/stdc++.h> using namespace std; int t,n,x,a[100005],res; map<int,bool> p; int main(){ scanf("%d",&t); while(t--){ res=1; scanf("%d%
8
0
0
每日一题- CF1983F
摘要:从未每日的每日一题 E>F 但是没时间了 #include<bits/stdc++.h> using namespace std; #define ll long long int t,n,a[100005],p[100005]; int tr[3200005][2],id[3200005],cnt
7
0
0
[每日一题] - CF1982E
摘要:校内作业多,一直忘记写blog 现在开始补上量 赛后几天秒掉了,场上真是困糊涂了,没想到分治 #include<bits/stdc++.h> using namespace std; const int mod=1e9+7; #define ll long long #define node pai
6
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起