上一页 1 ··· 29 30 31 32 33
摘要: #include<bits/stdc++.h>using namespace std;typedef pair<long long,int>clot;priority_queue<clot,vector<clot>,greater<clot> >wash,dry;//升序队列int l,n,m;lo 阅读全文
posted @ 2018-08-09 00:04 sewage 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;typedef long long ll;const ll inf=0x3f3f3f3f;int cnt=1;//边的数量int head[110],cur[110];//head记录每一个点最后一条边的编号,cu 阅读全文
posted @ 2018-08-08 17:03 sewage 阅读(299) 评论(0) 推荐(0) 编辑
摘要: //never use translation#include<bits/stdc++.h>using namespace std;int k;char a[20];//储存每个数的数值int times[20];//mn次数int timess[20];//mx次数int len;int mn;i 阅读全文
posted @ 2018-08-07 10:23 sewage 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int num[20];//按位储存数字int mod;long long dp[20][110][110];//位数,位数和,位数和对mod取模的余数 long long dfs(int pos,int he,i 阅读全文
posted @ 2018-08-06 10:24 sewage 阅读(425) 评论(1) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;const int inf=0x3f3f3f3f;struct node{ int v,z,d,next;//存可以连接的点,用next存邻接表}a[10010];struct road{ int u,cnt,di 阅读全文
posted @ 2018-08-04 20:53 sewage 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,x;char s[10010];char a[31010];int val[100010];int ch[100010][30];int dp[100010];int main(){ while(~sc 阅读全文
posted @ 2018-08-04 08:59 sewage 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <stdio.h> #include <string.h> #include <algorithm> #include <math.h> using namespace std; int can[1005] = {0}; int a[1000 阅读全文
posted @ 2018-08-03 10:10 sewage 阅读(238) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;const int mod =1e9+7;int dp[1<<10];int cnt[1<<10];int ans[1<<10];char c[10];int t;void add(int &x,int y){ x 阅读全文
posted @ 2018-08-03 08:37 sewage 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33