2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; double x,y,a,b; …… 题解列表 2024年01月11日 0 点赞 2 评论 115 浏览 评分:0.0
题解 2816: 统计满足条件的4位数个数(精心制作,给个好评吧) 摘要:解题思路:先定义出个数,再用if语句和for循环来表达题意,以下是参考代码;注意事项:在定义时,最好定义成浮点型,不然后面处理强转很麻烦;变量尽量少定义,不建议用第2种方法;参考代码:方法一:#inc…… 题解列表 2024年01月11日 0 点赞 0 评论 222 浏览 评分:9.9
题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ double n,x,y,q,w; cin>>n>>x>…… 题解列表 2024年01月11日 0 点赞 0 评论 173 浏览 评分:0.0
题解 2810: 鸡尾酒疗法 摘要:解题思路:输入个数与原疗法,再写个for来循环新疗法,再整个if输出就行了注意事项:循环的数量是 个数-1.最后一个if要写else,否则不成立。要用doubled 定义变量。参考代码:#includ…… 题解列表 2024年01月11日 0 点赞 0 评论 483 浏览 评分:7.3
2810: 鸡尾酒疗法 摘要:解题思路:本题主要考察对循环的熟练度和对题干的理解力注意事项:循环中i的循环次数为:i<=n-1,不是n better,worse,same不要拼错(别问我为什么要写这个,…… 题解列表 2024年01月11日 0 点赞 0 评论 341 浏览 评分:9.9
更相减损法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,z,a; scanf("%d %d",&x,&y); a = x*y; …… 题解列表 2024年01月11日 0 点赞 0 评论 192 浏览 评分:9.9
写题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double x,y,d,d1;cin>>n>>x…… 题解列表 2024年01月11日 0 点赞 0 评论 221 浏览 评分:9.9
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int fmax,maxs=0,…… 题解列表 2024年01月11日 0 点赞 0 评论 320 浏览 评分:9.9
最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ short number, max_score = 0; short *p; scanf("%hd…… 题解列表 2024年01月11日 0 点赞 0 评论 153 浏览 评分:0.0
指针数组的方式求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number, total = 0; int *p; scanf("%d", &numbe…… 题解列表 2024年01月11日 0 点赞 0 评论 405 浏览 评分:9.9