题目链接 #include #include #include using namespace std; int sg[2010]; int get_sg(int n) { if(n<0) return 0; if(sg[n]!=-1) return sg[n]; bool vis[2010]; /...
                            
                            
                                分类:
其他好文   时间:
2016-03-05 06:51:38   
                                阅读次数:
152
                             
                    
                        
                            
                            
                                本文以SG300为例,举例说明此系列交换机的相关一些通用设置。因为思科SG300采用的并非IOS系统,所以其主要设置都可在WEB设置页面中设置。之前,一直纠结过SG和SF系统交换机里面的默认VLAN1是否可以删除问题。经多次试验研究,发现vlan1确实是不可删除的。可是vlan1的存在,并不..
                            
                            
                                分类:
其他好文   时间:
2016-03-01 16:04:19   
                                阅读次数:
153
                             
                    
                        
                            
                            
                                题目链接:传送门 游戏规则: 没次能够将一堆分成两堆 x = a*b (a!=1&&b!=1)x为原来堆的个数,a,b为新堆的个数。 也能够将原来的堆的个数变成原来堆的约数y。y!=x。进行最后一次操作的人获胜。 分析: 也是一个去石头的游戏,因此我们仅仅须要将全部情况的sg值异或起来就好了。 我们
                            
                            
                                分类:
其他好文   时间:
2016-02-27 20:38:00   
                                阅读次数:
181
                             
                    
                        
                            
                            
                                1004: [HNOI2008]Cards 题意:有n张卡片,染成s1张红色,s2张蓝色和s3张绿色;之后有m种置换关系,问本质不同的染色方案有多少种? Input 第一行输入 5 个整数:Sr,Sb,Sg,m,p(m<=60,m+1<p<100)。n=Sr+Sb+Sg。接下来 m 行,每行描述 一
                            
                            
                                分类:
其他好文   时间:
2016-02-27 15:10:20   
                                阅读次数:
169
                             
                    
                        
                            
                            
                                摘自: http://www.ntu.edu.sg/home/ehchua/programming/java/J4a_GUI.html Writing Swing Applications In summary, to write a Swing application, you have: Use
                            
                            
                         
                    
                        
                            
                            
                                摘自: http://www.ntu.edu.sg/home/ehchua/programming/java/J4a_GUI.html Refer to the WindowEventDemo, a WindowEvent listener is required to implement the
                            
                            
                                分类:
其他好文   时间:
2016-02-20 17:34:03   
                                阅读次数:
117
                             
                    
                        
                            
                            
                                摘自:http://www.ntu.edu.sg/home/ehchua/programming/java/J4a_GUI.html1.ActionListener import java.awt.*; // Using AWT container and component classes imp
                            
                            
                                分类:
其他好文   时间:
2016-02-20 00:38:51   
                                阅读次数:
239
                             
                    
                        
                            
                            
                                一大早起来ASUS K43SM 打字时的鼠标满屏幕乱飞,无外是触摸板控制失灵了,任务栏里的asus smart gesture图标也几日没见着了,不知道是在折腾什么的时候弄坏的,果断去控制面板里卸载smartgesture(sg),可提升卸载不掉,然后右键选择修复,重启,才能卸载了。从往日备份的驱动
                            
                            
                                分类:
其他好文   时间:
2016-02-17 13:00:43   
                                阅读次数:
139
                             
                    
                        
                            
                            
                                这是尼姆博弈的变型; 还是博弈,可是这次要用Sg函数最后异或等于0后手赢 反之,先手赢 #include <iostream> #include <cstring> #include <cstdio> using namespace std; int f[100]={1,2,3,5}; int e[
                            
                            
                                分类:
其他好文   时间:
2016-02-06 10:24:17   
                                阅读次数:
195
                             
                    
                        
                            
                            
                                1188: [HNOI2007]分裂游戏 Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 733 Solved: 451[Submit][Status][Discuss] Description 聪 聪和睿睿最近迷上了一款叫做分裂的游戏。 该游戏的规则试
                            
                            
                                分类:
其他好文   时间:
2016-01-31 13:21:38   
                                阅读次数:
180