题目链接:http://code.bupt.edu.cn/problem/p/427/
一个很单纯的every-sg模型
代码:
#include
#include
#include
#include
#define N 100010
using namespace std;
int step[N];
int sg[N];
int stone[N];
vector g[N];
i...
分类:
其他好文 时间:
2014-07-18 11:34:05
阅读次数:
173
可以根据城市+车牌号+发动机号查询违章信息列表;
违章实体类
package org.wx.xhelper.model;
/**
* 违章实体类
* @author wangxw
* @version 1.0
* @date Jul 11, 2014 3:25:34 PM
*/
public class ViolRegu {
// 违章时间
privat...
分类:
Windows程序 时间:
2014-07-18 11:33:47
阅读次数:
1051
根据手机号码查询用户的卡类型、运营商、归属地、区域等信息。
手机归属地实体类
package org.wx.xhelper.model;
/**
* 手机归属地
* @author wangxw
* @version 1.0
* @date Jul 9, 2014 4:03:04 PM
*/
public class PhoneBelong {
// 电话号...
分类:
移动开发 时间:
2014-07-18 11:29:56
阅读次数:
460
java冒泡排序Bubble Sort算法代码 下载代码地址:http://www.zuidaima.com/share/1550463269096448.htm...
分类:
编程语言 时间:
2014-07-18 11:22:48
阅读次数:
261
分治!首先是一大块,贪行刷和竖刷的最小,再转化为小块。。。。。。。。。。。。
AC代码如下:
#include
#include
#include
using namespace std;
int n;
int a[5005];
int solve(int l,int r)
{
int i,j;
int len=r-l+1;
...
分类:
其他好文 时间:
2014-07-18 11:22:29
阅读次数:
229
用了好久的GCC/G++ 却一直都没用过GDB调试过程序,有时程序不是很大,一般有错,直接看编译器编译结果就差不多知道错在哪儿了,或者使用codeblocks单步调试,甚至回到windows下面调试,但是总是不太方便,因此有必要看一下GDB调试方法和基本步骤.
下面是一个简单的演示:
首先创建一个有错误的代码,如下:
这个程序很简单,目的是接受用户的输入,并将用户的输入回应输出来.
...
分类:
数据库 时间:
2014-07-18 11:19:00
阅读次数:
236
近期想做一个跑马灯的效果,于是写出了如下的跑马灯效果的代码。。。但是调试发现,在iOS6下动画是可以执行的,但是在iOS7下动画并不执行,没有达到预期的效果。
[_scrollLabel sizeToFit];
CGRect frame = _scrollLabel.frame;
frame.origin.x = 320;
_scrollLabel.frame = fra...
分类:
移动开发 时间:
2014-07-18 11:18:16
阅读次数:
208
题意就是将第一个字符串转化为第二个字符串,支持两个操作,一个是删除,一个是更换字符位置。
简单的字符串操作!!
AC代码如下:
#include
#include
#include
#include
#define M 50010
#define inf 100000000
using namespace std;
char a[1005],b[1005];
int la,lb;
bo...
分类:
其他好文 时间:
2014-07-18 11:03:48
阅读次数:
273
第1步:下载、安装文件
打开nodejs的官网http://www.nodejs.org/download/ ,选择需要的版本,直接打开,默认安装即可
第二步:编写测试代码:
var http = require('http');
http.createServer(function(req, res) {
res.writeHead(200, {
'Cont...
分类:
Web程序 时间:
2014-07-18 11:02:02
阅读次数:
273
通过npm link使项目中所用的包及时更新到该包的最新代码。...
分类:
其他好文 时间:
2014-07-18 11:00:53
阅读次数:
259