码迷,mamicode.com
首页 >  
搜索关键字:poj 3126 prime path    ( 51975个结果
poj 2109 Power of Cryptography
Power of CryptographyTime Limit:1000MSMemory Limit:30000KTotal Submissions:17912Accepted:9034DescriptionCurrent work in cryptography involves (among o...
分类:其他好文   时间:2014-05-09 04:24:50    阅读次数:284
[LeetCode][Java]Triangle@LeetCode
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:编程语言   时间:2014-05-08 18:31:51    阅读次数:399
poj 2104 K-th Number(划分树模板)
划分树模板题,敲上模板就ok了。 #include #include #include #include #include #include #include #include #include #include #define MP make_pair #define LL long long #define CLR(a, b) memset(a, b, sizeof(a)) using n...
分类:其他好文   时间:2014-05-08 17:29:39    阅读次数:398
Linux常用
使用shell判断系统时区if[[!`grep-aCST-8/etc/localtime`]];then rm-rf/etc/localtime ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime fiNginx日志切割脚本#!/bin/bash logs_path="/alidata/server/log/nginx/" mv${logs_path}access.log${logs_path}access_$(date-d"ye..
分类:系统相关   时间:2014-05-08 16:41:18    阅读次数:403
BCM wifi分析
一:wifi驱动模块加载 在hardware/libhardware_legacy/wifi/wifi.c调用函数 WIFI_DRIVER_MODULE_ARG := "firmware_path=/etc/wifi/40181/fw_bcm40181a2.bin nvram_path=/etc/wifi/40181/nvram.txt" insmod(DRIVER_MODULE_PAT...
分类:其他好文   时间:2014-05-08 16:22:22    阅读次数:450
Eclipse ADT 导入别的电脑开发的项目
用Eclipse开发的时候经常要导入别的电脑开发的项目,经常会出错,甚至导入不了。 方法一: 把你正在使用的Eclipse开发的随便一个项目,打开,把下图这三个文件复制过去你要导入的项目,覆盖。然后再import项目。ok。 方法二: 打开你要导入的项目的 .classpath 文件,如图: 其中把path改成自己sdk的路径,sourcepath是jdk...
分类:系统相关   时间:2014-05-08 16:08:12    阅读次数:448
leetcode第一刷_Path Sum II
在更新上面一道题的时候我就想,是不是还有一道打印路径的,果不其然啊。 这种题非常常见的,做法也很简单,我是用一个引用的vector来存,满足条件之后直接压入结果集中,当然也可以用数组之类的,都一样。用引用需要注意的问题就是递归进行到后面的时候会对栈中的上层状态产生影响,当然可以用传值的方法来避免这个问题,但是那样子开销太大了(每次船建和销毁一个类对象,不是明智的选择)。那么就是要回退,那什么时候...
分类:其他好文   时间:2014-05-08 11:03:31    阅读次数:248
自定义UITabBarController
网上大多的自定义TabBar都是继承View的,项目中要用到path+Tabbat这样的话(path用的MMDrawerController这个框架),继承View的Tabbar是无法满足条件的(不是一个容器)。下面就介绍下自己写的一个自定义TabBar。...
分类:其他好文   时间:2014-05-08 10:41:38    阅读次数:345
python批量修改指定目录文件名
这小例子只要是说明用python怎么批量修改指定目录的文件名: 记得要把脚本跟修改的文件放在同一个目录下 #encoding:utf-8 import os import sys files = os.listdir('D:\\1') #路径可以自己 for name in files: a = os.path.splitext(name) if a[1] == '.txt': ...
分类:编程语言   时间:2014-05-08 08:16:14    阅读次数:537
Thread create 创建进程
1 #include "windows.h" 2 #include "iostream" 3 #include "stdio.h" 4 5 void StartClone(int nCloneID){ 6 TCHAR szFilename[MAX_PATH]; 7 GetModu...
分类:其他好文   时间:2014-05-08 08:00:45    阅读次数:441
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!