摘要:
T2】接水问题 有一些小细节,比如如果最小值存在多个,比如最后还需要一个完全结束的最大值 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include<stack> #include<cstdio> 阅读全文
摘要:
T2 统计单词数 也是一道经典题 字符串匹配 #include<iostream> #include<cstdio> #include<map> #include<vector> #include<cstring> using namespace std; string a; string jus; 阅读全文
摘要:
T2】寻宝 读懂题目!! 是逆时针,第几个有钥匙的房间,还有能够直接上楼的是作为第一个有钥匙的房间,而不是就从这里直接上楼了 #include <iostream> #include <cstring> #include<cstdio> #include <algorithm> using name 阅读全文