摘要:
upper_bound( begin,end,num):从数组的begin位置到end-1位置二分查找第一个大于num的数字,找到返回该数字的地址,不存在则返回end。通过返回的地址减去起始地址begin,得到找到数字在数组中的下标。 阅读全文
posted @ 2018-08-16 08:59
llllrj
阅读(4313)
评论(0)
推荐(0)
摘要:
There is a class consisting of n students, in which each one has a number representing his/her personality. The teacher gives the students a new assig 阅读全文
posted @ 2018-08-16 00:44
llllrj
阅读(323)
评论(0)
推荐(0)