蛇形矩阵,找规律输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int temp=…… 题解列表 2023年11月12日 0 点赞 0 评论 564 浏览 评分:0.0
[编程入门]有规律的数列求和 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,d,i,e; double sum,a,b,c; a=2; b=1; …… 题解列表 2023年11月12日 0 点赞 0 评论 495 浏览 评分:0.0
[编程入门]完数的判断 (C语言) 摘要:解题思路:在b<a的循环中,将所有被a%b=0的b累加,得到sum,如果sum=a,则证明a为完数。把a输出。然后用b=c,将b重新赋值为1,将b<a,然后a%b=0的步骤重新来一遍,把所有的b的值输…… 题解列表 2023年11月12日 0 点赞 0 评论 617 浏览 评分:0.0
题解 3012: 分苹果 摘要: #include using namespace std; int main(){ int a,b=1,c=0; cin>>a; f…… 题解列表 2023年11月12日 0 点赞 0 评论 466 浏览 评分:0.0
不高兴的津津(C语言)(有注释)(简单易懂) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int a[7][2]; // 存储每天的上课时间和…… 题解列表 2023年11月12日 0 点赞 0 评论 951 浏览 评分:9.9
2820: 含k个3的数 #含K个三的数##正常解法很正常,直接用while循环和if语句就行了;```#includeusingnamespacestd;intmain(){intm,k,n,b,i,YES=0,NO=0;cin>>m>>k;i=0;n=m;while(n>0){b=n%10;if(b==3){i++;}n/ 题解列表 2023年11月12日 0 点赞 0 评论 525 浏览 评分:9.9
题解 3011: 余数相同问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n=2,a,b,c; cin>>a>>b>>c; w…… 题解列表 2023年11月12日 0 点赞 0 评论 523 浏览 评分:0.0
题解 2823: 计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double c=0; cin>>n; for…… 题解列表 2023年11月12日 0 点赞 0 评论 461 浏览 评分:0.0
计算鞍点(c语言)(有注释)(简单易懂) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int arr[5][5]; int i,…… 题解列表 2023年11月12日 0 点赞 0 评论 1617 浏览 评分:8.4
题解 2822: 求分数序列和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double a=1.0,b=2.0,c=0;…… 题解列表 2023年11月12日 0 点赞 0 评论 540 浏览 评分:0.0