用switch解题熟悉switch 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; int n,y; scanf("%d",&x); if(x<1) n = 1; if(x>=1 &…… 题解列表 2021年07月22日 0 点赞 0 评论 376 浏览 评分:0.0
数据结构-稀疏矩阵快速转置(Java代码) 摘要:解题思路:1.首先先将原始数组转化为稀疏矩阵2.在稀疏矩阵中,交换每一行的第一列和第二列,第三列不变,也就是交换了原始矩阵的行列3.建立一个新的数组4.将稀疏矩阵中的值放入新的数组中即可注意事项:首先…… 题解列表 2021年07月22日 0 点赞 0 评论 371 浏览 评分:9.9
Sine之舞(C++) 摘要: #include #include using namespace std; void An(int n,int m){ if(n==…… 题解列表 2021年07月22日 0 点赞 0 评论 311 浏览 评分:0.0
弟弟的作业 (Python代码) 摘要:解题思路:这道题其实就是输入字符串,而且输入的字符串是一条算式,既然是一条算式,则必定有等于号'=',所以首先先根据这一性质进行将字符串进行划分为有两个元素的列表,也就是列表中第零个元…… 题解列表 2021年07月22日 0 点赞 0 评论 448 浏览 评分:7.3
递归倒置字符数组 摘要: #include #include using namespace std; void strF(int l,int r,string &s){ …… 题解列表 2021年07月22日 0 点赞 0 评论 242 浏览 评分:0.0
用switch语句解决此类排比性问题 摘要:解题思路:运用switch语句解题,不用if-else注意事项:switch(表达式){case 取值1: 执行语句; break;case 取值2: 执行语句; break;……default: 执…… 题解列表 2021年07月22日 0 点赞 1 评论 1113 浏览 评分:9.9
蓝桥杯算法提高VIP-递归倒置字符数组,简洁C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a[100]; int i,j,k,t,l; scanf("%d%s",&k…… 题解列表 2021年07月22日 0 点赞 0 评论 494 浏览 评分:9.0
蓝桥杯2015年第六届真题-穿越雷区 (简单的BFS) 摘要:# 穿越雷区 ## 题目要求 找出一条最短路径所需要的步数,使得战车可以从A点顺利到达B点,其中相邻两次坐标点的能量区不能相同,A、B点没有能量区。 ## 思路分析 类似迷宫这…… 题解列表 2021年07月22日 0 点赞 0 评论 557 浏览 评分:9.9
春夏秋冬季节判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n==3||n==4||n==5) printf("Sp…… 题解列表 2021年07月22日 0 点赞 0 评论 353 浏览 评分:6.0
c语言—————————— 摘要:解题思路:注意事项:参考代码#include "stdio.h"int main() { int people[100]; int n, j = 0,count=0; scanf("%d", &n);…… 题解列表 2021年07月21日 0 点赞 0 评论 247 浏览 评分:0.0