题解列表

筛选

题解 2814: 正常血压

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0,res=0; cin>>……

2822: 求分数序列和

```#includeusingnamespacestd;intmain(){intn;doublec=0,sum=0,a=3,b=2,c1=2,y=0;cin>>n;for(inti=1;i

题解 2813: 药房管理

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b; ……

2797: 最高的分数

摘要:``` #include using namespace std; int main(){ int n,b,a=0; cin>>n; for(int i=1;i>b; if(a……

自定义函数求一元二次方程

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #include <complex.h> // 计算并输出实数根的函数 void r……

糖果游戏(c代码)

解题思路:注意事项:代码中的除法运算可能会导致整数溢出,因为数组的每个元素都是一个int类型的整数。如果除数为3的整数结果大于int类型的最大值(2147483647),则可能会导致整数溢出。参考代码:#include#includeintmain(){inti=0;

循环控制,汽水瓶

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int test1(int n) {     return n / 3;}int test2(int n) {         retu……