- 博客(4)
- 收藏
- 关注
原创 简单枚举
输入整数n,从大到小输出形如abcde/fghij=n的表达式,其中a~j恰好为0~9的一个排列 #include "stdafx.h" #include #include using namespace std; bool jude(int n, int fgh) { int abc = fgh*n; int a[10] = { 0 }; int i; i
2014-12-29 18:00:22 266
原创 Sicily 1010. Zipper 尾递归
Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrarily, but each must sta
2014-12-21 16:19:54 329
原创 从Alphacode看斐波那契数列与线性动态规划
Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just use a very simple code: We'll assign `A' the code word 1, `B' will be 2, a
2014-12-20 10:37:01 346
原创 关于c++中派生类构造函数初始化基类的记录
本人初学c++ 这篇东西类似于学习日记,用于日后回顾,有什么错误的认识也麻烦大家指正。 附上代码 #include using namespace std; class father{ public: int lenofjj; int hight; father(int &a,int &b):lenofjj(a),hight(b){ } }; c
2014-12-19 17:18:29 1557
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人