1257: 超级楼梯 摘要:```cpp #include using namespace std; int total; int sum(int step,int m) { if(step>m) …… 题解列表 2023年02月03日 0 点赞 0 评论 696 浏览 评分:9.9
1256: 诡秘的余数 ```cpp#include#includeusingnamespacestd;intmain(){charx[2000];intn;while(cin>>x>>n){intans=0;for(inti=0;i 题解列表 2023年02月03日 0 点赞 0 评论 728 浏览 评分:9.9
1255: 蓝桥杯算法提高-能量项链 ```cpp#include#includeusingnamespacestd;typedeflonglongLL;namespaceIO{inlineLLread(){LLo=0,f=1;charc=getchar();while(c>'9'||c='0'&&c 题解列表 2023年02月03日 0 点赞 0 评论 696 浏览 评分:9.9
1254: 考试排名 ```cpp#include#includeusingnamespacestd;typedefstructBSTree*BST;structBSTree{charname[15];intAC,time;BSTLeft,Right;};BSTInsert(BSTT, 题解列表 2023年02月03日 0 点赞 0 评论 736 浏览 评分:9.9
1253: 老王赛马 ```cpp#include#includeusingnamespacestd;intmain(){intn,i,j,a[1024],b[1024],x,count;while(cin>>n&&n){count=0;for(i=0;i>x;a[i]=x;}for(j=0;j>x;b[j]=x;}sor 题解列表 2023年02月03日 0 点赞 0 评论 676 浏览 评分:9.9
1252: 统计立方数 摘要:```cpp #include using namespace std; bool check(int n) { for(int i=1;i*i*i>n&&n) i…… 题解列表 2023年02月03日 0 点赞 0 评论 545 浏览 评分:6.0
编写题解 2842: 大整数减法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int maxmine= 210; int a[maxmine]…… 题解列表 2023年02月03日 0 点赞 1 评论 657 浏览 评分:9.9
和前面的全排列一样 答案对 提交为啥一直是编译错误 求大哥 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int b[100000];int a[100000];int n;int inde…… 题解列表 2023年02月02日 0 点赞 0 评论 756 浏览 评分:0.0
C语言-报数问题 简单数组法 解题思路:题设要求输入一个正整数n,即表示n个人围成一圈,且分别编号1~n,由编号为1的人开始从1到3报数,报到3的人退出,那么最后只会留下一个人,求这个人的编号。这里所有人是围成一圈的,所以用基本的数组,将编号被3整除的人去掉肯定是行不通的, 题解列表 2023年02月02日 0 点赞 0 评论 620 浏览 评分:9.9
C语言-进制转换 利用栈来进行进制转换 摘要:解题思路:大家都知道C语言中可以直接通过格式输出来达到对一个数进行转换进制的目的,最近在学习栈的过程中,发现也可以使用栈来转换进制,没有什么特别的亮点,纯属写着玩玩,嘿嘿。 题目要求输入…… 题解列表 2023年02月02日 0 点赞 0 评论 659 浏览 评分:9.9