题解列表

筛选

c++++++++++++++++++++++++

摘要:includeincludeincludeincludeinclude // 包含 pairusing namespace std;int main() { ve……

高精度回文数

摘要:解题思路:判断是否为字符串是否为回文数其实就是将该字符串反转比较是否相同就行,还有就是高精度的加法运算要会```cpp#include #include #include ……

高精度除法

摘要:思路:见代码注释,按位相减注意:被除数小于除数的情况,以及余数为0的情况```cpp#include #include #include using namespace s……

幸运儿问题模拟求解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){&nb……

Python | 生成器

摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203……

最普通的数组解法

摘要:解题思路:#include<stdio.h>#include<string.h>int main(){char arr[100];int i=0;scanf("%s&……

python|sys.stdin

摘要:```pythonimport sysfrom collections import Counter# python可能超时过不了全部,使用sys.stdin一次all in输入数据,……

python|并查集

摘要:```pythonclass UnionFind: def __init__(self, n): self.parents = list(range(n))……