如果会用这两个函数,上次打比赛,我就不会是铜奖,而是银奖了。。。哎。。。平时积累不够
upper_bound()与lower_bound()使用方法
(2009-10-05 11:31:10) #include <iostream>
#include <algorithm>//必须包含的头文件
using namespace std;
int main(){
}
output:
4
2
#include <iostream>
#include <algorithm>//必须包含的头文件
using namespace std;
int main(){
}
output:
4
2