自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 算法1.2.1Point2D

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

2018-03-27 18:02:16 1167

原创 JAVA核心技术卷一补充笔记

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

2018-03-21 22:43:53 260

原创 POJ 2506 Tiling

DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?Here is a sample tiling of a 2x17 rectangle. InputInput is a sequence of lines, each line containing an

2018-03-19 21:02:03 175

原创 POJ 1316 Self Numbers

DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n. (T

2018-03-19 20:55:14 127

转载 cstring string string.h的区别

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

2018-03-18 10:27:16 434

原创 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 World Cup in their home country. But although their excitement is re...

2018-03-14 21:30:02 270

原创 POJ 1029

DescriptionThe "Gold Bar"bank received information from reliable sources that in their last group of N coins exactly one coin is false and differs in weight from other coins (while all other coins a...

2018-03-12 09:35:48 534

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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