Hifipsysta-2088-蓝桥杯算法提高VIP-快速幂(C++代码) 摘要:```cpp #include using namespace std; typedef unsigned long long ull; ull quickExp(ull x, ull …… 题解列表 2022年03月07日 0 点赞 0 评论 492 浏览 评分:8.0
1050: [编程入门]结构体之成绩记录 摘要:解题思路:一开始想用class代替struct,但是没想好怎么建对象的数组,就用struct了,实际上用class好像思路也是一样的。注意事项:(1)strcpy()函数要加<cstring>头。(2…… 题解列表 2022年03月07日 0 点赞 0 评论 654 浏览 评分:9.9
dp解题简单并且通过!!! 摘要:**解题思路:**dp:先把每一份装填1,剩下i-j份,再把i-j份分成1,2,3,4,5份用数组记录每n(1,2....)份的分法种数。 dp[i][j] = dp[i-j][1]+dp[i-j]…… 题解列表 2022年03月07日 0 点赞 0 评论 699 浏览 评分:6.0
运用数学规律解题 摘要:参考代码:```c++#include<iostream>using namespace std;int main() { int i, j; int a, b, n; cin >> n; while…… 题解列表 2022年03月07日 0 点赞 0 评论 310 浏览 评分:0.0
双序列型动态规划,编辑距离问题的变种 摘要:这个题可看作[编辑距离](https://www.dotcpp.com/oj/problem2141.html "编辑距离")问题的变种,可以参考我在那一篇的题解,内附了leetcode视频题解[信息…… 题解列表 2022年03月07日 0 点赞 0 评论 629 浏览 评分:9.9
1093: 字符逆序 摘要:```cpp #include using namespace std; int main(){ char str[100]; gets(str); //用gets输…… 题解列表 2022年03月07日 0 点赞 0 评论 410 浏览 评分:0.0
回形取数--简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){int m, n;cin >> m >> n;int num[500][…… 题解列表 2022年03月06日 0 点赞 0 评论 364 浏览 评分:0.0
矩阵乘法--谦谦笔记 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int m, n;int a[30][30], b[30][30], c[30][30];in…… 题解列表 2022年03月06日 0 点赞 0 评论 401 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ int n,sum=1; …… 题解列表 2022年03月06日 0 点赞 0 评论 516 浏览 评分:9.9
cpp简单易懂_超直观的解题思路-回文日期 摘要:不能一天一天枚举,否则会超时;转换一下思路,不必判断这一天是不是回文数,而是给出前四位数去构造后四位数从而得到回文数;这样就从一天一天枚举变成一年一年枚举,时间复杂度就降低了很多;构造好回文数后只需要…… 题解列表 2022年03月06日 0 点赞 1 评论 782 浏览 评分:8.0