为了解决多继承下的二义性而设计的vitrul继承class Base{public: Base(void); ~Base(void);};Base::Base(void){ printf("Base::Base():%p\n",this);}class ChildFirst : ...
分类:
编程语言 时间:
2014-07-16 21:29:45
阅读次数:
229
用于帮助新手理解ASCII码和字符型与整型的一段小程序,转载请注明出处例如:输入 I love you打印 73 32 108 111 118 101 32 121 111 117 13 10Program TransPro (input,output);Var judge,number:integ...
分类:
其他好文 时间:
2014-07-14 09:55:02
阅读次数:
179
DescriptionNchildren are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three gr...
分类:
其他好文 时间:
2014-07-13 23:45:13
阅读次数:
268
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18109
Accepted: 6871
Special Judge
Description
The game “The Pilots...
分类:
其他好文 时间:
2014-07-12 17:21:51
阅读次数:
169
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18080
Accepted: 6855
Special Judge
Description
The game “The Pilo...
分类:
其他好文 时间:
2014-07-09 11:30:00
阅读次数:
254
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18040
Accepted: 6841
Special Judge
Description
The game “The Pilots...
分类:
其他好文 时间:
2014-07-08 12:54:14
阅读次数:
131
One Person Game
Time Limit: 1 Second
Memory Limit: 32768 KB Special Judge
There is a very simple and interesting one-person game. You have 3 dice, namely
Die1, Die2 and Die3. Die1...
分类:
其他好文 时间:
2014-07-06 12:04:41
阅读次数:
167
Advanced Fruits
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1944
Accepted: 967
Special Judge
Description
The company "21st Century Fruits" has spec...
分类:
其他好文 时间:
2014-07-06 10:23:04
阅读次数:
166
也是最小生成树问题。输出剩余组成生成树的边。
Special Judge 答案不唯一。
不过很奇怪的是Kruskal 写的话。
C++提交要么刚好1000ms 要么就是TLE。
然后G++提交就是594ms。顺便求路过大神指点。
已经有很多的生成边了,用prim可能用时会少一点。
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-07-06 09:22:50
阅读次数:
168
又是个最小生成树问题。
Special Judge 。答案不唯一。所以样例看起来是错的。。。
又是忧伤的G++ AC。 提交C++ 就WA了。。。
又要顺道求过路大神看看。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#d...
分类:
Web程序 时间:
2014-07-05 22:53:37
阅读次数:
269