题解列表

筛选

偶数求和和和和和

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int  main(){……

1072-嵌套循环求解

摘要:解题思路:#创建两个变量分别记录空瓶子数和兑换汽水数 #使用循环体实现对多个数据的接收 #注意计算每次进行兑换后剩余空瓶子数注意事项:sum每次输出后要重新归零n=2时便只能再兑换最后一瓶参考代码……

使用while循环

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){    int k;    k=i;    int t,s=0;  ……

2765 计算分数的浮点数值

摘要:解题思路:注意事项:double参考代码:#include<stdio.h>int main(){ double a; double b; scanf("%lf %lf", &a, &b); prin……