Treehttp://acm.hdu.edu.cn/showproblem.php?pid=5044树链剖分,区间更新的时候要用on的左++右--的标记方法,要手动扩展,用c++交,综合以上的条件可过。 1 #include 2 #include 3 #include 4 #pragma c...
分类:
其他好文 时间:
2014-09-27 20:59:30
阅读次数:
173
题意:
给定n个点的树,m个操作
树有点权和边权
下面n-1行给出树边
下面m行操作 :
● ADD1 u v k: for nodes on the path from u to v, the value of these nodes increase by k.
● ADD2 u v k: for edges on the path from u to v, the value...
分类:
其他好文 时间:
2014-09-27 20:30:00
阅读次数:
202
#include
#include
#include
#include
#include
#include
using namespace std;
#define MAXN 9999
#define MAXSIZE 10
#define DLEN 4
class BigNum
{
private:
int a[500]...
分类:
其他好文 时间:
2014-09-27 19:41:50
阅读次数:
267
linux的时区设置是已文件格式存在的,文件路径为:/etc/localtime可配置的时区文件存放路径为:/usr/share/zoneinfo选择要设置的时区文件覆盖localtime即可操作命令:1、覆盖现有时区文件cp -f /usr/share/zoneinfo/Aisa/Shanghai...
分类:
其他好文 时间:
2014-09-25 14:35:29
阅读次数:
203
先在我的电脑环境变量中加入oracle_sid=orcl在Orcale主目录中查找emd.properties 文件修改(时间格式) agentTZRegion=GMT agentTZRegion=Asia/Shanghai 3.重建资料库就可以了:cmd 1.C:\ U...
分类:
其他好文 时间:
2014-09-24 16:35:17
阅读次数:
188
php 调用net_DNS2 更新区文件资源记录(使用的是nsupdate(标准更新DNS记录的命令)):实际上bind区文件的内容以某acl种数据结构存储于内存中,nsupdate的更新直接更改内存中的RR,并把更新操作保存到区文件对应的日志文件中,比如名为domainname.shanghai....
分类:
其他好文 时间:
2014-09-19 17:08:26
阅读次数:
187
在PHP里调用date时,出现错误,需要在PHP里添加:1、打开PHP.ini文件,一般在PHP的安装根目录下找到其中的;date.timezone删掉date.timezone前面的分号,并改成date.timezone=PRC存盘,并重新启动Apahce服务(有时用Apache的restart功能会有问题,建议先stop然后再start)重新检..
分类:
Web程序 时间:
2014-09-18 16:51:45
阅读次数:
250
1. Time类,这个类可以得到具体的日期/时间以及时区,可以在日期/时间格式与字符串及毫秒之间转换。(据说,使用Time类对CPU的负荷较小,不过我没有与其他的类型对比过)Time t = new Time(); //得到的是初始日期时间:19700101T000000Asia/Shanghai(...
分类:
移动开发 时间:
2014-09-17 00:56:51
阅读次数:
245
访问网站提示:date():Itisnotsafetorelyonthesystem’stimezonesettings.Youare*required*tousethedate.timezonesettingorthedate_default_timezone_set()function.Incaseyouusedanyofthosemethodsandyouarestillgettingthiswarning,youmostlikelymisspelledthetimezoneidenti..
分类:
Web程序 时间:
2014-09-15 19:44:10
阅读次数:
223
<?php
header("Content-type: text/html; charset=utf-8");
date_default_timezone_set(‘Asia/Shanghai‘);
set_time_limit(30);
tree("./ui");
function tree($directory) {
echo "$directory"."\n";
...
分类:
Web程序 时间:
2014-09-12 15:32:03
阅读次数:
229