题解列表

筛选

敲简单C语言代码!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[100000]={0};    long long b,i;    a[99999]=1;  ……

2765 计算分数的浮点数值

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

使用while循环

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

1072-嵌套循环求解

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