题解列表
蓝桥杯历届试题-翻硬币(贪心)
摘要:#include <iostream>
#include <cstring>
using namespace std;
const int N = 110;
int n;
char ……
C语言 最大数问题 快速排序求最大值
摘要:练练快排罢了不用参考参考代码:#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
in……
矩形总面积(附详细解释)
摘要:解题思路:* 思路算法* 使用一个八个位置的数组来容纳坐标点* (x1,y1)(x2,y2)(x3,y3)(x4,y4)* 对于不相交的矩形,其面积为* (x2-x1)*(y2-y1)+(x4-x3)……
数位排序(python)
摘要:```
hash_list=[[] for i in range(55)]#hash_list[n]为各位和为n的数值
hash_list_n=[0 for i in range(55)]#has……
纸张尺寸,递归解决(python)
摘要:
lw函数矫正当前长宽
cal函数递归解决,An就是重复折叠n次,n=0时结束
```
def lw(l,w):
return max(l,w),min(l,w)
de……
T1457Power Strings--KMP
摘要:```cpp
#include
#include
#include
using namespace std;
const int N=1e6+100;
char str[N];
i……