题解列表

筛选

最长上升子序列问题3

摘要:## 最长上升子序列问题 #### 注意事项 1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.……

最简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)……

有详解 简单易懂

摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s……

刷题统计Pthon

摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5:    day=0 ……

2805: 乘方计算 快速幂方法

摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algor……

计负均正1061题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int num[20];    double count=0.0……

图的遍历-DFS

摘要:```cpp #include using namespace std; #define ll long long int n;//节点数 const int N = 55;//最大节点数 ……

动态规划Java解题

摘要:解题思路:动态规划的简单应用注意事项:最好得拿张纸写写,再用断点去一点点领悟其运行过程参考代码:/*   关于动态规划的一道题目   一个美食家在一条街上从前往后吃,每一次吃的都要比上次的更加好   ……