1 实现接口的匿名类对象 public class TestUsb { public static void main(String[] args) { Computer c = new Computer(); c.doWork(new Printer()); //体现接口实现类的多态性 Flash...
分类:
其他好文 时间:
2014-12-03 17:03:50
阅读次数:
143
formal specification:In computer science, formal specifications are mathematically based techniques whose purpose are to help with the implementation ...
分类:
编程语言 时间:
2014-12-02 22:23:30
阅读次数:
158
AI URLs(maintained byZhi-Hua Zhou)北京大学视觉与听觉信息处理实验室北京邮电大学模式识别与智能系统学科复旦大学智能信息处理开放实验室IEEE Computer Society北京映象站点计算机科学论坛机器人足球赛模式识别国家重点实验室南京航空航天大学模式识别与神经计算...
分类:
Web程序 时间:
2014-12-02 22:09:55
阅读次数:
542
题目链接:点击打开链接
题意:
给定n只怪物的血量,x', y
第一个人每秒钟攻击x次,第二个人每秒钟攻击y次
每次攻击给所有存活的怪物造成一点伤害。
问每只怪物最后一击是谁打死的
思路:xy的最小公倍数内有个循环节,先跑出这个循环节(同时攻击时造成2点伤害,就在循环节里加2次both)
然后对于每只怪只要关心在循环节里坐落在哪个攻击点就好了
#include
using ...
分类:
其他好文 时间:
2014-12-02 15:13:47
阅读次数:
182
Ubuntu
Whether you are a new user planning to get your first computer, or someone migrating from Windows or Mac OS X, Ubuntu should be your first choice. It’s extremely easy to install and manage; ...
分类:
系统相关 时间:
2014-12-02 10:36:38
阅读次数:
200
Hackers’ Crackdown Input:Standard InputOutput:Standard OutputMiracle Corporations has a number of system services running in a distributed computer sy...
分类:
其他好文 时间:
2014-12-01 23:57:25
阅读次数:
350
DescriptionAmtel has announced that it will release a 128-bit computer chip by 2010, a 256-bit computer by 2020, and so on, continuing its strategy of...
分类:
其他好文 时间:
2014-11-30 13:43:28
阅读次数:
423
网上的方案我没有使用。对于只有一个网卡的主机来说,它的ip只有一个。可用shell命令获取到这个ip。官方的live555的live/groupsock/GroupsockHelper.cpp里面的函数ourIPAddress如下: 1 netAddressBits ourIPAddress(Us....
分类:
其他好文 时间:
2014-11-29 15:57:56
阅读次数:
2116
Well-regulated, dual-polarity power supplies find wide use in disk-drive, handheld-device, automotive, and notebook-computer applications. In these ap...
分类:
其他好文 时间:
2014-11-28 14:15:58
阅读次数:
315
Meta-Loopless SortsBackgroundSorting holds an important place in computer science. Analyzing and implementing various sorting algorithms forms an impo...
分类:
其他好文 时间:
2014-11-28 09:52:41
阅读次数:
265