3021: Pell数列 摘要:```cpp #include using namespace std; int a[1000005]={0,1,2},k=0,n; int main() { cin>>n; …… 题解列表 2023年01月09日 0 点赞 2 评论 566 浏览 评分:9.9
3022: 流感传染 摘要:```cpp #include using namespace std; struct node { string s[105]; }; const int zl[4][2]={…… 题解列表 2023年01月09日 0 点赞 0 评论 359 浏览 评分:9.9
3023: 移动路线 摘要:```cpp #include using namespace std; int dp[20][20]; int main() { int n,m; cin>>n>>m;…… 题解列表 2023年01月09日 0 点赞 0 评论 365 浏览 评分: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 评论 438 浏览 评分: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 评论 399 浏览 评分:9.9
进制转化的运用 摘要:解题思路:写出一个进制转化函数,利用for循环暴力解答注意事项:例如121这个十进制的数,那么找它存在的进制最小从3开始找参考代码:def nijinzhishu(n,i):#i进制的n转为十进制 …… 题解列表 2023年01月09日 0 点赞 0 评论 321 浏览 评分: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 评论 480 浏览 评分:9.9
第n小的鸡数=_=|| 摘要:解题思路: 这个有点懂西,不过身为ikun的我只用了两分钟就想到了一个好办法: 就是先用一个数组把所有需要的质数存储起来,这样我们需要第几个质数,我们就拿出第几个元素即可,…… 题解列表 2023年01月09日 0 点赞 0 评论 522 浏览 评分: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 评论 485 浏览 评分: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 评论 357 浏览 评分:9.9