1.java.lang.StackOverflowError: null 2021-03-19 15:02:45.179 [http-nio-8081-exec-6] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost]. ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-08-06 15:08:00
                            
                                105阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            当我在centos6.6中运行perl脚本时候,出现“Server Version Unavailable..... line 545"问题,如图:这是因为无法验证服务器的SSL证书才造成的。设置如下的环境变量,就可以解决问题:export PERL_LWP_SSL_VERIFY_HOSTNAME=0
这个环境变量只是对当前session起作用,你可以加入到/etc/bashrc中的最            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2015-06-11 16:07:10
                            
                                961阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            /* 数组的迭代方法(遍历数组中的每一项做一些特殊的处理) forEach 遍历数组每一项(数组中有多少项,就会触发执行多少次回调函数,每一次把迭代的当前项和当前项的索引传递给回调函数) map 和forEach类似,只不过支持返回值,回调函数中的返回值会把当前迭代的这一项替换掉 find 迭代数据            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2020-10-17 14:45:00
                            
                                48阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            When performing an online backup, what is the proper order of the following steps?A. Issue the alter database end backup command.B. Back up the archiv            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2017-11-08 14:07:00
                            
                                48阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            传送门 题目大意:n棵树(10^5),坐标xi,高度hi,把这棵树砍到,可以向右倒[xi,xi+hi]被占, 向左倒[xi-hi,xi]被占,必须要倒的坐标没有被占才能倒,不砍倒就xi被占,问最多砍几棵树。 题解: 比赛时没A,现在A了,刚睡醒做题智商还是在线的.... 大多是贪心..我的方法应该不            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2019-11-28 08:59:00
                            
                                56阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            A题 做法很明显,就是隔壁连续1和连续2取min,虽然写的比较复杂 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+10; int a[N]; queue<int> q1,q2; i            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2020-12-16 23:38:00
                            
                                56阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            点击打开链接A. Toy Carstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Susie, thanks to her older             
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-09-07 16:46:13
                            
                                28阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            缓存、队列JVM关闭JVM关闭可以分为三种情况,如下图       对于强制关闭的几种情况,系统关机,操作系统会通知JVM进程关闭并等待,一旦等待超时,系统会强制中止JVM进程;kill -9、Runtime.halt()、断电、系统crash这些种方式会直接无商量中止JVM进程,JVM完全没有执行扫尾工作的机会。而对于正常关闭、异常关闭的几种情况,JVM关闭前,都会调用已注册的shutdown            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-12-14 20:55:04
                            
                                29阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            贪心,能倒就倒,能往左就往左实在不行往右 因为倒不倒都只影响下一棵树 大不了下一个不倒还对后面更优。 #include<bits/stdc++.h> using namespace std; #define orz cout<<"lyakioi!!!!!!!!!!!!!!!!!"<<endl inl ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-09-03 18:28:00
                            
                                17阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            CF545C Woodcutters 洛谷传送门 题意翻译 给 n 棵树在一维数轴上的坐标,以及它们的长度。现在要你砍倒 这些树,树可以向左倒也可以向右倒,砍倒的树不能重合、当然 也不能覆盖其他的树原来的位置,现在求最大可以砍倒的树的数 目。 1 ⇐ n ⇐ 105 ; 1 ⇐ x i , h i            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2020-11-25 18:13:00
                            
                                37阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            Metric Matrice 时间限制:1000 ms  |  内存限制:65535 KB  难度:1 描述 Given as input a square distance matrix, where a[i][j] is the distance between point i and point j, determine if the distance matrix is            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-03-18 09:46:30
                            
                                39阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            点击打开链接
D. Queue
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Little girl Susie went shopping with he            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-09-07 16:44:42
                            
                                83阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            【题目链接】:click here~~【题目大意】:题意】:给一个矩阵表示i行j列某辆车的状态,统计最后没有坏的车代码:/*  * Problem: CodeForces - 545A * Running time: 15MS  * Complier: G++  * Author: herongwei * Create Time:  7:47 2015/9/17 星期四*统            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-07-29 16:41:48
                            
                                116阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            A. Sushi for Twotime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputArkady invited Anna for a dinner to a sushi restaurant. The resta...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-09-06 14:45:04
                            
                                817阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            The boundary of a binary tree is the concatenation of the root, the left boundary, the leaves ordered from left-to-right, and the reverse order of the            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2020-03-03 04:47:00
                            
                                98阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            [题目链接] https://codeforces.com/contest/545/problem/E [算法] 首先求 u 到所有结点的最短路 记录每个节点最短路径上的最后一条边 答案即为以u为根的一棵最短路径生成树 时间复杂度 : O(NlogN) [代码]            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-10-05 21:26:00
                            
                                58阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            目录: cv2.threshold cv2.distanceTransform cv2.cvtColor 1. cv2.threshold opencv: 阈值处理(cv2.threshold) 探究(图示+源码) 官方说明文档 OpenCV 中cv2.threshold详解,(大白话版) open ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-08-13 15:06:00
                            
                                530阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            A. Sushi for Twotime limit per test1 secondmemory limit per test2            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-03-14 09:55:36
                            
                                264阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            题目链接:http://codeforces.com/contest/1138A. Sushi for Two解题思路:利用"缩点"变成1,2,1,            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-05-31 09:34:25
                            
                                85阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            第一是权限报异常,password的权限只能给600 1Password file read access must be restricted: /data/jdk1.8.0_60/jre/lib/management/jmxremote.password  这是权限设置问题,这两个文件,只能设置600的权限 第二就是用户名和密码格式jmxremote.p            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-04-11 09:44:09
                            
                                50阅读