题解 2810: 鸡尾酒疗法

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

筛选

鸡尾酒疗法C语言解法

摘要:解题思路:数组思想注意事项:参考代码:#include<stdio.h>int ans[10001];int main(){    int n,i,y1,y2;    int a,b;    floa……

数组+循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double x,y[100],j,k; scanf("%d",&n); scanf("%lf %……

鸡尾酒疗法,简单方法

摘要:解题思路:注意事项:用整形数据进行除法是要在前面乘以1.0。将其换成浮点型的数据也是可以的。参考代码:#include<stdio.h>int main(){    int n,i,a,b,x,y; ……

鸡尾酒疗法java

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double x,y,d,d1;cin……

编写题解 2810: 鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a,b;  cin>>n; float x,y;……