DNA (Java代码) 摘要:解题思路:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner …… 题解列表 2017年12月17日 3 点赞 0 评论 1221 浏览 评分:0.0
字符串的输入输出处理 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.io.BufferedReader; import java.io.InputStreamReader; public class Mai…… 题解列表 2017年12月17日 3 点赞 2 评论 1783 浏览 评分:8.0
优质题解 Manchester- Minesweeper (“Minesweeper” and“Sweepmine”) 摘要:解题思路:因为,测试数据有的雷块多,有的雷块少;这里加个判断使得函数调用最少:雷块少,调用用轰炸法,若安全块少,调用用排雷法;参考代码:#include <stdio.h> void Mineswe…… 题解列表 2017年12月17日 35 点赞 14 评论 3738 浏览 评分:9.7
Manchester- Minesweeper (“Minesweeper”) 摘要:解题思路:分析这个问题,可以得到:整个雷区内的地雷块占少数,而安全块占多数;通常思路为:看一块是不是地雷,不是的话,查找以它为中心矩形区域的地雷数,存入这一块;这个方法,倒过来看,用地雷,去炸以它为中…… 题解列表 2017年12月17日 21 点赞 0 评论 1593 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>float he(int a);float pingfanghe(int b);float daoshu…… 题解列表 2017年12月17日 0 点赞 0 评论 701 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:在定义阶乘、阶乘和的时候要用long long型,用int会溢出。参考代码:#include<stdio.h>long long jiecheng(int n);long long…… 题解列表 2017年12月17日 0 点赞 0 评论 909 浏览 评分:0.0
优质题解 Manchester-台球碰撞-(附带图解) 摘要:解题思路:把台球看做质点(台球坐标不变,球桌坐标各个边界向里收缩R,得到新的球桌);假设没边界,求出小球沿着直线的最后坐标x,y;x,y在球桌内,返回输出否则;判断小球与哪个边界相撞(判断方法有多中,…… 题解列表 2017年12月17日 75 点赞 10 评论 4010 浏览 评分:9.1
【出圈】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; while(scanf("%d%d",&n,&m)!=EOF){ int x[n],i; …… 题解列表 2017年12月17日 0 点赞 0 评论 709 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int letter=0,digit=0,space=0,others=0;void count(char str[]){int i;…… 题解列表 2017年12月17日 0 点赞 0 评论 896 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>int main(){ …… 题解列表 2017年12月17日 0 点赞 0 评论 706 浏览 评分:0.0