[编程入门]自定义函数之字符串连接-题解(C语言代码)简单代码! 摘要:解题思路:利用gets输入两个字符串,利用两个循环输出并且合并字符串;注意事项:了解gets是定义;参考代码:#includeint main(){ char a1[100],a2[100];…… 题解列表 2020年12月01日 0 点赞 0 评论 581 浏览 评分:0.0
蟠桃记-题解(C++代码) 摘要:解题思路:找规律来推断通式注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; while(scanf("%d…… 题解列表 2020年12月01日 0 点赞 0 评论 539 浏览 评分:0.0
[编程入门]50%错误 摘要:解题思路:50%错误,,不知道哪有问题注意事项:参考代码:lst=list(input().split()) s=" " lst2=[] for i in lst: if "a"<=i…… 题解列表 2020年12月01日 0 点赞 2 评论 542 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C语言代码) 摘要:解题思路:在判断输入的数是否小于前一个数,小于则先把后面数组中的数向后移一位,再把number输入注意事项:定义一个数t来暂时储存数参考代码:#include <stdio.h>int main(){…… 题解列表 2020年12月01日 0 点赞 0 评论 726 浏览 评分: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 评论 597 浏览 评分:0.0
[编程入门]数组插入处理-题解(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 评论 750 浏览 评分:0.0
分类计算-题解(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 评论 550 浏览 评分:0.0
求平均工资-题解(C语言代码) 摘要:解题思路:注意事项:注意整数;参考代码:#include <stdio.h>int main(){ int a[100], n,i,sum,ave; scanf("%d",&n); sum=0; fo…… 题解列表 2020年12月01日 0 点赞 0 评论 977 浏览 评分:0.0
求阶梯水费-题解(C语言代码) 摘要:解题思路:注意事项:注意包含15!!!!!参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d",&a); if(a<=15) b=2*a; if…… 题解列表 2020年12月01日 0 点赞 0 评论 621 浏览 评分:0.0
分段计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<3) y=2*x; if(x>=3 && x<20…… 题解列表 2020年12月01日 0 点赞 0 评论 722 浏览 评分:0.0