Greatest Number 题目描述Saya likes math, because she think math can make her cleverer.One day, Kudo invited a very simple game:Given N integers, then the players choose no more than four integers from them (can be repeated) and add them together. Finally…
实现源码:https://www.cnblogs.com/cobbliu/archive/2012/05/21/2512249.html 1.在一个递增的数组(或vector)中查找元素属于[ s , e ) 的下标 int main() { ; //0 1 2 3 4 5 6 7 8 9 ,,,,,,,,,}; int s,e; I("%d%d",&s,&e); int s_pos=lower_bound(arr,arr+n,s)-arr; int e_pos=upp…