链接 [http://codeforces.com/group/1EzrFFyOc0/contest/706/problem/B] 题意 给你n个数,q次查询,每次输入一个m,问n个数中有多少个数小于等于m 思路 先排序,再用upper_bound找,该函数返回第一个大于m的下标. 代码: #include<bits/stdc++.h> using namespace std; #define ll long long int main(){ ios::sync_with_stdio(fals…