摘要:
原题链接 题解 abcdefg等价于求 a000000+b00000+c0000+d000+e00+f0+g code #include<bits/stdc++.h> #define ll long long using namespace std; ll ten[14]={0}; ll f[14] 阅读全文
posted @ 2024-03-21 22:50
纯粹的
阅读(13)
评论(0)
推荐(0)
摘要:
原题链接 题解 选的点一定是凸包上的点? code #include<bits/stdc++.h> using namespace std; struct poi { double x,y; }node[50005]; int q[100005]; double cal(int a,int b,in 阅读全文
posted @ 2024-03-21 18:13
纯粹的
阅读(16)
评论(0)
推荐(0)
摘要:
原题链接 题解 code #include<bits/stdc++.h> #define ll long long using namespace std; const ll mod=1e9+7; ll tag[25]={0}; ll a[25]={0}; ll f(ll now) { ll sum 阅读全文
posted @ 2024-03-21 15:31
纯粹的
阅读(21)
评论(0)
推荐(0)
摘要:
原题链接 题解 拓扑排序,层级标记,如果层级等于n,代表层次分明 code #include<bits/stdc++.h> using namespace std; vector<int> G[500005]; int in[500005]={0}; struct node { int id,lay 阅读全文
posted @ 2024-03-21 13:54
纯粹的
阅读(24)
评论(0)
推荐(0)
摘要:
原题链接 题解 1.\(A<B\) \(\to\) 建立一条A向B的边 2.由于数据范围小,所以可以输入一次进行一次拓扑遍历 3.如果存在矛盾,说明存在环 4.对于拓扑排序进行层次标记,如果最大层等于n,代表每个字母层次分明,有先后次序 code #include<bits/stdc++.h> us 阅读全文
posted @ 2024-03-21 13:43
纯粹的
阅读(52)
评论(0)
推荐(0)

浙公网安备 33010602011771号