05 2017 档案
第一个java的小东西
摘要:第一次自己写的一个java的小东西,毕竟自己第一次写的,其中可谓是历经艰难,最后总结下来就是java实在是不适合写界面化的东西代码量比较大,这还不是最关键的,最关键的是控件的位置实在是太难控制了。 这是第一个界面的时候对于一些信息的保存 第二个界面的时候相当于是那个随机读取出文本文档中的某条信息 阅读全文
posted @ 2017-05-28 18:01 渡…… 阅读(280) 评论(0) 推荐(0)
最短路算法详解(Dijkstra,Floyd)
摘要:最短路径 在一个无权的图中,若从一个顶点到另一个顶点存在着一条路径,则称该路径长度为该路径上所经过的边的数目,它等于该路径上的顶点数减1。由于从一个顶点到另一个顶点可能存在着多条路径,每条路径上所经过的边数可能不同,即路径长度不同,把路径长度最短(即经过的边数最少)的那条路径叫作最短路径或者最短距离 阅读全文
posted @ 2017-05-26 07:10 渡…… 阅读(1488) 评论(0) 推荐(0)
河南省第十届省赛 Plumbing the depth of lake (模拟)
摘要:title: Plumbing the depth of lake 河南省第十届省赛 题目描述: There is a mysterious lake in the north of Tibet. As the sun shines, the surface of the lake is color 阅读全文
posted @ 2017-05-22 09:00 渡…… 阅读(191) 评论(0) 推荐(0)
河南省第十届省赛 Binary to Prime
摘要:题目描述: To facilitate the analysis of a DNA sequence, a DNA sequence is represented by a binary number. The group of DNA 1 has discovered a great new wa 阅读全文
posted @ 2017-05-22 08:52 渡…… 阅读(157) 评论(0) 推荐(0)
河南省第十届省赛 最小秘钥
摘要:title: 最小秘钥 河南省第十届省赛 tags: [省赛] 题目描述: 在中国近代史上,暂编军绝对是一支能打硬仗,大名鼎鼎的行动部队。“一二八”上海抗战,暂编军就曾打得小日本四易主帅。 月 号,暂编 军计划组成一个行动大队,派出N名队员潜伏在 地,发动一次大规模的巷战行动。每名队员有自己的代号A 阅读全文
posted @ 2017-05-22 08:41 渡…… 阅读(162) 评论(0) 推荐(0)
河南省第十届省赛 谍报分析
摘要:title: 谍报分析 河南省第十届省赛 tags: [省赛] 题目分析: “八一三”淞沪抗战爆发后, 几次准备去上海前线视察和指挥作战。但都因为宁沪之间的铁路和公路遭到了敌军的严密封锁,狂轰滥炸,一直未能成行。 特科组织,其主要任务是保卫的安全,了解和掌握敌方的动向。经过一段时间的监听,谍报组获取 阅读全文
posted @ 2017-05-22 08:28 渡…… 阅读(198) 评论(0) 推荐(0)
河南省第十届省赛 情报传递
摘要:title: 情报传递 河南省第十届省赛 tags: [省赛] 题目描述: 抗日战争时期,在国共合作的大背景下,中共不断发展壮大,其情报工作也开始由获取警报性、保卫性信息,向获取军政战略性情报转变。各系统情报组织遵循"荫蔽精干,长期埋伏,积蓄力量,以待时机"的隐蔽战线工作方针,开展了卓有成效的情报工 阅读全文
posted @ 2017-05-22 08:13 渡…… 阅读(199) 评论(0) 推荐(0)
河南省第十届省赛 年终奖金
摘要:title: 年终奖金 河南省第十届省赛 tags: [dp] 题目描述: 公司承接了N个项目需要年底完成,每个项目有一定的难度系数。由于项目太多了,需要招聘大量的技术人员。要求每个技术人员至少完成K个项目。 考虑到有些项目之间相似性以及项目的难易程度,为了避免某些员工只挑选轻松项目,CEO提出了一 阅读全文
posted @ 2017-05-22 07:40 渡…… 阅读(248) 评论(0) 推荐(0)
河南省第十届省赛 Intelligent Parking Building
摘要:title: Intelligent Parking Building 河南省第十届省赛 tags: [模拟,省赛] 题目描述: There is a new revolution in the parking lot business: the parking building. The conc 阅读全文
posted @ 2017-05-22 07:32 渡…… 阅读(257) 评论(0) 推荐(0)
滑杆(JSlider)和进度指示条(JProgressBar) 的使用
摘要:```java package first; import javax.swing.*; import javax.swing.border.TitledBorder; import java.awt.*; import java.awt.event.*; class P extends JPanel { JProgressBar pb=new JProgressBar();///定义进度指示... 阅读全文
posted @ 2017-05-15 21:09 渡…… 阅读(522) 评论(0) 推荐(0)
卡片选项页面 JTabbedPane 的使用
摘要:```java package first; import javax.swing.*; import java.awt.*; import java.awt.event.*; class TtpDemo extends JFrame { TtpDemo() { // TODO Auto-generated constructor stub super("卡片选项页面示例"); se... 阅读全文
posted @ 2017-05-15 20:46 渡…… 阅读(371) 评论(0) 推荐(0)
下拉列表 JComboBox 的使用
摘要:下拉列表(JComboBox)通常显示一个可选条目,允许用户在一个下拉列表中选择不同条目,用户也可以在文本区内输入选择项。 阅读全文
posted @ 2017-05-15 09:19 渡…… 阅读(1099) 评论(0) 推荐(0)
单选按钮 JradioButton 和复选框 JcheckBox 的使用
摘要:```java package first; import javax.swing.*; import java.awt.*; import java.awt.event.*; class BRTest extends JFrame implements ItemListener,ActionListener { JTextField text=new JTextField(15);///文本... 阅读全文
posted @ 2017-05-14 18:22 渡…… 阅读(327) 评论(0) 推荐(0)
标签 JLable 类
摘要:标签JLable上可以添加图像,当鼠标停留在标签上时,可以显示一段提示文字。 阅读全文
posted @ 2017-05-14 17:15 渡…… 阅读(219) 评论(0) 推荐(0)
文本区 JTextArea 的使用
摘要:文本区JTextArea是对多行文本进行编辑的组件,用空字符来控制文本的格式。eg:"\n"为换行,"\t"为插入一个Tab字符。 文本去JTextArea的常用方法: append(String str);///方法,向文本区追加文本内容 insert(String str,int pos);// 阅读全文
posted @ 2017-05-11 09:27 渡…… 阅读(9879) 评论(0) 推荐(0)
密码框JPasswordField 的使用
摘要:JPasswordField的主要方法为setEchoChar(char c),其中的字符C为回显字符。 阅读全文
posted @ 2017-05-11 08:55 渡…… 阅读(1216) 评论(2) 推荐(0)
JHDU 2601 An easy problem (数学 )
摘要:title: An easy problem 数学 杭电2601 tags: [数学] 题目链接 Problem Description When Teddy was a child , he was always thinking about some simple math problems , 阅读全文
posted @ 2017-05-04 21:11 渡…… 阅读(356) 评论(0) 推荐(0)
HDU 2554 N对数的排列问题 ( 数学 )
摘要:" 题目链接 " Problem Description 有N对双胞胎,他们的年龄分别是1,2,3,……,N岁,他们手拉手排成一队到野外去玩,要经过一根独木桥,为了安全起见,要求年龄大的和年龄小的排在一起,好让年龄大的保护年龄小的,然后从头到尾,每个人报告自己的年龄,就得到了一个年龄的序列。比如有4 阅读全文
posted @ 2017-05-04 20:57 渡…… 阅读(229) 评论(0) 推荐(0)
HDU 2105 The Center of Gravity (数学)
摘要:" 题目链接 " Problem Description Everyone know the story that how Newton discovered the Universal Gravitation. One day, Newton walked leisurely, suddenly, 阅读全文
posted @ 2017-05-03 17:41 渡…… 阅读(246) 评论(0) 推荐(0)
HDU 2089 不要62 (数学)
摘要:" 题目链接 " Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含 阅读全文
posted @ 2017-05-03 17:08 渡…… 阅读(258) 评论(0) 推荐(0)
HDU 2036 改革春风吹满地 (数学)
摘要:" 题目链接 " Problem Description “ 改革春风吹满地, 不会AC没关系; 实在不行回老家, 还有一亩三分地。 谢谢!(乐队奏乐)” 话说部分学生心态极好,每天就知道游戏,这次考试如此简单的题目,也是云里雾里,而且,还竟然来这么几句打油诗。 <! more 好呀,老师的责任就是 阅读全文
posted @ 2017-05-03 16:00 渡…… 阅读(197) 评论(0) 推荐(0)
HDU 1840 Equations (数学)
摘要:title: Equations 数学 杭电1840 tags: [数学] 题目链接 Problem Description All the problems in this contest totally bored you. And every time you get bored you li 阅读全文
posted @ 2017-05-03 15:09 渡…… 阅读(239) 评论(0) 推荐(0)
HDU 1798 Tell me the area (数学)
摘要:" 题目链接 " Problem Description There are two circles in the plane (shown in the below picture), there is a common area between the two circles. The prob 阅读全文
posted @ 2017-05-03 14:39 渡…… 阅读(226) 评论(0) 推荐(0)
HDU 1162 Eddy's picture (最小生成树 普里姆 )
摘要:" 题目链接 " Problem Description Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures i 阅读全文
posted @ 2017-05-02 14:17 渡…… 阅读(161) 评论(0) 推荐(0)
HDU 1141 Factstone Benchmark (数学 )
摘要:" 题目链接 " Problem Description Amtel has announced that it will release a 128 bit computer chip by 2010, a 256 bit computer by 2020, and so on, continui 阅读全文
posted @ 2017-05-02 13:33 渡…… 阅读(508) 评论(0) 推荐(0)
POJ 2395 Out of Hay (prim)
摘要:题目链接 Description The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey t 阅读全文
posted @ 2017-05-01 10:01 渡…… 阅读(218) 评论(0) 推荐(0)