题解列表

筛选

c++去除空格

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string put(string s){    int n=s.size();  ……

三位数分解

摘要:```c++ #include #include using namespace std; void Print(int n) { if(n>9) {……

#C++1190—— 剔除相关数(map)

摘要:解题思路:对输入字符数字num进行排序,判断是否为相关数,记得保留原来的字符数字顺序,此处用tp保存,然后输出;注意事项:此题为多组输入,记得清空统计变量,恢复初始状态,对 string 类保存的数字……

1275: 吹哨传球

摘要:解题思路: 注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m;……

1305: 老管家的忠诚(ST表)

摘要:解题思路:ST表预处理时间为o(nlogn),查询时间为o(1),适用于区间最值查询,但不支持在线修改注意事项:参考代码:#include<bits/stdc++.h> using namespac……

边长的判断

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b,c;    cin>>a>>b>>c;    i……

判断回文数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    string s,t="";    cin>>s;  ……

日期换算。。

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    cin>>a>>b;    switch……

计算奇数个数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    string s;    int t,cnt=0;  ……