版本比较
国庆集训Day1
正文
增加 12 行删除 12 行
4 行未改动567899101112131314151617181920212223232425262717 行未改动4546474849495051525319 行未改动737475767778797778798081828384858687878889909122 行未改动11411511611711811811912012112012112212312412513 行未改动1391401411421431431444 行未改动struct node{ int x,y; friend bool operator < (node p,node q){ if(p.x!=q.x)return p.x<q.x; return p.y<q.y return p.y<q.y } friend bool operator > (node p,node q){ if(p.x!=q.x)return p.x>q.x; return p.y>q.y return p.y>q.y }};```### [[蓝桥杯 2015 国 B] 密文搜索](https://www.luogu.com.cn/problem/P8630)```cpp#include<bits/stdc++.h>using namespace std;string s;map <string,int> m;int t,ans; int t,ans;signed main(){ cin>>s>>t; while(t--){ string a;17 行未改动### [[蓝桥杯 2018 省 B] 日志统计](https://www.luogu.com.cn/problem/P8661)```#include<bits/stdc++.h>#define pb push_back#define int long long//好习惯 #define int long long//好习惯using namespace std;int n,d,k,mx;vector <int> v[100005];signed main(){19 行未改动 } return 0;}/*id =0 数组 1e5 感觉 1e5*1e5 要用龙龙 id =0数组 1e5感觉 1e5*1e5 要用龙龙*/```- 依旧分组### [Cross Explosion](https://www.luogu.com.cn/problem/AT_abc370_d)```cpp#include<bits/stdc++.h>#define lb lower_bound#define ub upper_bound #define ub upper_boundconst int inf=1e9+7;using namespace std;set <int> n[400005];set <int> m[400005];22 行未改动 } while(q--){ int x,y; scanf("%d%d",&x,&y); if(n[x].count(y)){//删过 if(n[x].count(y)){//删过 de(x,y); } else{//没删过 } else{//没删过 //左 auto it=n[x].lb(y); de(x,*it); //右13 行未改动 printf("%d",ans); return 0;}/*
*/