上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页

2011年1月18日

摘要: http://poj.org/problem?id=1111Image PerimetersTime Limit:1000MSMemory Limit:10000KDescriptionTechnicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one useful measur 阅读全文
posted @ 2011-01-18 20:19 yming0221 阅读(179) 评论(0) 推荐(0)

2011年1月17日

摘要: 最近刚刚学习回溯算法,标记一下,体会回溯的内涵http://poj.org/problem?id=1321棋盘问题Time Limit: 1000MSMemory Limit: 10000KDescription在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= 阅读全文
posted @ 2011-01-17 18:58 yming0221 阅读(163) 评论(0) 推荐(0)

2011年1月16日

摘要: http://poj.org/problem?id=1154第一次使用回溯+DFS,学习LETTERSTime Limit:1000MSMemory Limit:10000KDescriptionA single-player game is played on a rectangular board divided in R rows and C columns. There is a single uppercase letter (A-Z) written in every position in the board.Before the begging of the game ther 阅读全文
posted @ 2011-01-16 22:05 yming0221 阅读(190) 评论(0) 推荐(0)

2011年1月13日

摘要: 我的Ubuntu网络图标现在显示成“无线网络”图标,不是“两个电脑”。而且在“编辑连接”的“有线”那栏里只有几个虚拟机的网卡配置,没有eth0。用ifconfig能够显示出eth0,机器也能正常上网。Linux 里面有两套管理网络连接的方案:/etc/network/interfaces(/etc/init.d/networking)和Network- Manager。两套方案是冲突的,不能同时共存。第一套方案适用于没有X的环境,如:服务器或者那些完全不需要改动连接的场合。第二套方案使用于有桌面的环境,特别是笔记本,搬来搬去,网络连接情况随时会变的。他们两个为了避免冲突,又能共享配置,就有了下 阅读全文
posted @ 2011-01-13 15:50 yming0221 阅读(287) 评论(0) 推荐(0)

2011年1月12日

摘要: http://poj.org/problem?id=3095简单字符串模拟Linear PachinkoTime Limit:1000MSMemory Limit:65536KDescriptionThis problem is inspired byPachinko, a popular game in Japan. A traditional Pachinko machine is a cross between a vertical pinball machine and a slot machine. The player launches small steel balls to t 阅读全文
posted @ 2011-01-12 20:40 yming0221 阅读(133) 评论(0) 推荐(0)

2011年1月11日

摘要: http://poj.org/problem?id=3626Mud PuddlesTime Limit:1000MSMemory Limit:65536KDescriptionFarmer John is leaving his house promptly at 6 AM for his daily milking of Bessie. However, the previous evening saw a heavy rain, and the fields are quite muddy. FJ starts at the point (0, 0) in the coordinate p 阅读全文
posted @ 2011-01-11 20:42 yming0221 阅读(162) 评论(0) 推荐(0)

2011年1月10日

摘要: http://poj.org/problem?id=2845、刚刚开始用的转换方法,例子都过了但是总是WA,现在还不清楚哪里的问题然后用了高精度加法AC,但是注意输出的时候前导0和结果为0的情况01000001Time Limit:1000MSMemory Limit:65536KDescriptionAdding binary numbers is a very simple task, and very similar to the longhand addition of decimal numbers. As with decimal numbers, you start by add 阅读全文
posted @ 2011-01-10 13:18 yming0221 阅读(252) 评论(0) 推荐(0)

2011年1月8日

摘要: 嗯,今天清理一下系统,使用了一个命令行,可能对其他人有参考价值dpkg -l |grep "^rc"|awk '{print $2}' |xargs aptitude -y purge用途:删除已经删除的软件包的残留配置文件。因为 debian 中 remove 包不删除配置文件,purge 才能清除,但根据依赖关系自动清除都是 remove,在加上自己失手操作,所以用得时间长了,难免残留很多没必要的配置文件,比较烦,于是有了上述操作。 阅读全文
posted @ 2011-01-08 13:39 yming0221 阅读(674) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=2895Best SMS to TypeTime Limit:1000MSMemory Limit:65536KDescriptionUsing SMS today is more than a pleasing hobby. As the number of messages one sends through this service grows, the need to type them fast is better felt. Sometimes, one wonders how fast a message can be type 阅读全文
posted @ 2011-01-08 13:07 yming0221 阅读(196) 评论(0) 推荐(0)

2011年1月7日

摘要: MVC是一种开发程序的模式,把显示,控制和模型分开。M代表模型,V代表视图,C代表控制器。Struts是采用MVC模式开发WEB程序的一种实现框架,利用它开发程序更加高效和方便。ORM是对象关系映射,实现了程序对象到关系数据库数据的映射,允许开发者采用面向对象的方式操作数据库。Hibernate是一种ORM实现框架,不仅管理JAVA类到数据库表的映射,还提供了数据查询和获取数据的方法,利用它使得程序访问数据库更容易。Spring是一个开源的控制反转IOC和面向切面AOP的容器框架。IoC/DI控制反转/依赖注入,将组件依赖关系的创建和管理置于程序外部,不必在代码中维护对象之间的依赖关系,只需在 阅读全文
posted @ 2011-01-07 16:34 yming0221 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页

导航