题解列表

筛选

使用01背包算法解题

摘要:解题思路:背包算法各平台都有介绍,先去了解算法思路,自己举一组数据,正序把所有值列出来就明白了。以下代码是采用的倒序遍历,相比较正序遍历,可以省去部分时间。参考代码:#include <stdio.h……

日期排序(c++代码使用stl库)

摘要:解题思路:用sstream类分割字符串,再用vector容器存储起来,依次比较。注意事项:参考代码:#include<iostream> #include<string> #include<vec……

小白,看看就行,不动脑袋

摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){    string s;    cin>……

题解 2515: 转圈游戏

摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef long long LL;LL quick(LL a,LL b,LL m){    if(b==0)        r……