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