背包附加:进入背包麻烦,背包的功能能按照所在页面进行不同的处理。背包独立:进入背包方便,从背包返回麻烦,可简化背包功能(背包只有选择功能)。页面切换:每个场景带私有数据,增加代码编写难度,个人认为com就是太复杂了,规矩太多。页面切换:根据需要一键切换到任何页面的任何位置的需求,页面切换应有同一的接...
分类:
其他好文 时间:
2014-06-07 11:15:10
阅读次数:
181
An Easy GameTime Limit: 2 Seconds Memory Limit:
65536 KBOne day, Edward and Flandre play a game. Flandre will show two
01-strings s1 and s2, the leng....
分类:
其他好文 时间:
2014-06-06 23:24:46
阅读次数:
248
$(document).bind("click",function(e){ if($(
e.target ).closest(".game-container").length == 0){ alert(111);
$(".game-container").hide();//game-contain...
分类:
Web程序 时间:
2014-06-06 18:23:38
阅读次数:
287
like的语法string[] cities = { "London", "Madrid"
};IQueryable custs = db.Customers.Where(c =>
cities.Contains(c.City));Contains(),包含,完全匹配,非Likein的语法publi...
分类:
数据库 时间:
2014-06-05 18:27:42
阅读次数:
324
以前用树状数组做过一次,现在用线段树再刷一次。。。
首先必须先离散化。。。
然后建立2颗线段树,第一颗表示往左走,每个节点的值的分布。
第二颗表示往右走,每个节点的值的分布。
然后根据左右走的关系,判断出x,y的值。
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#inclu...
分类:
其他好文 时间:
2014-06-03 01:25:54
阅读次数:
315
DescriptionA brand-new Japanese puzzle is
coming from the East to strike the world-popular Sudoku game and become an
international hit. The rules of t...
分类:
其他好文 时间:
2014-06-02 20:44:37
阅读次数:
303
DescriptionThe police office in Tadu City
decides to say ends to the chaos, as launch actions to root up the TWO gangs in
the city, Gang Dragon and Ga...
分类:
其他好文 时间:
2014-06-02 09:38:19
阅读次数:
219
题意:给出两个01字符串s1,s2.每次改变s1上m个位置的字符。问k步之后使得s1变为s2的方法有多少种。
解法:DP,关键是状态的设计。考虑还是唯一性和可传递性。dp[i][j]表示第i步后有j个不同到目标的走法数。记忆化搜索dp[0][dif](dif表示初始时不同字符的个数)。转移时候枚举选择情况即可。
代码:/*****************************...
分类:
其他好文 时间:
2014-06-02 04:58:01
阅读次数:
216
/// ///
http://www.weather.com.cn/data/sk/101280601.html ///
{"weatherinfo":{"city":"深圳","cityid":"101280601","temp":"32","WD":"西南风","WS":"4级...
分类:
Web程序 时间:
2014-06-01 23:55:55
阅读次数:
809
The Game of Coins
mark:
#include"cstdio"
#include"iostream"
#include"queue"
#include"algorithm"
#include"set"
#include"queue"
#include"cmath"
#include"string.h"
#include"vector...
分类:
其他好文 时间:
2014-06-01 13:58:31
阅读次数:
196