题解列表

筛选

2810: 鸡尾酒疗法

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

题解 2810: 鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    double n,x,y,q,w;    cin>>n>>x>……

题解 2810: 鸡尾酒疗法

摘要:解题思路:输入个数与原疗法,再写个for来循环新疗法,再整个if输出就行了注意事项:循环的数量是 个数-1.最后一个if要写else,否则不成立。要用doubled 定义变量。参考代码:#includ……

2810: 鸡尾酒疗法

摘要:解题思路:本题主要考察对循环的熟练度和对题干的理解力注意事项:循环中i的循环次数为:i<=n-1,不是n               better,worse,same不要拼错(别问我为什么要写这个,……

更相减损法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int x,y,z,a;     scanf("%d %d",&x,&y);     a = x*y; ……

写题解 2810: 鸡尾酒疗法

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

题解 2799: 奥运奖牌计数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){   int fmax,maxs=0,……

最高的分数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    short number, max_score = 0;    short *p; scanf("%hd……