题解 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 评论 191 浏览 评分: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 评论 153 浏览 评分:0.0
题解 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 评论 155 浏览 评分:0.0
题解 3012: 分苹果 摘要: #include using namespace std; int main(){ int a,b=1,c=0; cin>>a; f…… 题解列表 2023年11月12日 0 点赞 0 评论 147 浏览 评分: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 评论 225 浏览 评分: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 评论 137 浏览 评分:0.0
蛇形矩阵,找规律输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int temp=…… 题解列表 2023年11月12日 0 点赞 0 评论 193 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d %d", &x, &y); if(x>y) pri…… 题解列表 2023年11月12日 0 点赞 0 评论 171 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 1 点赞 0 评论 968 浏览 评分:0.0
c代码记录之自定义函数字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void imp(char str[],char output[],int n) …… 题解列表 2023年11月13日 0 点赞 0 评论 147 浏览 评分:0.0