[编程入门]报数问题-约瑟夫问题进一步深化(链表) 摘要:上一篇,关于报数问题,我给大家提供了两种解决方法,其实还有一种方法便是链表。那么,今天,我们将报数问题进一步深化,来帮助大家更好的理解约瑟夫算法。 ------------ 约瑟夫环算法:…… 题解列表 2019年06月22日 0 点赞 0 评论 756 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换-题解(C++代码) 摘要:入门题 没什么好说的,小时,分,秒 h = n/3600; min = (n%3600)/60; miao = n%60; ```cpp #include using n…… 题解列表 2019年06月22日 0 点赞 0 评论 848 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C语言代码) 摘要:### 话不多说直接上代码: #include #include #include void chuli(int m ,int n,int* num…… 题解列表 2019年06月22日 0 点赞 0 评论 1078 浏览 评分:0.0
[编程入门]报数问题-题解(C语言代码) 摘要: #include #include int main(){ int n; scanf("%d",&n); int *n…… 题解列表 2019年06月23日 0 点赞 0 评论 895 浏览 评分:0.0
C语言三目运算符的使用 摘要:````c #include int MAX (int a,int b,int c); int main() { int a,b,c; scanf("%d %d %d",&…… 题解列表 2019年06月23日 0 点赞 0 评论 775 浏览 评分:0.0
C语言三目运算符的使用 摘要:```c #include int MAX (int a,int b,int c); int main() { int a,b,c; scanf("%d %d %d",&a…… 题解列表 2019年06月23日 0 点赞 0 评论 785 浏览 评分:0.0
蓝桥杯算法提高VIP-阶乘差-题解(C++代码) 摘要:注意测试数据过大,定义long long int 即可,用两个for循环分别求出n,m的阶乘在运算```cpp #include using namespace std; int main()…… 题解列表 2019年06月23日 0 点赞 0 评论 821 浏览 评分:0.0
二维数组的转置--直接明了好吧~ 摘要:## 写一个函数,使给定的一个3×3二维数组转置,即行列互换。 If you don't walk out, you will think that this is the whole worl…… 题解列表 2019年06月25日 0 点赞 0 评论 1311 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和-题解(C语言代码) 摘要: #include #include #include //定义结构体 typedef struct linklist { int re ;//实部 in…… 题解列表 2019年06月25日 0 点赞 0 评论 1017 浏览 评分:0.0
Minesweeper -(用队列,bfs) 摘要:#### 解题思路: 宽度优先搜索(bfs)按照开始状态由近及远的顺序进行搜索,因此本题中我们可以采用该方法来求解。 ------------ 1. 本题中,状态仅仅是目前所在位置的坐标…… 题解列表 2019年06月25日 0 点赞 0 评论 643 浏览 评分:0.0