版本比较
10.8考试总结
正文
增加 3 行删除 3 行
11 行未改动1213141516161718192064 行未改动8586878889899091929394959596979899220 行未改动全部展开11 行未改动#include <bits/stdc++.h>using namespace std;
const int N = 1e5+5;int n,p[N],q[N],a[N],diff[N],ans = 0; int n,p[N],q[N],a[N],diff[N],ans = 0;
int main(){ ios::sync_with_stdio(0);64 行未改动#include <bits/stdc++.h>using namespace std;
const int N = 1e6+5;#define ull unsigned long long #define ull unsigned long longstruct node{ ull x; int id; bool operator<(const node &b)const {return x>b.x;}}; };int n,ans = 0;priority_queue<node>pq;
int main()220 行未改动全部展开