字符逆序 (C语言代码)数组原地逆置 摘要:参考代码:#include <stdio.h> #include <string.h> char str[101]; int main() { gets(str); i…… 题解列表 2019年01月01日 0 点赞 0 评论 1541 浏览 评分:0.0
先全部加一再判断是否为z,Z 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; gets(a); for(int i=0;a[i]!='\0';i++…… 题解列表 2019年01月01日 0 点赞 0 评论 847 浏览 评分:0.0
字符串输入输出 摘要:解题思路:要输入字符串中有空格、制表符,用get函数;要输入字符串中要忽略空格、制表符,用scanf函数,两者都以回车结束。(前后有两个连续scanf函数,上一个scanf用以结束的回车符会留给下一个…… 题解列表 2019年01月01日 0 点赞 0 评论 1007 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include <stdio.h> int CL(int k) { int tmp=k; int cnt=1; while(tmp!=1&&tmp>0) …… 题解列表 2019年01月01日 0 点赞 0 评论 510 浏览 评分:0.0
扫雷相关,矩阵相关,全局变量应用 摘要:参考代码:#include <stdio.h> char map[100][100]; char res[100][100]; int n,m; static int num=0; …… 题解列表 2019年01月01日 0 点赞 0 评论 1209 浏览 评分:0.0
校门外的树 (C语言代码) 摘要:解题思路:很简单,有树的为1,没有树的地方为0,废话不多说,看代码!!!注意事项:参考代码:#include <stdio.h>int main() { int M, N, i, j; i…… 题解列表 2019年01月01日 1 点赞 0 评论 908 浏览 评分:0.0
Minesweeper (C语言代码) 摘要:解题思路:首先将使用字符数组保存图案,使用另外一个数组“*”对应1,“.”对应0。在第二个数组中找周围八个方向1的个数,把各个方向的数字加起来就可以了,对应到第一个数组里面边角那些特殊的点要单独考虑。…… 题解列表 2019年01月01日 0 点赞 0 评论 1188 浏览 评分:0.0
思路:先找出最大,最小的。再通过比较地址找出中间的; 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strcmp函数所在的函数库int main(){ char *min,*max,*mi…… 题解列表 2019年01月02日 0 点赞 0 评论 895 浏览 评分:0.0
蓝桥杯算法提高VIP-最大最小值 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2019年01月02日 0 点赞 0 评论 861 浏览 评分:0.0
字符串的输入输出处理 (C语言代码) 摘要:#include<stdio.h> int main(){ //freopen("D:/study/CStudy/蓝桥杯ACM训练/input.txt", "r", stdin); cha…… 题解列表 2019年01月02日 0 点赞 0 评论 1358 浏览 评分:0.0