>>> map(int,'0')[0]>>> int('-1')-1>>> map(int, l[1])Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for int() with....
分类:
其他好文 时间:
2015-01-28 06:08:44
阅读次数:
369
uva 639 Don't Get Rooked
In chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small chess boards (at most 44)
tha...
分类:
其他好文 时间:
2015-01-27 18:36:48
阅读次数:
195
Most middleware (like multipart) is no longer bundled with Express and must be installed separately....https://github.com/senchalabs/connect#middleware
版本问题
首先需要安装:
npm install --save connect...
分类:
移动开发 时间:
2015-01-27 18:21:25
阅读次数:
173
OBD2 tool has now launched the newest V145 for Renault CAN Clip, which is one of the most best-sold auto diagnostic tools for Renault vehicle.Here sum...
分类:
其他好文 时间:
2015-01-26 14:58:24
阅读次数:
157
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 at most two transactions. Note: You may not eng...
分类:
编程语言 时间:
2015-01-26 13:45:27
阅读次数:
200
题目要求是可达情况下,舒适度最好,即速度之差最小。1.因为不考虑距离 所以只要在同一集合中即可2.需要在条件1下枚举最小速度,然后找符合条件的 1 #include "iostream" 2 #include "algorithm" 3 #include "memory.h" 4 #include ...
分类:
其他好文 时间:
2015-01-25 18:05:42
阅读次数:
102
题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati...
分类:
其他好文 时间:
2015-01-25 16:35:51
阅读次数:
202
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece" which ...
分类:
其他好文 时间:
2015-01-25 06:31:56
阅读次数:
141
【HDU】1198Farm Irrigation 基础最小生成树★1598find the most comfortable road 枚举+最小生成树★★1811Rank of Tetris 并查集+拓扑排序★★3926Hand in Hand 同构图★3938Portal 离线+并查集★★248...
分类:
其他好文 时间:
2015-01-24 22:45:59
阅读次数:
208
C -CTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a positive integer N, you should output the most ri...
分类:
其他好文 时间:
2015-01-24 20:04:38
阅读次数:
131