优质题解 2819: 数字反转(详细题解) 摘要:题目解析: 给定的代码是一个简单的整数反转程序,它使用了循环和取模运算符来实现数字的反转。解题思路:1. 首先定义一个变量 ans 并将其初始化为 0,用于存储反转后的数字。2. 通过循环遍历给定的…… 题解列表 2023年07月13日 2 点赞 0 评论 1048 浏览 评分:8.7
蓝桥杯基础练习VIP-FJ的字符串(C++) 摘要:参考代码:#include <iostream>#include <string>using namespace std;string getAN(int n) { if (n == 1) { …… 题解列表 2023年07月12日 0 点赞 0 评论 330 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun (int n){ int i; int cnt[10]; for(i=0;i<4;i++){ cnt[3-i]=n…… 题解列表 2023年07月12日 0 点赞 0 评论 280 浏览 评分:0.0
判断数的正负 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); if(n>0) printf("posi…… 题解列表 2023年07月12日 0 点赞 0 评论 319 浏览 评分:0.0
用基本自定义函数的知识解决 编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:遍历字符串数组,判断每一个字符是不是原因字母,如果是元音字母就赋值到一个新的字符数组当中。遍历完成之后,将新的字符串数组输出即可。注意事项:参考代码:#include<stdio.h>voi…… 题解列表 2023年07月12日 0 点赞 0 评论 321 浏览 评分:9.9
三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3,d1,d2,d3,s;…… 题解列表 2023年07月12日 0 点赞 0 评论 283 浏览 评分:0.0
鸡你太美问题(简单到会《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 评论 741 浏览 评分:9.9
题解 2818: 分离整数的各个数位(while循环的引入) 摘要:解题思路:还记得如何分离整数的各个数位吗?//以三位数为例 cout<<n%10<<endl; cout<<n/10%10<<endl; cout<<n/10/10%10<<endl;但本题中,…… 题解列表 2023年07月12日 1 点赞 0 评论 1310 浏览 评分:6.3
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <ctype.h> int main() { int p1, p2, p…… 题解列表 2023年07月12日 0 点赞 0 评论 421 浏览 评分:0.0
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 评论 573 浏览 评分:6.0