2765 计算分数的浮点数值 摘要:解题思路:注意事项:double参考代码:#include<stdio.h>int main(){ double a; double b; scanf("%lf %lf", &a, &b); prin…… 题解列表 2022年11月03日 0 点赞 0 评论 842 浏览 评分:8.0
使用while循环 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){ int k; k=i; int t,s=0; …… 题解列表 2022年11月03日 0 点赞 0 评论 484 浏览 评分:10.0
1072-嵌套循环求解 摘要:解题思路:#创建两个变量分别记录空瓶子数和兑换汽水数 #使用循环体实现对多个数据的接收 #注意计算每次进行兑换后剩余空瓶子数注意事项:sum每次输出后要重新归零n=2时便只能再兑换最后一瓶参考代码…… 题解列表 2022年11月03日 0 点赞 0 评论 344 浏览 评分:0.0
A+B for Input-Output Practice (V)(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i,j=0,sum,m; scanf("%d",&m); while(…… 题解列表 2022年11月03日 0 点赞 0 评论 394 浏览 评分:0.0
A+B for Input-Output Practice (VI)(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i,j=0,sum; while(scanf("%d",&n)!=EOF) …… 题解列表 2022年11月03日 0 点赞 0 评论 375 浏览 评分:0.0
A+B for Input-Output Practice (VII)(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年11月03日 0 点赞 0 评论 469 浏览 评分:0.0
A+B for Input-Output Practice(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i,j=0,sum,m; scanf("%d",&m); while(…… 题解列表 2022年11月03日 0 点赞 0 评论 433 浏览 评分:0.0
自由落体距离计算(入门选手的多次摸索) 摘要:解题思路:注意事项:参考代码:#includeint main(void){ int M,N; float M1,N1,a,sum; int i=1; scanf("%d%d"…… 题解列表 2022年11月04日 0 点赞 0 评论 465 浏览 评分:9.9
偶数求和和和和和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int main(){…… 题解列表 2022年11月04日 0 点赞 0 评论 414 浏览 评分:9.9
全排列解决排队买票 摘要:解题思路:由题目可知,1元小孩通过,售票员手里的零钱+1,2元的小孩通过,售票员的零钱-1,初始的零钱数目是0。不妨把1元的小孩设成1,把2元的小孩设成-1,建立一个由n个1和k个-1组成的m元动态数…… 题解列表 2022年11月04日 1 点赞 0 评论 695 浏览 评分:10.0