摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: int convert... 阅读全文
posted @ 2017-11-19 21:07 PirateLHX 阅读(92) 评论(0) 推荐(0)
摘要: cuda 版本 cat /usr/local/cuda/version.txt cudnn 版本 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 阅读全文
posted @ 2017-11-17 16:46 PirateLHX 阅读(269) 评论(0) 推荐(0)
摘要: 很简单的:直接cd /etc/default 然后用emacs(vi也可以)打开grub:sudo emacs grub 搜索:#GRUB_GFXMODE=640x480编辑:640x480改成你想要的分辨率,并取消前面的#例如:GRUB_GFXMODE=1920x1080 更新:sudo upda 阅读全文
posted @ 2017-11-17 11:20 PirateLHX 阅读(318) 评论(0) 推荐(0)
摘要: 用于目标检测和语义分割的丰富特征层次结构的提取 1、摘要 过去几年,在权威数据集PASCAL上,物体检测的效果已经达到一个稳定水平。效果最好的方法是融合了多种图像低维特征和高维上下文环境的复杂结合系统。在这篇论文里,我们提出了一种简单并且可扩展的检测算法,可以将mAP在VOC2012最好结果的基础上 阅读全文
posted @ 2017-11-12 00:31 PirateLHX 阅读(1893) 评论(0) 推荐(0)
摘要: C++: 阅读全文
posted @ 2017-11-10 13:47 PirateLHX 阅读(142) 评论(0) 推荐(0)
摘要: Problem Description "One thing is for certain: there is no stopping them;the ants will soon be here. And I, for one, welcome our new insect overlords. 阅读全文
posted @ 2017-11-06 17:03 PirateLHX 阅读(297) 评论(0) 推荐(0)
摘要: 题目描述: 在一个周长为10000的圆上等距分布着n个雕塑。现在又有m个新雕塑加入(位置可以随意放),希望所有n+m个雕塑在圆周上均匀分布。这就需要移动其中一些原有的雕塑。要求n个雕塑移动的总距离尽量小。 输入格式: 输入包含若干组数据。每组数据仅一行,包含两个整数n和m(2<=n<=1000, 1 阅读全文
posted @ 2017-11-06 15:22 PirateLHX 阅读(361) 评论(0) 推荐(0)
摘要: 题目描述: 圆 桌旁坐着n个人,每人有一定数量的金币,金币总数能被n整除。每个人可以给他左右相邻的人一些金币,最终使得每个人的金币数目相等。你的任务时求出被转手 的金币数量的最小值。比如,n=4,且4个人的金币数量分别为1,2,5,4时,只需转移4枚金币(第3个人给第2个人两枚金币,第2个人和第4个 阅读全文
posted @ 2017-11-03 16:28 PirateLHX 阅读(202) 评论(0) 推荐(0)
摘要: //UVA 11292 #include #include using namespace std; const int maxiter=20001; int dra[maxiter],qi[maxiter]; int main() { int n,m; while(scanf("%d%d",&n,&m)==2&&n&&m) { for(int i=0;i=dra[i]) { ... 阅读全文
posted @ 2017-11-01 10:38 PirateLHX 阅读(138) 评论(0) 推荐(0)
摘要: // Best Time to Buy and Sell Stock 1class Solution { public: int maxProfit(vector& prices) { if(prices.size()==0) return 0; int maxres=prices[prices.size()-1]; ... 阅读全文
posted @ 2017-10-29 16:56 PirateLHX 阅读(146) 评论(0) 推荐(0)