摘要: ```#include#includeusing namespace std;typedef long long ll;int read(){ int temp=0,ch,flag=0; if((ch=getchar())=='-') //判断正负 flag=1; else if(ch>='0'&&ch='0'&&ch>str+1>>m; n=strlen(str+1);... 阅读全文
posted @ 2020-04-09 10:23 晴屿 阅读(247) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#include#include#include#includeusing namespace std;typedef long long ll;int read(){ int res=0,ch,flag=0; if((ch=getchar())=='-') //判断正负 flag=1; else if(ch>='0'&&ch='0'... 阅读全文
posted @ 2020-04-09 10:19 晴屿 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#define int long longusing namespace std;const int N=4010,mod=1e9+7;int a[N];int e[N*N],ne[N*N],idx,h[N];int st[N];int ans;int ans1[N];int read(){ int res=0,ch,flag=0; if((ch=getcha... 阅读全文
posted @ 2020-04-09 10:14 晴屿 阅读(142) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#include#include#include#includeusing namespace std;#define LL long longconst int N=1010;int val[N][N];int res[N][N];char c[N][N];int n,m;bool check(int mid){ memset(res,0,sizeof re... 阅读全文
posted @ 2020-04-09 10:12 晴屿 阅读(152) 评论(0) 推荐(0) 编辑