题解 1793: 玉龙学长买雪糕

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

玉龙学长买雪糕

摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int sum=1; int a=1; while(n>1)……

玉龙学长买雪糕

摘要:解题思路:sum是购买总数,x为第几家店要买的雪糕数量注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,x=0,……

1793: 玉龙学长买雪糕

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int total=0,count; scanf("%d",&count);……

玉龙学长买雪糕-题解(C语言代码)

摘要:```c //其实很简单的。 //先定义一个输入的n,还有每一个的数量m,再最后全部的s(计数的每一个都要先赋值清零,不然会出差错) #include"stdio.h" int main() ……