1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int Gy(int n,int m);int Gb(int n,int m);int ma…… 题解列表 2024年01月20日 0 点赞 0 评论 320 浏览 评分:0.0
使用string实现数字分离 摘要:解题思路:使用string拿到用户输入的字符串利用size函数求出字符串大小利用for循环逐个输出用户的字符注意事项:输出每个字符后需要加上空格参考代码:#include<iostream>using…… 题解列表 2024年01月20日 0 点赞 0 评论 527 浏览 评分:0.0
短信计费C++语言 摘要:## 短信计费我的方法是字数/70获得计费次数,然后浮点数向上取整 ```cpp #include #include using namespace std; int main() …… 题解列表 2024年01月20日 0 点赞 0 评论 389 浏览 评分:9.0
2813: 药房管理 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,n,s=0,sum=0; …… 题解列表 2024年01月20日 0 点赞 0 评论 205 浏览 评分:0.0
1537: 蓝桥杯算法提高VIP-栅格打印问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; if(n==…… 题解列表 2024年01月20日 0 点赞 0 评论 287 浏览 评分:9.9
此题运用了stl中的vector容器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ vector<int>v1; int num; cin>>n…… 题解列表 2024年01月20日 0 点赞 0 评论 294 浏览 评分:9.9
题解 2830: 数字统计 标题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int q,r,sum=0; cin>>q>>r…… 题解列表 2024年01月20日 0 点赞 0 评论 253 浏览 评分:0.0
题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数,小白易懂 摘要:解题思路:注意事项:i不能从0开始参考代码:#include<iostream>using namespace std;int main(){ int a,b,ret,t; cin>>a>…… 题解列表 2024年01月19日 0 点赞 0 评论 335 浏览 评分:0.0
C++输出所有水仙花数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i…… 题解列表 2024年01月19日 0 点赞 0 评论 308 浏览 评分:0.0
1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 285 浏览 评分:6.0