if(!(to_city_value.indexOf("(")>0){//code。。。。。}
                            
                            
                                分类:
Web程序   时间:
2014-05-16 23:28:33   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                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
                             
                    
                        
                            
                            
                                要求最小的步数,是不是很容易想到用dp啊?
我一开始的做法是,当找到了一个可以从它延伸到更远的位置,就把这个位置和最远位置的步数都更新一下,结果超时了。其实这样不仅是超时的,而且是错误的。因为这段距离里的很多点,其实是上一步就能到达的。其实应该更新的只有哪些新的能够到达的点,那哪些点是新的能到达的点呢?假设这次能够延伸更远的点是i,它的前进步数是A[i],上一次能够到达的最远的点是mmax,那新...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 05:54:41   
                                阅读次数:
229
                             
                    
                        
                            
                            
                                题目:brick game是有一些连续编号的木块1~N,再给你一个若干整数构成的集合S;
            两个人轮流取出集合S中存在的任意数字个木块,最后取走的人获胜,如果不能取,则对方获胜。
            现在,给你一个游戏结果的序列串T,如果木块有k个,可能赢就是T[k] = W,一定输就是T[k] = L。
            请你确定一个最小的集合,使得这个序列...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 15:19:17   
                                阅读次数:
270
                             
                    
                        
                            
                            
                                08 
讨论了“Gamer”这个词,以及我们应该如何对待我们的游戏。虽然讲的不错,但在游戏设计这方面没有什么可以学习的。09 Extra Credits: Video 
Game Music 这期讨论了游戏中的音乐。现在我们有了更好的设备,更先进的理念,更多的表现手法,但比起当时8bit音乐时代似乎少了...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 12:54:32   
                                阅读次数:
297
                             
                    
                        
                            
                            
                                Continuous Login
Time Limit: 2 Seconds      Memory Limit: 131072 KB      Special Judge
Pierre is recently obsessed with an online game. To encourage users to log in, this game will give user...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 01:25:00   
                                阅读次数:
396
                             
                    
                        
                            
                            
                                Pat1018代码
题目描述:
There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to an...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 23:27:04   
                                阅读次数:
582
                             
                    
                        
                            
                            
                                Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 14:59:51   
                                阅读次数:
356
                             
                    
                        
                            
                            
                                Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 13:54:14   
                                阅读次数:
463
                             
                    
                        
                            
                            
                                本项目基于 《使用storyboards建立 Navigation Controller and Table View》 http://uliweb.cpython.org/tutorial/view_chapter/424
创建, 代码中使用了 静态的 tableviewcell
增加了 textview,url,json数据解析
部分代码片段: 
//
//  city...
                            
                            
                                分类:
移动开发   时间:
2014-05-13 08:19:24   
                                阅读次数:
423