蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int max(int a,int b,int n){ return a>b?2*(a-1):2*(n-a);}int main(){…… 题解列表 2023年02月26日 0 点赞 0 评论 469 浏览 评分:0.0
LikeWater - 1067: 二级C语言-分段函数 ```cpp#include#include1usingnamespacestd;//输入x,计算并输出下列分段函数f(x)的值。//可以调用数学库函数:平方根函数sqrt(),绝对值函数fabs()和幂函数pow()。intmain(){doublex,sum=0;cin>>x;if(x 题解列表 2023年02月26日 0 点赞 0 评论 490 浏览 评分:0.0
题目 3000: 交换值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 0; int c = 0; scanf("%d %d", &a, &b);…… 题解列表 2023年02月26日 0 点赞 0 评论 484 浏览 评分:0.0
题解 3002: 买图书 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; double sum; scanf("%d %d", &n, &m); sum = n - …… 题解列表 2023年02月26日 0 点赞 0 评论 636 浏览 评分: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日 1 点赞 0 评论 749 浏览 评分: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 评论 963 浏览 评分: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 评论 540 浏览 评分: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 评论 605 浏览 评分: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 评论 496 浏览 评分:0.0
python解决复数求和问题 摘要:解题思路:首先输入行数,其中n代表几行其次定义变量,分别输入实部和虚部a,b最后对实部 虚部分别进行求和即可参考代码:n=int(input()) s,x=0,0 for _ in range(n…… 题解列表 2023年02月27日 0 点赞 0 评论 507 浏览 评分:0.0