摘要:
Description"Hike on a Graph" is a game that is played on a board on which an undirected graph is drawn. The graph is complete and has all loops, i.e. ... 阅读全文
摘要:
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located... 阅读全文
摘要:
DescriptionRoger Wilco is in charge of the design of a low orbiting space station for the planet Mars. To simplify construction, the station is made u... 阅读全文
摘要:
这个代码可以帮助理解java是如何获取系统字体并设置文字字体: 1 import java.awt.*; 2 import java.awt.event.*; 3 4 import javax.swing.JComboBox; 5 import javax.swing.JFrame; 6 impo... 阅读全文
摘要:
想用java做一个像windows里一样的txt编辑软件,涉及到字体设置选项卡,在网上找了很久都没找到,就生气啦自己写一个,现在贴这里分享一下,下次再遇到这样的问题就不用自己亲自打代码啦! 1 package 实验; 2 3 import java.awt.*; 4 import java... 阅读全文
摘要:
本来是Java课做一个仿windows记事本的实验,后来突然脑子一热,结果就给它加了一个编译运行Java文件的功能。本工程总共大约3000行代码,基本上把所学的java界面、文件、控件的功能都包含在内啦。除此之外俺还脑子一热给这个文本编辑器加了个可以编译运行java文件的功能,但是由于多线程还不咋滴... 阅读全文
摘要:
DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smalle... 阅读全文
摘要:
Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a... 阅读全文
摘要:
DescriptionWilly the spider used to live in the chemistry laboratory of Dr. Petro. He used to wander about the lab pipes and sometimes inside empty on... 阅读全文
摘要:
DescriptionIn a wireless network with multiple transmitters sending on the same frequencies, it is often a requirement that signals don't overlap, or ... 阅读全文
摘要:
大菲波数Problem DescriptionFibonacci数列,定义如下:f(1)=f(2)=1f(n)=f(n-1)+f(n-2) n>=3。计算第n项Fibonacci数值。Input输入第一行为一个整数N,接下来N行为整数Pi(1 0) {16 int i... 阅读全文
摘要:
Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如:... 阅读全文
摘要:
DescriptionSquare Ice is a two-dimensional arrangement of water molecules H2O, with oxygen at the vertices of a square lattice and one hydrogen atom b... 阅读全文
摘要:
DescriptionDid you know that you can use domino bones for other things besides playing Dominoes? Take a number of dominoes and build a row by standing... 阅读全文
摘要:
DescriptionIt is always very nice to have little brothers or sisters. You can tease them, lock them in the bathroom or put red hot chili in their sand... 阅读全文