/*
八枚银币
在八枚外观相同的硬币中,有一枚是假币,并且已知假币与真币的重量不同,但不知道假币与真币相比较轻还是较重。可以通过一架天平来任意比较两组硬币,设计一个高效的算法来检测出这枚假币。 检测出假硬币所在位置以及该硬币是轻还是重 输入:
第一行输入八枚硬币的重量,分别用空格隔开
输出:
第二行输出假币在这八枚硬币中的位...
分类:
其他好文 时间:
2016-05-07 10:09:20
阅读次数:
179
Recently,I have been reading the book The C Progrmming Lanuage(2nd Edition),which written by Dennis M.Ritchie and
Brian W.Kernighan.The are many useful and elegant exercises in the book.Here is my s...
分类:
其他好文 时间:
2016-05-06 15:42:12
阅读次数:
152
WBS exercise: ?确定你的团队项目: 我们团队的项目就是要做一个便于管理代码的小软件,可以方便程序员对自己以前所写的或者借鉴过的感觉对自己有用的代码进行快速的查找和读取以及修改。我们团队暂且为这个软件取名为“代码管家”。 ?项目经理(PM),团队成员 项目经理: 经过我们小组的再三考虑, ...
分类:
其他好文 时间:
2016-04-27 17:13:26
阅读次数:
137
Description: Well met with Fibonacci bigger brother, AKA Tribonacci. As the name may already reveal, it works basically like a Fibonacci, but summing ...
分类:
其他好文 时间:
2016-04-25 22:39:53
阅读次数:
259
Description It is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens ...
分类:
其他好文 时间:
2016-04-11 22:16:35
阅读次数:
230
#include "RailSystem.h" void RailSystem::reset(void) { // TODO: reset the data objects of the // City objects' contained in cities map<string, City*>: ...
分类:
编程语言 时间:
2016-04-11 20:36:01
阅读次数:
264
PRML exercise 1.8: To derive mean: change of variable z = x - u, use symmetry To derive variance: differentiate normaliation condition (integrate to 1 ...
分类:
其他好文 时间:
2016-04-11 07:02:03
阅读次数:
132
// parts.h #ifndef _PARTS_H_#define _PARTS_H_ #include <vector>#include <map>#include <string>#include <iostream> using namespace std; //************* ...
分类:
编程语言 时间:
2016-04-06 23:08:27
阅读次数:
159
#ifndef GRID_H#define GRID_H #include <string>#include <vector> using namespace std; /** IMPORTANT NOTE:** For this assignment, you might need to add ...
分类:
编程语言 时间:
2016-04-03 22:19:30
阅读次数:
209
测试要求: 对我们和复利计算程序,写单元测试。 有哪些场景? 期待的返回值 写测试程序。 运行测试。 1.源代码:https://github.com/rongjielong/rongjielong/blob/master/calculate/src/exercise.java 2.测试代码:htt ...
分类:
其他好文 时间:
2016-03-28 23:27:03
阅读次数:
255