随笔分类 -  二分

摘要:题解报告 基本的一些理解和问题都在注释中 A:Probably English //水题 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <string> #include 阅读全文
posted @ 2023-03-31 21:11 WUTONGHUA02 阅读(46) 评论(0) 推荐(0)
摘要:题解报告 基本的一些理解和问题都在注释中 A:Filter //水题 #include <cstdio> #include <algorithm> #include <cstring> #include <iostream> using namespace std; int main(void) { 阅读全文
posted @ 2023-03-21 16:09 WUTONGHUA02 阅读(38) 评论(0) 推荐(0)
摘要:题解报告 基本的一些理解和问题都在注释中 A:Swap Odd and Even //水题 #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> using namespace std; int m 阅读全文
posted @ 2023-03-14 21:29 WUTONGHUA02 阅读(37) 评论(0) 推荐(0)
摘要:Meeting on the Line(贪心算法)(二分,三分) 题目大意:类似(实数版)货仓选址,给你n个位置(不用再这n个位置中选,可以任意选实数),再给你这n个位置出发的准备时间(可以转化成距离来看),求一个位置,到每个位置的最大值最小 AC代码(贪心思想,类似货仓选址) #include < 阅读全文
posted @ 2022-09-27 22:34 WUTONGHUA02 阅读(200) 评论(0) 推荐(0)