化学品问题-题解(C++代码)记忆化搜索 ```cpp#includeusingnamespacestd;intt,n,m;longlongdp[35][35][35];longlongDFS(inti,intcnt,intlx){/*cnt表示已放的位置的数量,lx表示当前已经连续放了多少个*/if(i==n+1)return1;if(dp 题解列表 2020年03月29日 0 点赞 0 评论 1366 浏览 评分:9.9
蓝桥杯2019年第十届真题-等差数列-题解(C++代码) #问题2305:[蓝桥杯][2019年第十届真题]等差数列时间限制:1Sec内存限制:128MB提交:221解决:43题目描述数学老师给小明出了一道等差数列求和的题目。但是粗心的小明忘记了一部分的数列,只记得其中N个整数。现在给出这N个整数, 题解列表 2020年03月29日 0 点赞 0 评论 1807 浏览 评分:8.9
蓝桥杯2019年第十届真题-旋转-题解(C++代码) ```cpp#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongLL;constintINF=0x3f3f3f3f;constintMAXN=100+5;intr, 题解列表 2020年03月28日 0 点赞 0 评论 1222 浏览 评分:9.9
蓝桥杯2019年第十届真题-特别数的和-题解(C++代码) ```cpp#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongLL;constintINF=0x3f3f3f3f;constintMAXN=1e4+5;intn;intarr 题解列表 2020年03月28日 0 点赞 0 评论 1130 浏览 评分:8.0
蓝桥杯算法提高VIP-不大的数 -题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;intmain(){ios_base::sync_with_stdio(false);cin.tie(NULL);doublen,ans=1;cin>>n;if(n==0){cout 题解列表 2020年03月28日 0 点赞 0 评论 1001 浏览 评分:8.0
蓝桥杯算法提高VIP-开灯游戏-题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;boollight[10];intturn[10];voidturn_light(intx){if(x==1){light[2]=!light[2];light[4]=!light[4];}if(x==2){light[1]=!light 题解列表 2020年03月28日 0 点赞 0 评论 962 浏览 评分:0.0
蓝桥杯算法训练VIP-阶乘-题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;intmain(){ios_base::sync_with_stdio(false);cin.tie(NULL);longlongn;cin>>n;longlongans=1;while(n>1){ans*=n;while(ans%10= 题解列表 2020年03月28日 0 点赞 0 评论 907 浏览 评分:0.0
蓝桥杯基础练习VIP-矩形面积交-题解(C++代码) by Zfans. ```cpp#includeusingnamespacestd;intmain(){ios_base::sync_with_stdio(false);cin.tie(NULL);doublea1x,a1y,a2x,a2y;doubleb1x, 题解列表 2020年03月28日 0 点赞 0 评论 973 浏览 评分:0.0
人民币问题-题解(C++代码)DFS写法 ```cpp#includeusingnamespacestd;intn,r[3]={5,2,1};longlongDFS(inti,intsum){if(i==2)return1;//index到2就可以结束了,因为一元一定能补足剩下的longlongans=0;for(intj=0;sum+j*r 题解列表 2020年03月28日 0 点赞 0 评论 1005 浏览 评分:9.9
王牌花色-题解(C++代码) 摘要:```cpp #include #include using namespace std; string f(string s){ if(s=="J"){ re…… 题解列表 2020年03月28日 0 点赞 0 评论 1294 浏览 评分:5.2