链接: https://www.lydsy.com/JudgeOnline/problem.php?id=2141 思路: 其实就是求动态逆序对...cdq降维,用树状数组前后求两遍逆序对就好了 切水题真爽QAQ 实现代码: #include<bits/stdc++.h> using namespace std; #define ll long long ; ],a[M],b[M],ans[M]; int n,m; struct node{ int x,y,t; int kind,id; no…
题目: http://acm.hdu.edu.cn/showproblem.php?pid=4312 Meeting point-2 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1231 Accepted Submission(s): 691 Problem Description It has been ten years s…