必备技法--高精加//vector数组版 + string版 摘要:# 高精度加法vector版 使用vevtor容器 容量可变的优势 模拟高精度 本模板无难点 需要注意 输出答案之前要 反转结果 ```cpp #include #inclu…… 题解列表 2024年09月13日 0 点赞 0 评论 536 浏览 评分:9.9
必备技法--高精度乘法//vector版 摘要:###### 高精度乘法vector版 ```cpp #include #include #include #include #define int long long …… 题解列表 2024年09月13日 0 点赞 0 评论 209 浏览 评分:9.9
[蓝桥杯2017年第八届真题-九宫幻方] DFS 摘要:## 思路:先找出未用的数字有哪些,再进行深搜找出全排列的数,然后放入九宫格中,最后进行检测看是否符合题意 ```cpp #include #define ULL unsigned long l…… 题解列表 2024年09月13日 0 点赞 1 评论 170 浏览 评分:9.9
【C语言+图解】通过双倍数组的数量插入数据,简单易懂 摘要:解题思路:通过创建二倍的数组大小来保证有地方插入注意事项:为了防止数组位置越界,第0项和最后一项要分开判断参考代码:#include<stdio.h> int main(){ //创建一个数…… 题解列表 2024年09月14日 0 点赞 0 评论 149 浏览 评分:9.9
对题2844:数组之间的转化以及数组计算 摘要:解题思路:首先,需要定义一个字符数组,用于输入大整数,并将其储存在数组中;然后再定义一个整型数组,利用ASCII码之间的关系,将字符数组中每个元素减轻‘0’,即可将输入的整数储存在数组中,用来进行后续…… 题解列表 2024年09月14日 0 点赞 0 评论 306 浏览 评分:9.9
单调栈(可做模板) 摘要: ##优化版(O(n)) ###手写栈版 #include #include using namespace std; const int N = 5000…… 题解列表 2024年09月14日 1 点赞 0 评论 238 浏览 评分:9.9
筛素数最全模板 摘要:###暴力筛素数(O(sqrt(n))) #include #include using namespace std; bool primes(int x) { …… 题解列表 2024年09月14日 1 点赞 0 评论 252 浏览 评分:9.9
对题2838:数组之间的转换以及冒泡排序的初步使用 摘要:解题思路:本题是要求判断元素为n的数组中,相邻元素的差的绝对值是否可以排列成1~n-1的有序数组,要求该有序数组连续。首先,应当建立一个较大的整型数组来包含输入的数组。其次,可以将数组之间两相邻元素求…… 题解列表 2024年09月14日 0 点赞 0 评论 263 浏览 评分:9.9
[LETTERS] BFS 配合 map容器 摘要:## unordered_map 的.count函数-用于查找是否出现过该状态,是返回1; ```cpp #include #define ULL unsigned long long #d…… 题解列表 2024年09月14日 0 点赞 1 评论 322 浏览 评分:9.9
编写题解 1461: 蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年09月14日 0 点赞 0 评论 160 浏览 评分:9.9