传送门 Description Recently a dog was bought for Polycarp. The dog's name is Cormen. Now Polycarp has a lot of troubles. For example, Cormen likes going ...
分类:
其他好文 时间:
2016-10-29 01:50:44
阅读次数:
237
There are n circles on a infinitely large table.With every two circle, either one contains another or isolates from the other.They are never crossed n ...
分类:
其他好文 时间:
2016-10-27 23:21:21
阅读次数:
303
问题到数据 理解问题 理解客户的问题:谁是客户(某航空公司)?交流,交流,交流! 问题要具体 某航空公司: 乘客体验如何?哪方面需要提高? 类别:比较、描述、聚类,判别还是回归 需要什么样的数据:现有数据,数据质量,需要收集的数据,自变量,因变量 哪些方面的满意度?哪些主要竞争对手? 内部数据?外部 ...
分类:
其他好文 时间:
2016-10-27 21:00:00
阅读次数:
347
Problem: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 ...
分类:
其他好文 时间:
2016-10-23 07:35:05
阅读次数:
252
#include<iostream>#include<string>#include<cmath>using namespace std; class Rational { public: Rational(); Rational(long numerator, long denominator); ...
分类:
其他好文 时间:
2016-10-22 17:23:13
阅读次数:
219
#include<iostream> using namespace std; class Complex //复数类 { public: Complex(double real = 0, double imag = 0); Complex operator+(Complex& com); Comp ...
分类:
其他好文 时间:
2016-10-22 14:40:08
阅读次数:
149
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu ...
分类:
其他好文 时间:
2016-10-15 07:42:34
阅读次数:
322
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu ...
分类:
其他好文 时间:
2016-10-15 07:40:53
阅读次数:
141
条款23:宁以non-member、non-friend替换member函数 即 以非成员函数 非友元函数 替换成员函数。 直观上,面向对象应该尽可能的封装,封装数据、封装操作等等,所以这个条款可能有悖常理。 比如一个类成员函数CObj::Func(){ Dosomething(); } 该函数会调 ...
分类:
其他好文 时间:
2016-10-09 23:09:55
阅读次数:
175
Description There is a curious man called Matt. One day, Matt's best friend Ted is wandering on the non-negative half of the number line. Matt finds i ...
分类:
其他好文 时间:
2016-10-09 19:56:07
阅读次数:
143