码迷,mamicode.com
首页 >  
搜索关键字:num lock    ( 23499个结果
如何使用 aspnetpager
public void checkCase() { string strSql = " ID>0"; int num = bll.GetRecordCount(strSql); ...
分类:Web程序   时间:2014-07-16 23:38:11    阅读次数:371
LeetCode Count and Say
class Solution {public: string countAndSay(int n) { vector num; num2digit(1, num); vector tmp; for (int i = 1; i &digit...
分类:其他好文   时间:2014-07-16 17:02:13    阅读次数:144
uva 1377
比较不错的一个题,关键是理解状态转移#include#include#include#include#define maxn 55using namespace std;int m,ans;int num[maxn],vis[maxn];bool cnt[1000009];int scale[10]...
分类:其他好文   时间:2014-07-16 15:06:35    阅读次数:216
gridview 合并列
//gridview 相同列合并 private void GroupRows(GridView grv) { string[] drs = { "ConferenceStartDate", "ddd" }; int num = 1; f...
分类:其他好文   时间:2014-07-16 15:06:14    阅读次数:221
UVA 1482 - Playing With Stones(SG打表规律)
UVA 1482 - Playing With Stones 题目链接 题意:给定n堆石头,每次选一堆取至少一个,不超过一半的石子,最后不能取的输,问是否先手必胜 思路:数值很大,无法直接递推sg函数,打出前30项的sg函数找规律 代码: #include #include int t, n; long long num; long long SG(long ...
分类:其他好文   时间:2014-07-16 14:47:36    阅读次数:206
UVA 11859 - Division Game(Nim游戏)
UVA 11859 - Division Game 题目链接 题意:给定一个矩阵,每次能选一行中几个数字,把他们变成他们的因子,最后不能变的人输,问是否能先手必胜 思路:转变成因子等价于删去一些素数,这样问题转化为了Nim游戏 代码: #include #include const int N = 10005; int t, n, m, num, cnt[N],...
分类:其他好文   时间:2014-07-16 14:25:19    阅读次数:212
C# WebService中任务处理线程创建子线程后
protected void WriteLog(string message) { lock (lockObject) { var file = System.IO.File.AppendText...
分类:编程语言   时间:2014-07-16 13:51:46    阅读次数:213
面向对象(子父类中变量、函数、构造函数的特点)
/** * Created by 刘朋程 博客园 on 2014-07-15. */ class fu { int num = 4 ; //定义父类的变量num = 4 fu() //定义父类的构造函数 ...
分类:其他好文   时间:2014-07-16 13:51:11    阅读次数:233
LeetCode N-Queens
class Solution {private: int queen_num; vector > res;public: vector > solveNQueens(int n) { res.clear(); queen_num = n; ...
分类:其他好文   时间:2014-07-16 12:09:34    阅读次数:247
hiho一下
#include #include using namespace std;struct Tire{ int num; Tire* next[26]; Tire() { num=0; int i; for(i=0;inext[t]==...
分类:其他好文   时间:2014-07-16 11:59:07    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!