每周一题之2 Mineweep(扫雷) 测试地址:https://vjudge.net/problem/UVA-10189 [问题描述] Have you ever played Minesweeper? It’s a cute little game which comes within a certain Operating System which name we can’t really remember. Well, the goal of the game is to find wh
H Moving Points
题目链接:https://vjudge.net/contest/358745#problem/H
思路:树状数组维护,类似于树状数组求逆序对+思维(思维量很小)
#include
using namespace std;
const int N = 2e5+9;
typedef long long ll;
struct node{
ll a,b;
friend bool operator <(node a,node b){
r