Pinball Game 3D Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 688 Accepted Submission(s): 276 Problem Description RD is a smart boy and excel in pinball game. However, playing common 2D p…
链接: 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…