摘要: #include #include using namespace std; const int N=510; const int INF=10 && x10 && y1<=m && h[x1][y1]<h[x][y]){ if(!vis[x1][y1])dfs(x1,y1); p[x][y].l=min(p[x][y].l,p[x1][y1]... 阅读全文
posted @ 2017-10-06 20:06 wqtnb_tql_qwq_%%% 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int N=70; int n,a[N],cnt,maxn,maxnn; bool cmp(int x,int y){return x>y;} bool use[N]; inline void dfs(int ans,int sum,int goal,int now){ i... 阅读全文
posted @ 2017-10-06 16:47 wqtnb_tql_qwq_%%% 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; const int N=1000000; int p[N],n,m,nop[N],cnt,sum,ans[N]; int main(){ scanf("%d%d",&n,&m); nop[1]=1; for(int i=2;im){puts("Crossing the line"); co... 阅读全文
posted @ 2017-10-06 13:07 wqtnb_tql_qwq_%%% 阅读(103) 评论(0) 推荐(0) 编辑