摘要: vector<int> alls; // 存储所有待离散化的值 sort(alls.begin(), alls.end()); // 将所有值排序 alls.erase(unique(alls.begin(), alls.end()), alls.end()); // 去掉重复元素 // 二分求出x 阅读全文
posted @ 2020-08-21 14:36 Gold_stein 阅读(167) 评论(0) 推荐(0) 编辑