题解列表

筛选

矩形面积交

摘要:解题思路:通过画图可知,两矩形的边的表示方法注意事项:参考代码:a = list(map(float, input().split()))b = list(map(float, input().spl……

分数线划定

摘要:```cpp#include #include using namespace std;struct interviewer{ int number; int score;……

比较容易理解的代码

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[105][105];void move(int &x……

递推公式:成虫繁殖

摘要:```cpp/*题目描述科学家在热带森林中发现了一种特殊的昆虫,这种昆虫的繁殖能力很强。每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成……

纪念品分组(贪心思维)

摘要:> 直接排序,让价格从低到高,然后价格高的和低的一起,如果没有超过上限,就一组,cnt++> 如果超过上限,价格高的一组,cnt++```cpp#include using nam……

用字符串存储方便反转

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int init(string s){ int x = 0; while……

易懂-数组输出

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intmain(){&nbs……