洛谷 菜鸟重新开始...
2了个q
q731040353
展开
-
洛谷 1571 眼红的Medusa
#include<bits/stdc++.h> using namespace std; map<int,bool> v; int a[111111],b[111111]; int n,m; bool work(int k) { int l,r,mid; l=1;r=m; while(l<=r) { mid=(l+r)...原创 2019-03-16 18:41:53 · 406 阅读 · 0 评论 -
洛谷 P1583 魔法照片
#include<bits/stdc++.h> using namespace std; const int N=111111; int e[N]; struct node { int w,id; }q[N]; bool cmp(node a,node b) { if(a.w==b.w) return a.id<b.id; else return a.w...原创 2019-03-16 19:03:06 · 169 阅读 · 0 评论