[GDOI2015]推箱子(状压bfs) 题面 题面过长,略 分析 观察到$m \times m =64 $,那么可以把箱子的01状态压到一个 里面 然后对于地图上的每一个点$(x,y)$,预处理出左上角在$(x,y)$,边长为$m$的正方形的01状态。如果这个状态和箱子的状态按位与的结果为0,那么 ...
                            
                            
                                分类:
其他好文   时间:
2020-03-01 19:44:26   
                                阅读次数:
72
                             
                         
                    
                        
                            
                            
                                    https://www.luogu.com.cn/problem/P1024 Description 有形如:ax3+bx2+cx+d=0 这样的一个一元三次方程。 给出该方程中各项的系数(a,b,c,d 均为实数),并约定该方程存在三个不同实根(根的范围在-100至100之间),且根与根之差的绝对 ...
                            
                            
                                分类:
其他好文   时间:
2020-03-01 17:10:26   
                                阅读次数:
113
                             
                         
                    
                        
                            
                            
                                    定义: 使用WriteGroup标记了同一个component的components就属于一个WriteGroup: public struct W : IComponentData { public int Value; } [WriteGroup(typeof(W))] public struc ...
                            
                            
                                分类:
其他好文   时间:
2020-02-29 22:47:43   
                                阅读次数:
173
                             
                         
                    
                        
                            
                            
                                    下载stellar:官网下载stellar的使用:stellar 依赖jquery,引入stellar.js前需要先引入jquery <script src="path/to/jquery/jquery.min.js"></script> <script src="path/to/jquery.st ...
                            
                            
                                分类:
Web程序   时间:
2020-02-29 22:08:33   
                                阅读次数:
71
                             
                         
                    
                        
                            
                            
                                给定一个正整数的标准分解形式,求最小的 $x$ 使得 $\varphi^x(N)=1$,其中 $\varphi(x)$ 表示 Euler 函数的 $x$ 重嵌套。$T\leq50, p_i\leq 10^5,q_i\leq10^9$ Solution 观察到只有 $\varphi(2)=1$,而对于 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-29 16:17:57   
                                阅读次数:
57
                             
                         
                    
                        
                            
                            
                                zz:https://www.cnblogs.com/GXZlegend/p/6855581.html Sol: 先求出next,然后我们可以发现如果x和next[x](x>0)连一条边,那么就是一颗树,而所求的num是每个点的所有祖先节点中最后一个长度小于等于len[x]的点之前的祖先节点个数-1 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-28 22:53:37   
                                阅读次数:
50
                             
                         
                    
                        
                            
                            
                                    题目: Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to  ...
                            
                            
                                分类:
编程语言   时间:
2020-02-28 14:11:20   
                                阅读次数:
84
                             
                         
                    
                        
                            
                            
                                问题:在Linux上安装了MySQL5.7,应用系统已经初始化,数据已经进入了数据库。使用应用系统时才发现系统有个模块是没有区分大小写在操作数据库的,所以后台报数据库插入SQL出错。因此想要修改MySQL为大小写不敏感。这儿问题就来了:按照网上的大部分的说法,修改/etc/my.cnf,将[mysq ...
                            
                            
                                分类:
数据库   时间:
2020-02-27 16:21:06   
                                阅读次数:
114
                             
                         
                    
                        
                            
                            
                                    先来看看官方解释 def identity(input, name=None): # pylint: disable=redefined-builtin r"""Return a tensor with the same shape and contents as input. 返回一个和输入 相同 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-27 14:39:57   
                                阅读次数:
62
                             
                         
                    
                        
                            
                            
                                    双向绑定 双向绑定一直都是vue的卖点。举个栗子如下图。 我们在data中写入了值为 hello world 的 msg。并绑定到输入框input 和 div 中。这个时候,input 和 div中显示的内容都为 hello world,在当我们修改input里的值的时候,div也会跟着一起修改。  ...
                            
                            
                                分类:
其他好文   时间:
2020-02-27 01:16:19   
                                阅读次数:
77