第一个带类的C++程序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,t=""; cin>>s; …… 题解列表 2023年05月12日 0 点赞 0 评论 364 浏览 评分:0.0
#C++1724——后缀子串排序 摘要:解题思路:string类的substr函数求出子串,放入set容器自动排序,定义迭代器遍历即可;注意事项:cout输出会超时,用c_str函数转化为C风格的字符串(迭代器类似于指针,需要“->”去访问…… 题解列表 2023年05月12日 0 点赞 0 评论 523 浏览 评分:9.9
白细胞计数(java) 摘要:解题思路:第一个for循环用来给a数组赋值并且求出最大值,最小值,总和。第一个for循环结束后紧接着求出平均值。第二个for循环将数值给b数组(除了最大值和最小值)。 第三个for循环求出有效样本(即…… 题解列表 2023年05月12日 0 点赞 0 评论 543 浏览 评分:8.0
c++去除空格 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string put(string s){ int n=s.size(); …… 题解列表 2023年05月12日 1 点赞 0 评论 311 浏览 评分:0.0
三位数分解 摘要:```c++ #include #include using namespace std; void Print(int n) { if(n>9) { …… 题解列表 2023年05月12日 0 点赞 0 评论 301 浏览 评分:0.0
蓝桥杯A组C题 摘要:解题思路: 暴力枚举加剪枝只能通过百分之40的样例,剩下的只能通过数论求解或找规律的方式通过。枚举:Math函数sqrt方法开平方求解 x = y²+z², 当 y²-x的开方为整数时count++…… 题解列表 2023年05月12日 0 点赞 0 评论 1401 浏览 评分:9.9
应该考虑到判断的先后顺序也会影响到结果 摘要:解题思路:注意事项:参考代码:l2=input()l1=list(l2.split('-'))n=0s=0##print(l1[0]+l1[1]+l1[2])for i in l1[0…… 题解列表 2023年05月12日 0 点赞 0 评论 378 浏览 评分:0.0
#C++1190—— 剔除相关数(map) 摘要:解题思路:对输入字符数字num进行排序,判断是否为相关数,记得保留原来的字符数字顺序,此处用tp保存,然后输出;注意事项:此题为多组输入,记得清空统计变量,恢复初始状态,对 string 类保存的数字…… 题解列表 2023年05月12日 0 点赞 0 评论 379 浏览 评分:0.0
最小三个数(排序+输出) 摘要:# 冒泡排序 ```c++ #include using namespace std; void Sort(int*nums,int n) { for(int i = 0;i>n…… 题解列表 2023年05月12日 0 点赞 1 评论 482 浏览 评分:9.9
1848: 求输入数据绝对值 摘要:```c++ #include #include #include using namespace std; int main() { double st; whil…… 题解列表 2023年05月12日 0 点赞 0 评论 401 浏览 评分:0.0