转自http://blog.csdn.net/delphiwcdj/article/details/6234383问题 :如何用程序确认当前系统的存储模式(大端还是小端)?写一个C函数,若处理器是Big-endian的,则返回0;若是Little-endian的,则返回1。情况1:利用数组类型#in...
分类:
其他好文 时间:
2014-07-22 22:45:33
阅读次数:
196
C - Little Tiger vs. Deep Monkey
Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice HDU
4815
Description
A crowd of little animals is...
分类:
其他好文 时间:
2014-07-21 14:03:54
阅读次数:
233
C++版看到的,说是面试宝典里的题目,考察重载、覆盖、多态等概念,比较有代表性。今天早上远程辅导 Yan Wang 同学学习 Qt 时还想到了这个题目,如果你能够正确理解这个题目,说明对于 C++ 中的函数重载、覆盖、虚函数、多态等有了正确的认识。然后呢,再来学习 Qt 就顺风顺水了。...
分类:
编程语言 时间:
2014-07-21 11:45:56
阅读次数:
345
了解一个系统的性能通常是参考一些度量值(Metric),而如何计算出这些Metric就是我们要讨论的。Little Law(排队理论:利特儿法则)和Utilization Law是Performance Engineering(System Engineering的一部分)常用的法则,它们都是数学理论,因此可作为性能计算的理论依据。详细分析两个法则超出了我个人的知识范围,因此我将仅仅谈一下如何应用...
分类:
其他好文 时间:
2014-07-20 10:25:28
阅读次数:
290
https://grapeot.me/easy-and-cheap-cluster-building-on-aws.htmlThu 17 July 2014, byYan Wang|2 CommentsLinuxParallelgithubImageWhy?It often requires a l...
分类:
其他好文 时间:
2014-07-19 23:09:27
阅读次数:
310
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 11:30:29
阅读次数:
225
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 09:31:41
阅读次数:
238
Seek the Name, Seek the Fame
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 11602
Accepted: 5680
Description
The little cat is so famous, that many coup...
分类:
其他好文 时间:
2014-07-19 02:38:26
阅读次数:
204
Description
Tree Recovery
Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters i...
分类:
其他好文 时间:
2014-07-17 17:21:38
阅读次数:
253
题意为F束花插入V个瓶子里面,花要按编号递增顺序插,不同花插入不同的花瓶有不同的美观程度,要求最大的美观程度。一种f[i][j]表示第i束花插入第[j]个瓶子里面所获得的最大的美观程度。则状态转移函数可以表示为f[i][j]=max(f[i-1][k]+a[i][j])其中i-1#include #...
分类:
其他好文 时间:
2014-07-13 23:50:22
阅读次数:
323