码迷,mamicode.com
首页 >  
搜索关键字:walk    ( 975个结果
HDU 5001 Walk
解题思路:这是一道简单的概率dp,只要处理好相关的细节就可以了。 dp[d][i]表示走d步时走到i的改概率,具体参考代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 cons...
分类:其他好文   时间:2015-09-25 23:08:25    阅读次数:256
Python分析C盘大文件[夹]
__author__?=?‘baron‘ import?os import?codecs from?os.path?import?join,?getsize def?getdirsize(dirDict,?rootpath): ????dirsize?=?0L ????for?root,?dirs,?files?in?os.walk(r...
分类:编程语言   时间:2015-09-24 16:44:14    阅读次数:204
scons脚本示例
import os def list_dir(dir): all_dirs = [] for root, dirs, files in os.walk('./', True): for name in dirs: cur_dir = os.path.join(root,name) if cur_di...
分类:其他好文   时间:2015-09-15 17:54:48    阅读次数:148
HDU-5001 Walk (概率DP)
Problem DescriptionI used to think I could be anything, but now I know that I couldn't do anything. So I started traveling.The nation looks like a con...
分类:其他好文   时间:2015-09-11 14:10:07    阅读次数:180
hdu 5335 Walk Out(bfs+寻找路径)
Problem DescriptionIn an n?m maze, the right-bottom corner is the exit (position (n,m) is the exit). In every position of this maze, there is either a...
分类:其他好文   时间:2015-09-11 12:43:46    阅读次数:191
Python中如何遍历指定目录下的所有文件?
例如:在C:\TDDOWNLOAD目录下有a.txt、b.txt两个文件,另有\sub1子文件夹,C:\TDDOWNLOAD\sub1下又有c.txt、d.txt两个文件。 1. os.walk os.walk()返回一个三元素的tuple:当前路径、子文件夹名称、文件列表。 >>...
分类:编程语言   时间:2015-09-10 13:21:12    阅读次数:159
100 door puzzle
问题重述:There are 100 doors in a long hallway. They are all closed. The first time you walk by each door, you open it. The second time around, you close ...
分类:其他好文   时间:2015-09-09 11:20:31    阅读次数:159
Hdu 5001 Walk 概率dp
WalkTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5001DescriptionI used to think I could be anything, but now I ...
分类:其他好文   时间:2015-09-08 23:31:40    阅读次数:303
Generating SSH keys
Generating SSH keys MAC WINDOWS LINUX ALL SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the p...
分类:其他好文   时间:2015-09-06 21:45:34    阅读次数:405
Project Tango 的一些应用
Project Tango AR Example Walk Throughhttps://www.youtube.com/watch?v=uRtREKKUxJs几何体特征识别https://www.youtube.com/watch?v=98znvIIg_HYGoogle Project Tango...
分类:其他好文   时间:2015-09-05 20:34:53    阅读次数:193
975条   上一页 1 ... 71 72 73 74 75 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!