二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,m; for(int i=1;i<=23;i++) { …… 题解列表 2021年11月10日 0 点赞 0 评论 462 浏览 评分:0.0
1166好兄弟,可以的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int sum=0,X,i,Y;scanf("%d %d",&X,&Y); for(i=X;i>=X&&i<=…… 题解列表 2021年11月10日 0 点赞 0 评论 341 浏览 评分:0.0
二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main(){ int n,sum1=0,sum…… 题解列表 2021年11月10日 0 点赞 0 评论 543 浏览 评分:0.0
数字逆序输出 摘要:解题思路:1.利用数组来储存十个数字;2.需要用到for循环来完成逆序输出;注意事项:需要理解数组用法参考代码:#include<stdio.h>int main(){ int a[10],i; fo…… 题解列表 2021年11月10日 0 点赞 0 评论 346 浏览 评分:0.0
题解 1169: 绝对值排序 摘要:参考代码:#include<stdio.h>#include<math.h>#define N 100void main(){ int i,j,k,s,t,temp,a[N][N]; f…… 题解列表 2021年11月10日 0 点赞 0 评论 352 浏览 评分:0.0
最简单的方法,我敢保证 摘要:解题思路:再重新搞一个数组b,b的位置要对应a的位置,b数组是a数组绝对值的翻版,所以用它来比较大小,这个答案在网页上错误50%,我也不懂,但是这个放在DEVC++上的结果是正确的,注意事项:参考代码…… 题解列表 2021年11月10日 0 点赞 0 评论 331 浏览 评分:0.0
自定义函数之字符串反转(简单易懂,四行小代码) 摘要:解题思路:n[::-1]就是反序的意思注意事项:注意空格去掉参考代码:n=input()for i in n[::-1]: if i==' ':continue else:…… 题解列表 2021年11月10日 0 点赞 0 评论 531 浏览 评分:0.0
1029,好懂的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int i,a; scanf("%d",&a); for(i=2;i<=a-1;i++) if(a…… 题解列表 2021年11月10日 0 点赞 0 评论 286 浏览 评分:0.0
简单易懂的写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e; scanf("%d",&x); a=x%10; b=x/10%10; c=x/…… 题解列表 2021年11月10日 0 点赞 0 评论 273 浏览 评分:0.0
1012,好懂的方法 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0,f=0; a=getchar(); while(a!=…… 题解列表 2021年11月10日 0 点赞 0 评论 570 浏览 评分:0.0