3025: 踩方格(dfs) 摘要:解题思路:n不超过20,先写一个dfs爆搜。因为是二维数组,所以把只能向上、左、右走改成了向下、左、右走,起始位置在(0,50),这样向下左右走不会超过边界。先将起始位置标记为-1,表示不能返回。以走…… 题解列表 2023年01月19日 0 点赞 0 评论 480 浏览 评分:9.9
2099: C++重载练习之复数加减法 摘要:解题思路:当复数为0时不进行打印操作,注意正负号。参考代码:#include <iostream> #include <cmath> using namespace std; int m…… 题解列表 2023年01月19日 0 点赞 0 评论 783 浏览 评分:9.9
题解 2841: 大整数加法 (c++)string解题 摘要:解题思路:用string把输入的数字倒叙存入在数组里面,然后进行对位相加,再倒叙输出参考代码:#include <iostream> using namespace std; string s1,…… 题解列表 2023年01月19日 1 点赞 0 评论 480 浏览 评分:9.0
初学树状数组 摘要:解题思路:树状数组注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=15005,M=32005;int a[N],b[M…… 题解列表 2023年01月18日 0 点赞 0 评论 317 浏览 评分:9.9
每日打卡题目 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e7 + 5;int arry[N];int main…… 题解列表 2023年01月18日 0 点赞 0 评论 258 浏览 评分:0.0
1352: Matrix67的派对 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int n, k; int h…… 题解列表 2023年01月18日 0 点赞 0 评论 418 浏览 评分:0.0
蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct Complex{ int imag; int real…… 题解列表 2023年01月18日 0 点赞 0 评论 280 浏览 评分:0.0
1333: [NOIP2004]合并果子 摘要:```cpp #include #include using namespace std; const int N(30005); long long a[N],b[N]; int mai…… 题解列表 2023年01月18日 0 点赞 0 评论 373 浏览 评分:9.9
2999: 牛吃牧草 摘要:方法一: ```cpp #include using namespace std; int main() { cout…… 题解列表 2023年01月18日 1 点赞 0 评论 2051 浏览 评分:5.0
2998: 电影票 摘要:```cpp #include using namespace std; int main() { int x; cin>>x; cout…… 题解列表 2023年01月18日 0 点赞 0 评论 530 浏览 评分:9.9