Cow Sorting Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4766 Accepted Submission(s): 1727 Problem Description Sherlock's N (1 ≤ N ≤ 100,000) cows are lined up to be milked in the evening.
class Solution { public: /* * @param A: An integer array * @param queries: The query list * @return: The number of element in the array that are smaller that the given integer */ vector<int> countOfSmallerNumber(vector<int> A, vector<int>
#include<bits/stdc++.h>using namespace std;const long long mod = 998244353;typedef const long long ll;vector<long long>p;long long inv(long long x,long long y)//快速幂求逆元模板(以乘代除){ long long r=1; while(y>0) { if(y&1)