题解列表

筛选

更相减损法

摘要:解题思路:注意事项:参考代码:#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……

2806: 人口增长问题

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

1301: 尼克的任务

#1301:尼克的任务##思路解析首先可以很明确判断出这是一道线性规划的题目。该题目本人觉得难点在于正反推的问题。所以我会详细解释一下。顺带一提搜索的思路也是可以的,但是这道题状态空间优点大,再加上DFS实现的话应该是会爆时间的(猜测并没有实际验证,hhh)。

1098: 陶陶摘苹果 C语言

摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include int main() { int apple_hight[10] = {0};//……