1.write_date(0x30+shi)加0x30是什么意思答: 将数字0-9转化为字符'0'-'9'1.write_date(0x37+bai)加0x37是什么意思答: 将大于9的数字转化为字符
分类:
其他好文 时间:
2014-10-10 15:48:20
阅读次数:
259
深搜注意与STL模版的去重函数唯一的区别就是有去重。#include #include #include #include using namespace std;int len;char ch[15],ss[15];int visted[15];bool cmp(char a,char b){ ....
分类:
其他好文 时间:
2014-10-09 23:18:27
阅读次数:
202
using System;using System.Collections.Generic;using System.Linq;using System.Web;using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;using NPOI.SS.Formu...
分类:
其他好文 时间:
2014-10-09 23:12:27
阅读次数:
237
private string[] dateFormat = { "dd/MM/yyyy", "d/M/yyyy", "dd/MM/yyyy HH:mm:ss", "dd/MM/yyyy HH:m:s" };DateTime.ParseExact(sStartDate,dateFormat,DateT...
分类:
其他好文 时间:
2014-10-09 17:10:57
阅读次数:
174
题目:poj 2411 Mondriaan's Dream
题意:给出一个n*m的矩阵,让你用1*2的矩阵铺满,然后问你最多由多少种不同的方案。
分析:这是一个比较经典的题目,网上各种牛B写法一大堆。题解也是
我们可以定义状态:dp【i】【st】:在第 i 行状态为 st 的时候的最大方案数、
然后转移方程:dp【i】【st】 = sum (dp【i-1】【ss】)
即所...
分类:
其他好文 时间:
2014-10-09 15:49:58
阅读次数:
202
#include #include int main() { unsigned int x; std::stringstream ss; ss > x; // output it as a signed type std::cout (x) << std::end...
分类:
其他好文 时间:
2014-10-09 14:17:23
阅读次数:
201
前些天一个Nginx+PHP项目上线后遭遇了性能问题,于是打算练练手,因为代码并不是我亲自写的,所以决定从系统层面入手看看能否做一些粗线条的优化。 首先,我发现服务的Backlog设置过小,可以通过ss命令查询Send-...
分类:
其他好文 时间:
2014-10-08 23:03:47
阅读次数:
306
// 完整显示日期时间 String str = (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS")).format(new Date()); System.out.println(str); // 创建 Cal...
分类:
编程语言 时间:
2014-10-08 17:29:25
阅读次数:
316
题目链接:HDU 2409 Team Arrangement
题意:给出22个人(编号,名字,踢的位置,在队里的时间),让我们选DD-MM-SS的阵型+一个守门员。在选出队长(时间在最久的就是队长,时间相同编号大为队长),选人的顺序是从编号小的开始。
结构体排序就好了,注意出输出是按队长,D,M,S的顺序,选队长记录队长的编号(而不是下标,我的代码之后还要排序)。
AC代码...
分类:
其他好文 时间:
2014-10-04 11:45:48
阅读次数:
232
将当前时间化成hh:mm:ss的形式格式化:new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1")将当前时间格式化为: HH/DD/YY形式function formatDay(param) { var year = .....
分类:
Web程序 时间:
2014-10-02 19:09:23
阅读次数:
232