<循环>求1~N所有数字的因子 摘要:#include<stdio.h> int main() { int N; scanf("%d", &N); for (int i = 1; i < N + 1; i++) { …… 题解列表 2023年02月03日 0 点赞 0 评论 186 浏览 评分:0.0
满足条件的数累加 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,m,n ,sum=0; scanf("%d %d",&m,&n) ; for (i=m;i<=n…… 题解列表 2023年02月03日 0 点赞 0 评论 185 浏览 评分:0.0
整数的个数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k,a,i;/*b为1出现的次数*/ int b=0; int c=0; int d=0; scan…… 题解列表 2023年02月03日 0 点赞 0 评论 189 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,a,i; int c=0; n<=1000; scanf("%d %d\n",&n,&m) ;…… 题解列表 2023年02月04日 0 点赞 0 评论 206 浏览 评分:0.0
人口增长问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x,n; int i=1; scanf("%lf %lf",…… 题解列表 2023年02月04日 0 点赞 0 评论 304 浏览 评分:0.0
求1+……+n的值 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ long long n; cin>>n; …… 题解列表 2023年02月04日 0 点赞 0 评论 179 浏览 评分:0.0
简单的a+b 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int a,b; cin>>a>>b; int c=a+b; cou…… 题解列表 2023年02月04日 0 点赞 0 评论 151 浏览 评分:0.0
1000:简单的a+b 摘要:参考代码:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b)cout…… 题解列表 2023年02月04日 0 点赞 0 评论 200 浏览 评分:0.0
一个数组位操作实现转置 摘要:#include<stdio.h> static x = 0; int main() { int arr[3][3]; int i = 0, j = 0; for …… 题解列表 2023年02月04日 0 点赞 0 评论 107 浏览 评分:0.0
字符串p型编码+遍历思想 摘要:解题思路:利用遍历的思想,将一位数与后面的数进行比较,当遇到不同的数时,停止记数,并进行输出,在跳过累加的数,进行下一个数的记数。注意事项:参考代码:#include<stdio.h>#include…… 题解列表 2023年02月04日 0 点赞 0 评论 258 浏览 评分:0.0