【题解】[USACO17JAN]Balanced Photo G
摘要:题目链接:https://www.luogu.com.cn/problem/P3608 方法一 用树状数组求逆序对先后扫两遍,一次从前往后,一次从后往前,算出每头奶牛左右两边比她高的数量。 最后统计一下。 #include <bits/stdc++.h> using namespace std; i
阅读全文
posted @ 2020-06-25 11:06
浙公网安备 33010602011771号