3023: 移动路线 摘要:```cpp #include using namespace std; int dp[20][20]; int main() { int n,m; cin>>n>>m;…… 题解列表 2023年01月09日 0 点赞 0 评论 406 浏览 评分:9.9
3024: 判断整除 摘要:```cpp #include using namespace std; int p[10000],n,m; bool vis=false; void dfs(int k) { …… 题解列表 2023年01月09日 0 点赞 0 评论 484 浏览 评分:9.9
3025: 踩方格 摘要:```cpp #include using namespace std; int f[21]={1,3},n; int main() { int n; cin>>n; …… 题解列表 2023年01月09日 0 点赞 0 评论 435 浏览 评分:9.9
进制转化的运用 摘要:解题思路:写出一个进制转化函数,利用for循环暴力解答注意事项:例如121这个十进制的数,那么找它存在的进制最小从3开始找参考代码:def nijinzhishu(n,i):#i进制的n转为十进制 …… 题解列表 2023年01月09日 0 点赞 0 评论 365 浏览 评分:9.9
3026: 山区建小学 摘要:```cpp #include using namespace std; int m,n,a[1000][1000],c[1000][1000],f[1000][1000]; int main…… 题解列表 2023年01月09日 0 点赞 0 评论 526 浏览 评分:9.9
第n小的鸡数=_=|| 摘要:解题思路: 这个有点懂西,不过身为ikun的我只用了两分钟就想到了一个好办法: 就是先用一个数组把所有需要的质数存储起来,这样我们需要第几个质数,我们就拿出第几个元素即可,…… 题解列表 2023年01月09日 0 点赞 0 评论 561 浏览 评分:9.9
二级C语言-分段函数(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x<1) printf("%.2f",1.0*x); if…… 题解列表 2023年01月09日 0 点赞 0 评论 533 浏览 评分:9.9
二级C语言-求偶数和(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[1000],i,sum=0; scanf("%d",&n); for(i=0;i<n;i++)…… 题解列表 2023年01月09日 0 点赞 0 评论 386 浏览 评分:9.9
二级C语言-等差数列(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); printf("%d",2*n+(n*(n-1)*3)/2);}…… 题解列表 2023年01月09日 0 点赞 0 评论 369 浏览 评分:9.9
3027: 集合的划分 摘要:```cpp #include using namespace std; long long s(int n,int k) //第十行返回的数值可能会超过int范围,需要用long long…… 题解列表 2023年01月09日 0 点赞 0 评论 916 浏览 评分:7.0