We have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type called Point that represents...
分类:
其他好文 时间:
2014-09-24 01:28:45
阅读次数:
308
http://www.iteye.com/problems/44119http://hi.baidu.com/lapson_85/item/7733586e60b08500a1cf0f8d————————————————————————————————————————————————————————...
分类:
Web程序 时间:
2014-09-23 22:09:35
阅读次数:
476
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-09-23 00:38:33
阅读次数:
275
题目:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2...
分类:
其他好文 时间:
2014-09-22 20:55:03
阅读次数:
203
参考配置events { worker_connections 65535; use epoll; } http { log_format f_nginx "$remote_addr`$server_addr`$server_protocol`$request_method`$se...
分类:
其他好文 时间:
2014-09-22 18:54:13
阅读次数:
162
How many ways??Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1562Accepted Submission(s): 546Prob...
分类:
其他好文 时间:
2014-09-22 17:55:52
阅读次数:
161
题目//一道简单的广搜水题#include#include#include#include#includeusing namespace std;struct tt{ int x,y;};char mp[310][310];int vis[310][310];//看了题解,发现只有4个方向,而...
分类:
其他好文 时间:
2014-09-22 00:31:21
阅读次数:
226
原文http://www.helyar.net/2009/libvlc-media-player-in-c/There seems to be a massive misconception about using VLC inside an application and many, many l...
分类:
其他好文 时间:
2014-09-21 19:48:21
阅读次数:
488
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i...
分类:
其他好文 时间:
2014-09-21 03:10:29
阅读次数:
265
题目这是传说中的深搜吗。。。。不确定,,,,貌似更加像是模拟,,,,//我要做深搜题目拉//实际上还是模拟#include#include#include#include#include#includeusing namespace std;int ans;char a[20];__int64 n;...
分类:
其他好文 时间:
2014-09-19 23:43:16
阅读次数:
239