题解列表
The 3n + 1 problem (C语言代码)
摘要:#include <stdio.h>
int CL(int k)
{
int tmp=k;
int cnt=1;
while(tmp!=1&&tmp>0)
……
扫雷相关,矩阵相关,全局变量应用
摘要:参考代码:#include <stdio.h>
char map[100][100];
char res[100][100];
int n,m;
static int num=0;
……
校门外的树 (C语言代码)
摘要:解题思路:很简单,有树的为1,没有树的地方为0,废话不多说,看代码!!!注意事项:参考代码:#include <stdio.h>int main() { int M, N, i, j; i……
Minesweeper (C语言代码)
摘要:解题思路:首先将使用字符数组保存图案,使用另外一个数组“*”对应1,“.”对应0。在第二个数组中找周围八个方向1的个数,把各个方向的数字加起来就可以了,对应到第一个数组里面边角那些特殊的点要单独考虑。……
思路:先找出最大,最小的。再通过比较地址找出中间的;
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strcmp函数所在的函数库int main(){ char *min,*max,*mi……
蓝桥杯算法提高VIP-最大最小值 (Java代码)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
字符串的输入输出处理 (C语言代码)
摘要:#include<stdio.h>
int main(){
//freopen("D:/study/CStudy/蓝桥杯ACM训练/input.txt", "r", stdin);
cha……
母牛的故事 (C语言代码)
摘要:#include<stdio.h>
long count(int n)
{
long oldOneYearCow = 0;
long oldTwoYearCow = ……