题解 3002: 买图书 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; double sum; scanf("%d %d", &n, &m); sum = n - …… 题解列表 2023年02月26日 0 点赞 0 评论 490 浏览 评分:0.0
题解 2762: 计算(a+b)*c的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n…… 题解列表 2023年02月26日 0 点赞 0 评论 559 浏览 评分:0.0
题解 2763: 计算(a+b)/c的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n…… 题解列表 2023年02月26日 1 点赞 0 评论 810 浏览 评分:0.0
30行代码 sort与结构体的基本应用 摘要:解题思路:注意事项:判断输入的数据是否超过5个参考代码:#include<bits/stdc++.h>using namespace std;struct node{ int l,a,b,c,sum;…… 题解列表 2023年02月26日 0 点赞 0 评论 397 浏览 评分:0.0
题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0.0; int b = 0.0; double c = 0; scanf("%d %d", &…… 题解列表 2023年02月27日 0 点赞 0 评论 467 浏览 评分:0.0
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 0; scanf("%d %d\n", &a, &b); printf("…… 题解列表 2023年02月27日 0 点赞 0 评论 388 浏览 评分:0.0
python解决复数求和问题 摘要:解题思路:首先输入行数,其中n代表几行其次定义变量,分别输入实部和虚部a,b最后对实部 虚部分别进行求和即可参考代码:n=int(input()) s,x=0,0 for _ in range(n…… 题解列表 2023年02月27日 0 点赞 0 评论 338 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:设a=1,b=1;数列,n0为a/b ;从n1开始每一项可以表达为前一项的分子分母的和处以分子(a+b)/a注意事项:注意题目要求的数据类型。参考代码:#include <stdio.h>i…… 题解列表 2023年02月27日 0 点赞 0 评论 299 浏览 评分:0.0
题解 3004: 成绩 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c, d; scanf("%d %d %d", &a, &b, &c); d = a * 0…… 题解列表 2023年02月27日 0 点赞 0 评论 418 浏览 评分:0.0
母牛的故事(非递归版) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n, cnt[56]; for( int i=0; i<=55; ++i){ …… 题解列表 2023年02月27日 0 点赞 0 评论 373 浏览 评分:0.0