鸡你太美问题(简单到会《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 评论 767 浏览 评分: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 评论 302 浏览 评分:0.0
用基本自定义函数的知识解决 编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:遍历字符串数组,判断每一个字符是不是原因字母,如果是元音字母就赋值到一个新的字符数组当中。遍历完成之后,将新的字符串数组输出即可。注意事项:参考代码:#include<stdio.h>voi…… 题解列表 2023年07月12日 0 点赞 0 评论 347 浏览 评分:9.9
判断数的正负 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); if(n>0) printf("posi…… 题解列表 2023年07月12日 0 点赞 0 评论 340 浏览 评分:0.0
编写题解 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 评论 298 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串(C++) 摘要:参考代码:#include <iostream>#include <string>using namespace std;string getAN(int n) { if (n == 1) { …… 题解列表 2023年07月12日 0 点赞 0 评论 352 浏览 评分:9.9
优质题解 2819: 数字反转(详细题解) 摘要:题目解析: 给定的代码是一个简单的整数反转程序,它使用了循环和取模运算符来实现数字的反转。解题思路:1. 首先定义一个变量 ans 并将其初始化为 0,用于存储反转后的数字。2. 通过循环遍历给定的…… 题解列表 2023年07月13日 2 点赞 0 评论 1078 浏览 评分:8.7
优质题解 2818: 分离整数的各个数位(详细题解) 摘要:题目描述: 给定一个整数,要求从个位开始分离出它的每一位数字,并按照从低位到高位的顺序依次输出每一位数字。解题思路:1. 首先读取输入的整数 n。2. 使用循环,当 n 不为 0 时执行以下步骤。3…… 题解列表 2023年07月13日 4 点赞 2 评论 1912 浏览 评分:7.9
报数问题代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int findLastPerson(int n) { int circle[n]; int count = 0; …… 题解列表 2023年07月13日 0 点赞 0 评论 371 浏览 评分:0.0
比较数的大小 摘要:解题思路:注意事项:数据的范围参考代码:#include <stdio.h>int main(){ unsigned a; int b; scanf("%u %d",&a,&b); …… 题解列表 2023年07月13日 0 点赞 0 评论 323 浏览 评分:0.0