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 评论 629 浏览 评分:0.0
蓝桥杯算法提高VIP-阶乘差-题解(C++代码) 摘要:注意测试数据过大,定义long long int 即可,用两个for循环分别求出n,m的阶乘在运算```cpp #include using namespace std; int main()…… 题解列表 2019年06月23日 0 点赞 0 评论 704 浏览 评分:0.0
二维数组的转置--直接明了好吧~ 摘要:## 写一个函数,使给定的一个3×3二维数组转置,即行列互换。 If you don't walk out, you will think that this is the whole worl…… 题解列表 2019年06月25日 0 点赞 0 评论 1152 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和-题解(C语言代码) 摘要: #include #include #include //定义结构体 typedef struct linklist { int re ;//实部 in…… 题解列表 2019年06月25日 0 点赞 0 评论 787 浏览 评分:0.0
Minesweeper -(用队列,bfs) 摘要:#### 解题思路: 宽度优先搜索(bfs)按照开始状态由近及远的顺序进行搜索,因此本题中我们可以采用该方法来求解。 ------------ 1. 本题中,状态仅仅是目前所在位置的坐标…… 题解列表 2019年06月25日 0 点赞 0 评论 525 浏览 评分:0.0
龟龟和兔兔的嬉戏追赶 摘要:首先题目没说清楚兔子在休息完之后,如果乌龟依旧在兔子的 t 米后面的话,是继续判断条件让乌龟走 s 秒,还是无条件的兔子走多一次。 其实经过测试,题目的测试样例是继续判断条件让乌龟走…… 题解列表 2019年06月26日 1 点赞 0 评论 688 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C++代码) 摘要:```cpp #include using namespace std; vector a,b; int n,m,c; int main() { cin>>n; for(int …… 题解列表 2019年06月26日 0 点赞 0 评论 501 浏览 评分:0.0
C语言训练-字符串正反连接-题解(C语言代码)简单易懂 摘要:#include #include int main() { char a[200],b[100]; int i,j=0,k; gets(a); k=strlen(a); f…… 题解列表 2019年06月26日 1 点赞 0 评论 852 浏览 评分:0.0
C语言训练-斐波纳契数列-题解(C语言代码)简单易懂 摘要:#include #include int main() { int a[100]={0}; int n,i,j,k; scanf("%d",&n); a[0]=1; a[1…… 题解列表 2019年06月26日 1 点赞 0 评论 976 浏览 评分:0.0
[编程入门]自定义函数求一元二次方程-题解(C语言代码) 摘要:#include #include int main() { float a,b,c,delta,x1,x2,m; scanf("%f%f%f",&a,&b,&c); delta=b…… 题解列表 2019年06月27日 0 点赞 0 评论 686 浏览 评分:0.0