码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
POJ 2676 Sudoku(DFS)
Sudoku Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 16024   Accepted: 7824   Special Judge Description Sudoku is a very simple task. A square table with 9...
分类:其他好文   时间:2015-08-18 16:20:53    阅读次数:127
POJ-1475 Pushing Boxes (BFS+优先队列)
DescriptionImagine you are standing inside a two-dimensional maze composed of square cells which may or may not be filled with rock. You can move nort...
分类:其他好文   时间:2015-08-17 15:18:19    阅读次数:102
using chi-square to analyze a word's relationship with two great parts
注意代码里面用变量控制分类的写法 Uni Bi Tri而且开始想的是两层循环,大循环找词,小循环再每行数数,这样会太慢了所以借鉴源码的思路,是通过一个大循环,在dictionary中记录每个词出现多少词,同时用find标记这一句有没有标注1或0wordpos1相当于记录的是每个词的n11,而对于每....
分类:其他好文   时间:2015-08-17 00:39:08    阅读次数:145
回溯法——Red and Black
Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til...
分类:其他好文   时间:2015-08-15 20:07:33    阅读次数:111
Fire Net HDU杭电1045【DFS】
Problem Description Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.  A block...
分类:Web程序   时间:2015-08-13 18:14:34    阅读次数:104
零基础学python-2.16 列表解析
这一节聊聊强大的列表解析 主要就是在一行里面赋值给列表 下面我们举两个例子: 上面的例子我们引入了range函数,他主要作用是在一定范围里面取整数值 我来解释一下中括号里面的那一句:x**2 for x in range(5) 1.先计算range里面的值 2.通过for,把上面的整数值赋值给x 3.再计算x**2 4.最后就是逐一放到square这个列表里面去 除了上面...
分类:编程语言   时间:2015-08-13 07:45:54    阅读次数:160
leetcode-Spiral Matrix II 螺旋矩阵2之python大法好,四行就搞定,你敢信?
Spiral Matrix II螺旋矩阵Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return...
分类:编程语言   时间:2015-08-12 23:14:13    阅读次数:444
Objective-C:继承的体现
典型的继承例子:形状Shape为基类,继承它的类有:点类Point、圆类Circle、球体类Sphere、矩形类Rectangle、正方形类Square 点类Point也为基类,继承它的类有:圆类Circle、球体类Sphere、矩形类Rectangle、正方形类Square ...
分类:其他好文   时间:2015-08-12 21:14:28    阅读次数:178
Java 第三方库总结
1. OKHttp,好用的Http服务官网地址:http://square.github.io/okhttp/1) 获取http文件内容 1 OkHttpClient client = new OkHttpClient(); 2 3 String run(String url) throws IO....
分类:编程语言   时间:2015-08-11 21:08:14    阅读次数:113
Fire Net
Fire NetTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1045DescriptionSuppose that we have a square city wi...
分类:Web程序   时间:2015-08-11 20:57:16    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!