分类计算-题解(C语言代码)加油!!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; scanf("%d%d",&a,&b); c=a*a+b*b; d=a+b; if(…… 题解列表 2020年12月01日 0 点赞 0 评论 752 浏览 评分:0.0
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:宏定义和函数的返回值是最大值输出注意事项:宏定义用?:操作符,函数用if语句,也可以用?:求参考代码:#include<stdio.h> #define max(x,y,z) (x>y?x…… 题解列表 2020年12月01日 0 点赞 0 评论 1071 浏览 评分:9.9
[编程入门]数组插入处理-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:int a[10]; int i,j,k,num,t; for(i = 0; i < 9; i ++) { scanf("%d",&a[i]); } scanf("%…… 题解列表 2020年12月01日 0 点赞 0 评论 931 浏览 评分:0.0
求中间数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b && b>c || c…… 题解列表 2020年12月01日 0 点赞 0 评论 758 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C语言代码) 摘要:解题思路:在判断输入的数是否小于前一个数,小于则先把后面数组中的数向后移一位,再把number输入注意事项:定义一个数t来暂时储存数参考代码:#include <stdio.h>int main(){…… 题解列表 2020年12月01日 0 点赞 0 评论 899 浏览 评分:0.0
[编程入门]50%错误 摘要:解题思路:50%错误,,不知道哪有问题注意事项:参考代码:lst=list(input().split()) s=" " lst2=[] for i in lst: if "a"<=i…… 题解列表 2020年12月01日 0 点赞 2 评论 629 浏览 评分:0.0
蟠桃记-题解(C++代码) 摘要:解题思路:找规律来推断通式注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; while(scanf("%d…… 题解列表 2020年12月01日 0 点赞 0 评论 659 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void count(char arr[]){ int i,a=0,b=0,c=0,d=0;for(i=0;arr[i]!='…… 题解列表 2020年12月01日 0 点赞 0 评论 727 浏览 评分:9.9
IP判断-题解(C语言代码) ###解题思路看代码注释:```c#include#includeintmain(){inti;chara[30];intisip;while(scanf("%s",&a)!=EOF){//判断是否为EOFintb[3]={0};isip=1;intx=0, 题解列表 2020年12月01日 0 点赞 1 评论 1643 浏览 评分:9.9
[编程入门]自定义函数求一元二次方程-题解(Java代码) 解题思路:了解公式,进行求解注意事项:注意精度,注意小数点后多少位,注意正负号,根号的表示参考代码://x=-b(-/+)Math.sqrt(b*b-4*a*c)/(2*a)//Math.sqrt()为根号//m+ni;m=-b/2*a;n=Math.sqrt(b*b-4*a*c)/(2*a)impo 题解列表 2020年12月01日 0 点赞 0 评论 1652 浏览 评分:8.0