DP和最大子序列DP 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int dp[100001]; int…… 题解列表 2021年04月16日 0 点赞 0 评论 667 浏览 评分:0.0
(C++代码)简单深搜---慢的一批 摘要: // C++ #include using namespace std; int m; int people[10]; // 记录小朋友的money数 bool vis…… 题解列表 2021年04月16日 0 点赞 0 评论 735 浏览 评分:0.0
编写题解 1861: 程序员爬楼梯 摘要:经典动态规划:考虑最后一步f(n)=f(n-1)+f(n-3);参考代码:#include <stdio.h>#include <stdlib.h>int pa(int n){ if(n==1|…… 题解列表 2021年04月16日 0 点赞 0 评论 434 浏览 评分:0.0
筛法(赌他不卡我数据 摘要:解题思路:注意事项:参考代码#include <bits/stdc++.h>using namespace std;int a[1001000];int fuck(int x) { int ans =…… 题解列表 2021年04月16日 0 点赞 0 评论 404 浏览 评分:0.0
1157:[亲和数] 摘要:解题思路:一个函数isequal来判断b是否为a的所有约数的和,是返回1,否返回0;调用函数判断两数是否均为对方的所有约数和;注意事项:参考代码:#include<stdio.h> int iseq…… 题解列表 2021年04月16日 0 点赞 0 评论 385 浏览 评分:0.0
优质题解 高精度加法! 摘要:解题思路:小学二年纪的加法运算还记得不?就是那个列竖式计算(如下图),原理就是这个,只不过列竖式计算的时候从左到右是从高位到地位,例如234(2是百位,4是个位),而现在这个题的原理是从左到右是从低位…… 题解列表 2021年04月16日 0 点赞 0 评论 939 浏览 评分:0.0
蓝桥杯Sine之舞(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; void An(int i, int n){ if(i==n) …… 题解列表 2021年04月16日 0 点赞 0 评论 854 浏览 评分:0.0
菜鸡的题解014——乘积最大 摘要:菜鸡的我动态规划写了好长时间还是参考了大佬的代码,呜呜呜这题我觉得更适合用DFS写,思路会比较清晰。下面给出我的两种代码动态规划:动态规划我太不熟练了。。#include<iostream> #in…… 题解列表 2021年04月16日 0 点赞 0 评论 480 浏览 评分:0.0
python解题FJ的字符串 摘要:解题思路: 先将会用到的字符串存在列表里,需要时取出来就行参考代码:n = int(input()) s=[] for i in range(n): s.append(chr(65+i)…… 题解列表 2021年04月17日 0 点赞 0 评论 723 浏览 评分:0.0
利用等比数列求Sn 摘要:解题思路:由观察可知 第n项为2+20+200+2000+…… 是一个首项为2公比为10的等比数列求和 & 题解列表 2021年04月17日 0 点赞 0 评论 394 浏览 评分:0.0