上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 63 下一页
摘要: ``` #include #include #include #include using namespace std; typedef long long ll; #define int long long const int N = 200000+10; int a[N]; bool st[N]; int dp[N]; void solve() { int n; cin>>n; for(int 阅读全文
posted @ 2020-05-13 14:07 晴屿 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; const int N = 200000+10, M = 200000+10; int n, m; int h[N], e[M], ne[M], idx; int dfn[N], low[N], timestamp; // 栈顶 int stk[N], top; bool in 阅读全文
posted @ 2020-05-12 18:53 晴屿 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep_1(i,m,n) for(int i=m;i='0'&&ch='0'&&ch pii; ty 阅读全文
posted @ 2020-05-12 18:26 晴屿 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep_1(i,m,n) for(int i=m;i='0'&&ch='0'&&ch pii; ty 阅读全文
posted @ 2020-05-12 18:13 晴屿 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ```//稠密图#include #include #include using namespace std;const int N = 100010, M = 200010, INF = 0x3f3f3f3f;int n, m;int p[N];struct Edge { int a, b, w; bool operator< (const Edge &W)const { ... 阅读全文
posted @ 2020-05-12 13:37 晴屿 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 太难了,参考题解:https://www.luogu.com.cn/blog/An Fly/soluti p5774 阅读全文
posted @ 2020-05-12 12:13 晴屿 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define rep_1(i,m,n) for(int i=m;i '9') && c != '-'); if (c == '-') bo = ... 阅读全文
posted @ 2020-05-12 10:53 晴屿 阅读(177) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #define ll long long #define MD 1000000007 using namespace std; int s1[1005],s2[1005]; int st[1005]; ll f[1005][15][15][2][2][2]; //pos 最大有1000位所以开到1000+ string 阅读全文
posted @ 2020-05-11 21:37 晴屿 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #define MAXN 2147483647 #define ll long long using namespace std; const int mod=1e7+7; int len; ll n; int a[55]; ll dp[55][55]; ll dfs(int p,int st,int limit) { 阅读全文
posted @ 2020-05-11 20:31 晴屿 阅读(98) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#include#include#define rint register intusing namespace std;typedef long long ll;int mod,a[20];ll l,r,dp[19][163][163];inline ll dfs(int pos,int sum,int now,int limit){ //剩下的都是最大的也... 阅读全文
posted @ 2020-05-11 20:04 晴屿 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 63 下一页