在运维工作中,经常查看某个业务的网络连接状况,在这里借用netstat来实现查找连接,用hash特性避免重复。$add=@{}
while(1){
ps|?{$_.path  -match 'E:\\games\\梦幻XX}|%{
$id=$_.id
netstat -ano |
    ForEach-Object {
       $i = $_ | Select-Object -Proper...
                            
                            
                                分类:
其他好文   时间:
2014-08-15 16:06:58   
                                阅读次数:
201
                             
                         
                    
                        
                            
                            
                                Problem Description
FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers whic...
                            
                            
                                分类:
其他好文   时间:
2014-08-15 14:42:48   
                                阅读次数:
188
                             
                         
                    
                        
                            
                            
                                The die is castInterGames is a high-tech startup company that specializes in developing technology that allows users to play games over the Internet.....
                            
                            
                                分类:
其他好文   时间:
2014-08-15 12:16:38   
                                阅读次数:
214
                             
                         
                    
                        
                            
                            
                                题目大意:给定n,表示字符串集合。给定k,表示进行了k次游戏,然后是n个字符串。每局开始,字符串为空串,然后两人轮流在末尾追加字符,保证新的字符串为集合中某字符串的前缀,不能操作者输,新一轮由上一句输的人先手。解题思路:首先对字符集合建立字典树,然后根据博弈的必胜必败性质搜索出先手的决策状态,可决定...
                            
                            
                                分类:
其他好文   时间:
2014-08-14 01:14:07   
                                阅读次数:
253
                             
                         
                    
                        
                            
                            
                                Problem Description
XQ,one of the three Sailormoon girls,is usually playing mobile games on the class.Her favorite mobile game is called “The Princess In The Wall”.Now she give you a problem about th...
                            
                            
                                分类:
其他好文   时间:
2014-08-13 18:57:07   
                                阅读次数:
224
                             
                         
                    
                        
                            
                            
                                Problem Description
FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers which...
                            
                            
                                分类:
其他好文   时间:
2014-08-13 13:14:47   
                                阅读次数:
196
                             
                         
                    
                        
                            
                            
                                Problem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by bu...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 21:41:14   
                                阅读次数:
200
                             
                         
                    
                        
                            
                            
                                Stupid Tower DefenseProblem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from ...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 21:31:34   
                                阅读次数:
183
                             
                         
                    
                        
                            
                            
                                题意:给你n个字符串,给你一个序列,两个人轮流取一个字符使得现有的字符串是n个字符串里面的前缀,最后谁不能取谁就输掉这局,但是他们要玩K局,谁在K局赢了就等于赢了一整场比赛。解题思路:字典树找是否有 必输 或者 必赢 的策略,如果同时有必赢或者必输的策略,那必定是first赢,如果只有必赢,那只需要...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 12:59:54   
                                阅读次数:
205
                             
                         
                    
                        
                            
                            
                                题意:给你一个有重复数字的序列,每一次你选一个值,删除这个值(不删除等于这个值的其他值),然后再删除等于a[i] - 1 和 a[i] +1 的其他值,得到a[i]的价值,问你最多能得到多少价值解题思路:其实就是一个DP,不能连续取 dp[i] = max(dp[i-1],d[i] + dp[i-2...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 12:53:44   
                                阅读次数:
198