算法1.2.1Point2D

//在单位正方形中生成N个随机点,然后计算两个点之间的最近距离 //不用重新画正方形,在画板上画 //java当中有Point2D这个类可以使用 import edu.princeton.cs.algs4.StdIn; import edu.princeton.cs.algs4.StdDraw; ...

2018-03-27 18:02:16

阅读数:148

评论数:0

JAVA核心技术卷一补充笔记

1、文件输入与输出 对文件进行读取Scanner in=new Scanner(Path.get("file.txt"),"UTF-8"); 读取文本文件时要知道它的字符编码,省略则为默认编码 写入文件,构造PrintWriter对象,构造器中提供文件名: ...

2018-03-21 22:43:53

阅读数:28

评论数:0

POJ 2506 Tiling

 Description In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles? Here is a sample tiling of a 2x17 rectangle. Input In...

2018-03-19 21:02:03

阅读数:26

评论数:0

POJ 1316 Self Numbers

 Description In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, defi...

2018-03-19 20:55:14

阅读数:18

评论数:0

cstring string string.h的区别

1.#include <cstring>   //不可以定义string s;可以用到strcpy等函数using   namespace   std;#include <string>   //可以定义str...

2018-03-18 10:27:16

阅读数:35

评论数:0

POJ1953 World Cup Noice

DescriptionBackground "KO-RE-A, KO-RE-A" shout 54.000 happy football fans after their team has reached the semifinals of the FIFA...

2018-03-14 21:30:02

阅读数:27

评论数:0

POJ 1029

DescriptionThe "Gold Bar"bank received information from reliable sources that in their last group of N coins exactly one coin is ...

2018-03-12 09:35:48

阅读数:41

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭