题解列表
蓝桥杯算法提高VIP-扫雷 (Java代码)
摘要:解题思路:尝试了6次还是格式错误,有大佬知道的告诉我一下为什么吗注意in.next是读取空格或者换行之前的,这题输入没有空格注意事项:参考代码:import java.util.Scanner;
p……
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<ctype.h>int main(){ int e = 0,d = 0,k = 0,q = 0; char a[50]……
蓝桥杯算法提高VIP-质数的后代 (Java代码)
摘要:解题思路:不知道哪里错了,有大佬帮忙看一下吗注意事项:参考代码:import java.util.ArrayList;
import java.util.Scanner;
public class……
蓝桥杯基础练习VIP-2n皇后问题 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int g[8][8];int num=0;int n;int hq[8],bq[……
蓝桥杯基础练习VIP-报时助手 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <cstdio>int main(){ char *num[]= {"zero","one","two","three","four","five……
IP判断 (C语言代码)
摘要:解题思路:goto 语句 可能我的有点麻烦注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ int……
C语言程序设计教程(第三版)课后习题6.11 (C++代码)
摘要:解题思路:注意事项: 在vs上编译器运用abs()函数是可以的,但是这个编译器会报错,可以包含头文件#include <cmath>,运用绝对值函数fabs();参考代码:#include <cm……
Tom数 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*每行一个整数(<2^32). 输出:每行一个输出,对应该数的各位数之和. */#include <stdio.h>int main(){ long int i,n,s……