5-1Where is the Marble
思路:二分查找,用STL中的lower_bound则代码更加简洁
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
#define _for(i,lo,hi) for(int i=(lo);i<(hi);i++)
int getint(){int...
原创
2018-09-06 21:29:31 ·
106 阅读 ·
0 评论