G - Not so Mobile Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluDescriptionBefore being an ubiquous communications gadget, a mobile wa...
分类:
其他好文 时间:
2015-03-08 14:14:54
阅读次数:
151
场景设置
Boy 有一束鲜花要送给 Girl,但是又不好意思送,因此寻找Proxy将鲜花转交给Girl。
首先定义鲜花持有者接口,实现该接口的类都具有送花的能力:interface FlowerKeeper{
public void sendFlower();
}然后定义Boy类,能够拥有鲜花并且有送鲜花的能力(只是不亲自送而已):class Boy implements FlowerK...
分类:
其他好文 时间:
2015-03-08 13:03:47
阅读次数:
102
For almost 26 years, even a trivial boy like me, have made over 100 and listened uncountable speeches, most of which are boring and tedious. Some pro....
分类:
其他好文 时间:
2015-03-08 11:44:24
阅读次数:
153
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin...
分类:
其他好文 时间:
2015-03-07 17:11:22
阅读次数:
124
About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt...
分类:
其他好文 时间:
2015-03-07 15:46:24
阅读次数:
167
第8章 IO库
1. IO类继承关系:
2. 查询iostream流状态P280-281
V是一个int,当我们输入1, ‘r’,或Ctrl+z 时的输出分别如下:
cin.clear()可以清楚所有的错误位,使good()返回true.
3. fstream对文件的读写P284
初始创建读入和写出fstream对...
分类:
编程语言 时间:
2015-03-07 06:19:07
阅读次数:
196
Distinguished judges, Good morning/afternoon! I’m ***, a graduator from Jiangxi University of Finance and Economics. University is called “the crown ....
分类:
其他好文 时间:
2015-03-06 20:27:58
阅读次数:
109
1639. Chocolate 2
Time limit: 1.0 second
Memory limit: 64 MB
Little Boy is mad at Karlsson, who ate all the sweets in the flat and even went to the neighbours to eat their sweets too. Now...
分类:
其他好文 时间:
2015-03-06 15:55:20
阅读次数:
124
??
Modeling New Semantics
新语义建模
When you create a model using UML, you work within the rules the UML lays down. That’s
a good thing, because it means that you can communicate your intent...
分类:
其他好文 时间:
2015-03-06 09:41:51
阅读次数:
165
Constraints
约束
Everything in the UML has its own semantics. Generalization (usually, if you know what’s
good for you) implies the LisKov substitution principle, and multiple associati...
分类:
其他好文 时间:
2015-03-06 09:41:44
阅读次数:
171