2020年9月7日
摘要: T2】接水问题 有一些小细节,比如如果最小值存在多个,比如最后还需要一个完全结束的最大值 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include<stack> #include<cstdio> 阅读全文
posted @ 2020-09-07 15:20 shirlybabyyy 阅读(186) 评论(0) 推荐(0) 编辑
摘要: T2 统计单词数 也是一道经典题 字符串匹配 #include<iostream> #include<cstdio> #include<map> #include<vector> #include<cstring> using namespace std; string a; string jus; 阅读全文
posted @ 2020-09-07 15:03 shirlybabyyy 阅读(152) 评论(0) 推荐(0) 编辑
摘要: T2】寻宝 读懂题目!! 是逆时针,第几个有钥匙的房间,还有能够直接上楼的是作为第一个有钥匙的房间,而不是就从这里直接上楼了 #include <iostream> #include <cstring> #include<cstdio> #include <algorithm> using name 阅读全文
posted @ 2020-09-07 14:30 shirlybabyyy 阅读(172) 评论(0) 推荐(0) 编辑