procedure TForm1.Button1Click(Sender: TObject);var row: TcxEditorRow; i,t: Integer;begin grid.ClearRows; Row := TcxEditorRow(Grid.Add(TcxEditorR...
分类:
其他好文 时间:
2014-07-02 00:14:26
阅读次数:
906
向栈中压入数据:lua_pushnil(lua_State*);lua_pushboolean(lua_State*, bool);lua_pushnumber(lua_State*, lua_Number);lua_pushinteger(lua_State*, lua_Integer)lua_p...
public String nickName; public Integer userId;public String login(){//登录之后方法1.userId = user.getId();nickName = user.getNickName();方法2.this.getResRequ....
分类:
其他好文 时间:
2014-07-01 13:43:44
阅读次数:
128
First Missing Positive:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] retu...
分类:
其他好文 时间:
2014-07-01 13:13:59
阅读次数:
218
题目//传说中的记忆化搜索,好吧,就是用深搜//多做题吧,,这个解法是搜来的,蛮好理解的//题目大意:给出两堆牌,只能从最上和最下取,然后两个人轮流取,都按照自己最优的策略,//问说第一个人对多的分值。//解题思路:记忆化搜索,状态出来就非常水,dp[fl][fr][sl][sr][flag],//...
分类:
其他好文 时间:
2014-07-01 12:55:43
阅读次数:
254
Sorted Array:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is gre...
分类:
其他好文 时间:
2014-07-01 12:51:53
阅读次数:
202
Gray Code:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the ...
分类:
其他好文 时间:
2014-07-01 12:42:16
阅读次数:
192
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-06-30 23:46:14
阅读次数:
288
属性的存储 属性的主要作用是存储数据,可以常量属性和变量属 性;struct FixedLengthRange {
var firstValue: Int let length: Int
}
var rangeOfThreeItems =FixedLengthRange(firstValue: 0,
length: 3)
// the range represents integer value...
分类:
其他好文 时间:
2014-06-30 18:53:33
阅读次数:
271
题意:有两堆n张的卡片,每张卡片有一个得分,Alice和Bob轮流在两堆卡片的两端取卡片
问Alice先手,取得分数最多为多少;
#include
#include
#include
#include
#include
#include
#define M 50
#define LL long long
using namespace ...
分类:
其他好文 时间:
2014-06-30 17:39:36
阅读次数:
258