题解列表

筛选

分考场—深度优先搜索

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f        //定义一个最……

1268: 第K极值

摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre……

用vector容器

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<string>using namespace std;int main(){ vec……

时间显示--简短易理解

摘要:解题思路:既然不要求显示毫秒,那么最后毫秒的数值不影响我们要显示的时分秒,直接将其舍去即可;将所给的毫秒值转化为秒数值ps,然后对其分析:首先考虑要显示的秒数()因为秒数的取值范围是0-59,所以对 ……

单词分析--实现代码

摘要:参考代码:#include <bits/stdc++.h> using namespace std; string s; int nu[27]; int main() {   cin>>s……

第一次写题解,我觉得应该还是比较清晰

摘要:解题思路:解题思路简单,一个循环就搞定了;注意事项:主要要注意那个最后一段路程不用加(其实就是这个题目出的不严谨)参考代码:#include<iostream>#include<iomanip>usi……