优质题解 2818: 分离整数的各个数位(详细题解) 摘要:题目描述: 给定一个整数,要求从个位开始分离出它的每一位数字,并按照从低位到高位的顺序依次输出每一位数字。解题思路:1. 首先读取输入的整数 n。2. 使用循环,当 n 不为 0 时执行以下步骤。3…… 题解列表 2023年07月13日 1 点赞 2 评论 1526 浏览 评分:7.9
优质题解 2819: 数字反转(详细题解) 摘要:题目解析: 给定的代码是一个简单的整数反转程序,它使用了循环和取模运算符来实现数字的反转。解题思路:1. 首先定义一个变量 ans 并将其初始化为 0,用于存储反转后的数字。2. 通过循环遍历给定的…… 题解列表 2023年07月13日 1 点赞 0 评论 830 浏览 评分:8.7
蓝桥杯基础练习VIP-FJ的字符串(C++) 摘要:参考代码:#include <iostream>#include <string>using namespace std;string getAN(int n) { if (n == 1) { …… 题解列表 2023年07月12日 0 点赞 0 评论 233 浏览 评分:9.9
鸡你太美问题(简单到会《Hello world!》的人就会) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>int main() {printf("cock=0,hen=25,chicken=75\ncock=4,hen=18,c…… 题解列表 2023年07月12日 0 点赞 1 评论 584 浏览 评分:9.9
题解 2818: 分离整数的各个数位(while循环的引入) 摘要:解题思路:还记得如何分离整数的各个数位吗?//以三位数为例 cout<<n%10<<endl; cout<<n/10%10<<endl; cout<<n/10/10%10<<endl;但本题中,…… 题解列表 2023年07月12日 1 点赞 0 评论 965 浏览 评分:6.3
1+1=3型号计算器 摘要:解题思路:参考代码:#include<bits/stdc++.h> int choise_F(char A); int main(){ int x,y; char A; while(sc…… 题解列表 2023年07月12日 0 点赞 0 评论 429 浏览 评分:6.0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,k,ans=0; cin>>m>>…… 题解列表 2023年07月12日 0 点赞 0 评论 249 浏览 评分:0.0
感谢支持,谢谢大家。级数求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,n; double s=0.0,k; c…… 题解列表 2023年07月12日 0 点赞 0 评论 160 浏览 评分:0.0
感谢支持,谢谢大家,含k个3的数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,k,n,b,i,YES=0,NO=0; …… 题解列表 2023年07月12日 0 点赞 0 评论 396 浏览 评分:0.0
光头强收费 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>int main() { double sum; double i, j; scanf("%lf", &i); i…… 题解列表 2023年07月12日 0 点赞 0 评论 204 浏览 评分:9.9