题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ double n,x,y,q,w; cin>>n>>x>…… 题解列表 2024年01月11日 0 点赞 0 评论 237 浏览 评分:0.0
题解 2810: 鸡尾酒疗法 摘要:解题思路:输入个数与原疗法,再写个for来循环新疗法,再整个if输出就行了注意事项:循环的数量是 个数-1.最后一个if要写else,否则不成立。要用doubled 定义变量。参考代码:#includ…… 题解列表 2024年01月11日 0 点赞 0 评论 571 浏览 评分:7.3
2810: 鸡尾酒疗法 摘要:解题思路:本题主要考察对循环的熟练度和对题干的理解力注意事项:循环中i的循环次数为:i<=n-1,不是n better,worse,same不要拼错(别问我为什么要写这个,…… 题解列表 2024年01月11日 0 点赞 0 评论 427 浏览 评分: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 评论 290 浏览 评分: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 评论 277 浏览 评分:9.9
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int fmax,maxs=0,…… 题解列表 2024年01月11日 0 点赞 0 评论 382 浏览 评分:9.9
最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ short number, max_score = 0; short *p; scanf("%hd…… 题解列表 2024年01月11日 0 点赞 0 评论 223 浏览 评分:0.0
指针数组的方式求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number, total = 0; int *p; scanf("%d", &numbe…… 题解列表 2024年01月11日 0 点赞 0 评论 495 浏览 评分:9.9
2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,n; cin>>x>>n; …… 题解列表 2024年01月11日 0 点赞 0 评论 264 浏览 评分:2.0
c代码记录之满载而归 摘要:```c #include int main() { int a,b,c; while(~scanf("%d%d%d",&a,&b,&c)){ if(a…… 题解列表 2024年01月11日 0 点赞 0 评论 256 浏览 评分:0.0