鸡尾酒疗法C语言解法 摘要:解题思路:数组思想注意事项:参考代码:#include<stdio.h>int ans[10001];int main(){ int n,i,y1,y2; int a,b; floa…… 题解列表 2022年12月11日 0 点赞 0 评论 537 浏览 评分:6.5
数组+循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double x,y[100],j,k; scanf("%d",&n); scanf("%lf %…… 题解列表 2022年12月30日 0 点赞 0 评论 222 浏览 评分:6.0
对题2810:利用循环语句输入多组数据,并判断与参考数据的关系 摘要:解题思路:首先需要输入n组数据,其中第一组数据为参考数据,其余n-1组数据均需要与第一组数据进行比较,从而得出是否更加有效。可以采用一个条件语句进行判断,如果n为输入时的n,便将n20/n10的值记录…… 题解列表 2024年09月08日 0 点赞 0 评论 116 浏览 评分:6.0
鸡尾酒疗法,简单方法 摘要:解题思路:注意事项:用整形数据进行除法是要在前面乘以1.0。将其换成浮点型的数据也是可以的。参考代码:#include<stdio.h>int main(){ int n,i,a,b,x,y; …… 题解列表 2023年01月07日 0 点赞 0 评论 335 浏览 评分:2.6
鸡尾酒疗法java 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年04月21日 0 点赞 0 评论 141 浏览 评分:0.0
鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double x,y,d,d1;cin…… 题解列表 2025年03月23日 0 点赞 0 评论 69 浏览 评分:0.0
int做除法默认floor,如果想还原结果百分比需要*1.0 摘要:解题思路:1.int做除法默认floor,如果想还原结果百分比需要*1.0。如p=1.0*b/a;2.多行数据,如果要用前面一行求固定值,直接输入即可。不用想复杂,又引入数组索引,太麻烦。 cin>>…… 题解列表 2024年12月03日 0 点赞 0 评论 123 浏览 评分:0.0
胡说八道式解释答案, 没有详细介绍 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n ; int a , b , c, d ; float x ,y ; …… 题解列表 2024年11月05日 0 点赞 0 评论 158 浏览 评分:0.0
看到那么多字就头晕,细下心来读出数学公式即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[100][2]; //定义个二维数组,存放每组数据 scanf("…… 题解列表 2023年01月19日 0 点赞 0 评论 186 浏览 评分:0.0
编写题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a,b; cin>>n; float x,y;…… 题解列表 2024年06月04日 0 点赞 0 评论 1281 浏览 评分:0.0