把环境,编辑器,版本这些都弄清楚,说不好还能把FCL类库弄懂个大概???:)[DateTime]::IsLeapYear(2008)$result =
[DateTime]"06/21/2008" - [DateTime]::Now$result.TotalDaysdircd c:pwdcd \cd...
分类:
其他好文 时间:
2014-05-16 08:55:15
阅读次数:
285
Mr. White, a fat man, now is crazy about a game
named ``Dance, Dance, Revolution". But his dance skill is so poor that he could
not dance a dance, eve...
分类:
其他好文 时间:
2014-05-15 16:57:57
阅读次数:
502
//该类用于计算操作的耗时.publicclassRunTime{DateTimestart=DateTime.Now;TimeSpanelapsed=newTimeSpan(0);publicoverridestringToString(){elapsed=(DateTime.Now-start)...
分类:
其他好文 时间:
2014-05-15 13:54:14
阅读次数:
273
题意:求1-n(n
解法:数位dp。LL dp[pre][now][have][iflow][rem]记录着第pre位为now,have表示前边是否出现过13,iflow表示dp过程否有降低,rem表示后续需要的余数是多少。
代码:/******************************************************
* author:xiefubao
...
分类:
其他好文 时间:
2014-05-14 19:29:37
阅读次数:
266
这里先给出一段代码:function a(){ setTimeout(function(){
console.log("setTimeout") },2000); function oneSecond(){ var now = new Date()...
分类:
其他好文 时间:
2014-05-14 09:20:02
阅读次数:
271
Bob enjoys playing computer games, especially
strategic games, but sometimes he cannot find the solution fast enough and then
he is very sad. Now he h...
分类:
其他好文 时间:
2014-05-14 00:29:42
阅读次数:
251
Problem Description
Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.
There are 2 * n enemies in the map. Your task is to clear a...
分类:
其他好文 时间:
2014-05-13 11:29:40
阅读次数:
308
给了你n个村庄把,然后m条路径,q个询问,问你两个点之间的最短距离
分析:由于按照题意来说本图是没有环的,所以求a,b的最近公共祖先 到他们的各自的距离之和就是 那个他们的最短路啦,用的是tarjan来做的,我的方法定义了一个dis数组来随时记录路径的长度,其它大神各有自己的神奇之法
#include
#include
#include
#include
#include
#inclu...
分类:
其他好文 时间:
2014-05-13 07:48:39
阅读次数:
303
this.Dispatcher.BeginInvoke(new Action(()=>
this.textBlock1.Text = DateTime.Now.ToString("HH:mm:ss fff"); }));
分类:
其他好文 时间:
2014-05-12 04:31:05
阅读次数:
251
题意:求1-n的n个数字中1出现的个数。
解法:数位dp,dp[pre][now][equa] 记录着第pre位为now,equa表示前边是否有降数字(即后边可不可以随意取,true为没降,true为已降);常规的记忆化搜索
代码:/******************************************************
* author:xiefubao
...
分类:
其他好文 时间:
2014-05-11 20:48:20
阅读次数:
279