随笔分类 - CodeForces
摘要:题之后补吧 ###A.One and Two #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) << '\n' #
阅读全文
摘要:一套题学到不少东西 ###A.Two Elevators 模拟 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) <<
阅读全文
摘要:###A.Yes-Yes? 构造一个的字符串,判断是不是子串即可。 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " <<
阅读全文
摘要:挺有质量一套题 ###A.Number Replacement 对于数字串中出现次数的数字,判断是否对应同一个字母,出现次数为的数字没有贡献。 #include <bits/stdc++.h> using namespace std; #define endl '\n' #def
阅读全文
摘要:###A.Parallel Projection #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) << '\n' #d
阅读全文
摘要:###A 模拟题,不多说。 时间复杂度 #include<iostream> #include<cstdio> #include<cstring> #include<map> const char ch[] = {'L', 'M', 'S'}; std::string s[2]; std
阅读全文