1006: [编程入门]三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); if(a>b) …… 题解列表 2021年07月05日 0 点赞 0 评论 864 浏览 评分:8.0
c语言计算素数和 摘要:解题思路:判断素数,相加所有素数。注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x);int main(){ int m,n; …… 题解列表 2021年07月21日 0 点赞 0 评论 352 浏览 评分:8.0
弟弟的作业---------------------------------------- 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int a, b; char A, B[10]; int k = 0; while (scanf("%d%c…… 题解列表 2021年07月25日 0 点赞 0 评论 316 浏览 评分:8.0
2551: 作文(这题难度是不是标错了) 摘要: #include #include int main() { int n,k,i,sl=0,sn=1;; char word[1005][…… 题解列表 2021年07月28日 0 点赞 0 评论 766 浏览 评分:8.0
自定义函数之整数处理 C++题解 摘要:解题思路输入数组每个元素后,找出最大值和最小值的下标,交换第一位和最小值,最后一位和最大值C++中min_element(a+n,a+m)和max_element(a+n,a+m)可以找出数组中最小值…… 题解列表 2021年08月02日 0 点赞 0 评论 506 浏览 评分:8.0
水仙花数判断 摘要:解题思路: 1.求水仙花数的关键是对个位上的数、十位上的数和百位上的数的寻找 1.1求个位上的数可以直接该数字对10取余。即为个位上的数 题解列表 2021年08月03日 0 点赞 0 评论 400 浏览 评分:8.0
c语言求解大小写问题 摘要:解题思路:求出2,22,222...就好办了。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,a,n; long long t…… 题解列表 2021年08月07日 0 点赞 0 评论 284 浏览 评分:8.0
菜鸟解题,简单递归问题(一眼看不出递归的菜鸟) 摘要:解题思路: 如果仅看题目所给的3个输入值无法看出其递归特性,解题时可以先将之后几年的母牛数量写出 从1到9年分别是 1 2 3 4 6 9 13…… 题解列表 2021年08月09日 0 点赞 0 评论 455 浏览 评分:8.0
C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x; scanf("%f",&x); printf("%.2f"…… 题解列表 2021年08月09日 0 点赞 1 评论 749 浏览 评分:8.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0,i=0; int count=0; scanf("%d",&n); int a[10]={0};…… 题解列表 2021年08月09日 0 点赞 0 评论 172 浏览 评分:8.0