码迷,mamicode.com
首页 >  
搜索关键字:fine grained stripin    ( 5969个结果
正整数分组
1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstdio> 6 #define _xx ios_base::sync_with_stdio(0);ci ...
分类:其他好文   时间:2017-04-06 21:03:24    阅读次数:175
传教士与野人过河问题(A*搜索 C++)
传教士与野人过河问题: 任意时刻,左岸、右岸、船上如果传教士人数少于野人人数,传教士就会被野人吃掉。当然野人会划船。传教士人数为0也是可以的。 启发函数 f=g+h. g当前结点所在解空间树的深度。h=m+c-2*b. m,c分别是当前状态下左岸传教士和野人的数目。b=1表示当前船在左岸停靠。b=0 ...
分类:编程语言   时间:2017-04-06 19:31:39    阅读次数:682
HDU 5544 Ba Gua Zhen dfs+高斯消元
Ba Gua Zhen Problem Description During the Three-Kingdom period, there was a general named Xun Lu who belonged to Kingdom Wu. Once his troop were chas ...
分类:其他好文   时间:2017-04-06 19:25:03    阅读次数:248
prop & attr
像checkbox,radio和select这样的元素,选中属性对应“checked”和“selected”,这些也属于固有属性,因此需要使用prop方法去操作才能获得正确的结果。 如果上面使用attr方法,则会出现: 对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。对于HTML元 ...
分类:其他好文   时间:2017-04-06 17:47:33    阅读次数:177
E - Period
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the pr ...
分类:其他好文   时间:2017-04-06 17:45:13    阅读次数:192
结构体
#define _CRT_SECURE_NO_WARNINGS #include #include typedef struct Peo { int age; char name[32]; }peo; void copy1(peo *obj1, peo *obj2) { *obj1 = *obj2;... ...
分类:其他好文   时间:2017-04-06 15:29:27    阅读次数:125
object oriented programming : class application
class Thread_Sync; class Critical; class Info; class Info{Info(std::string str):m_info(str){} private: std::string m_info;}; // a process need: { pre-... ...
分类:移动开发   时间:2017-04-06 12:50:05    阅读次数:194
HDOJ1811解题报告
题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1811 题目概述: 中文题就略了。 大致思路: 显然这是一个拓扑排序的问题,不过题中有两个点rating相等的情况,我们发现因为不关心最后的排序结果,所以用并查集合并一下相等的点这时候就是求一个有向图的 ...
分类:其他好文   时间:2017-04-05 20:40:50    阅读次数:178
hdu 5852 :Intersection is not allowed! 行列式
有K个棋子在一个大小为N×N的棋盘。一开始,它们都在棋盘的顶端,它们起始的位置是 (1,a1),(1,a2),...,(1,ak) ,它们的目的地是 (n,b1),(n,b2),...,(n,bk)。 一个位于 (r,c) 的棋子每一步只能向右走到 (r,c+1) 或者向下走到 (r+1,c) 。 ...
分类:其他好文   时间:2017-04-05 20:27:00    阅读次数:216
(6)二叉树遍历——4
二叉树遍历主要有3种方式:先序遍历,中序遍历,后序遍历。 二叉树是每个节点最多有两个子树的树结构。 二叉树可以为空,但树不能为空。 二叉树中每个元素的子树都是有序的。 1 #include "iostream" 2 #define N 7 3 4 using namespace std; 5 6 t ...
分类:其他好文   时间:2017-04-05 19:01:03    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!