一段批处理在WIN XP下用任务计划可以正常运行:rar.exe u -m3 -s -r -o+ -x*.db -x*.zip -x*.rar zmv9netSrc.rar "Source\*"但在WIN7下用任务计划无法正常运行,报找不到文件。改为绝对路径后正常:D:\WorkSpace\st_z...
给一个由小写字母构成的字符串S,问有多少个子串满足:在这个子串中每个字母的个数都不超过K。数据范围:1#include #include #include #include #include #include #include #include #include using namespace st...
分类:
其他好文 时间:
2014-09-29 23:46:41
阅读次数:
346
stat方法:用于获取文件信息,例如创建时间、文件大小等。1 import os2 filestate=os.stat("e:/temp/test.txt")3 print(filestate.st_mtime)# 文件最后修改的时间距离1970/1/1的秒数。4 5 import time6 pr...
分类:
编程语言 时间:
2014-09-29 22:20:41
阅读次数:
240
题目:求从s开始的递增序列(每次加1),求出他们加和不小于D的那个最后的加数。
分析:数学题,分治。s + s+1 + ... + n = n*(n+1)/2 - s*(s-1)/2 = (n+s)*(n-s+1)/2。
直接二分答案即可(二分范围0~10^8)。
说明:(⊙_⊙)。
#include
#include
using namespace st...
分类:
其他好文 时间:
2014-09-29 20:56:21
阅读次数:
275
导入一个静态库的时候,发现一系列错误Undefined symbols for architecture armv7: "std::string::resize(unsigned long, char)", referenced from:类似这样的 最后在网上找了好多文章 有这篇http://st...
分类:
其他好文 时间:
2014-09-28 18:51:33
阅读次数:
188
SELECT TableName = OBJECT_NAME(c.object_id), ColumnsName = c.name, Description = ex.value, ColumnType=st.name, Length=c.max_length FROM sys.columns c ...
分类:
数据库 时间:
2014-09-28 14:25:42
阅读次数:
228
Two polar bears Menshykov and Uslada from the St.Petersburg zoo and elephant Horace from the Kiev zoo got six sticks to play with and assess the animals' creativity. Menshykov, Uslada and Horace decid...
分类:
其他好文 时间:
2014-09-28 10:50:23
阅读次数:
196
一、准备AHCI驱动1、关于AHCI基础知识,请参考《AHCI模式的驱动下载、安装及蓝屏问题综合》一文。2、安装AHCI驱动之前,请先确认桌面上、系统盘没有重要的东西需要备份,因为如果安装失败可能导致系统无法启动,除非你有第二系统或应对修复方法。3、准备AHCI驱动:A、对于台式机用户,主板的驱动光盘中一般都有这个东西,笔记本用户就不一定了,留意一下驱动盘中是否有类似Intel Matrix St...
分类:
其他好文 时间:
2014-09-27 19:58:00
阅读次数:
343
SenchaTouch中出现数据覆盖 的可能原因
当在ST系统中有多出Store使用同一个Model时,如果两个不同 Store的data中的 id 字段有重复的,则会出现数据紊乱的现象,比如两个列表使用不同的Store但都引用了同一个Model 在两个Store中data的id字段有重复的,将会导致列表数据现实错乱。
“Cannot call method 'setData' o...
分类:
其他好文 时间:
2014-09-26 23:08:58
阅读次数:
358
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define eps 1e-12
#define INF 0x7fffffff
#define maxn 22222
using namespace std;
int n,m;
int en;
int st,ed...
分类:
其他好文 时间:
2014-09-26 22:28:09
阅读次数:
258