码迷,mamicode.com
首页 > 其他好文
poj 1363 Rails
题目链接:http://poj.org/problem?id=1363...
分类:其他好文   时间:2014-09-22 22:36:03    阅读次数:184
POJ 2488(dfs+字典序)
poj2488 题意:  问能不能不重复地走能遍历所有的棋格,走法按中国象棋马的方法。 分析: dfs+字典序输出... 我的字典序处理是用的String 来存,每次dfs后将该次有效遍历的地址加到串里面。从(0,0)开始。其他的就是基本的dfs知识~ #include #include #include #include #include #define Max 30 u...
分类:其他好文   时间:2014-09-22 23:25:43    阅读次数:180
poj 2503 Babelfish
题目链接:http://poj.org/problem?id=2503 题目大意:就是给你一本词典,问你能否在词典中找到你要查询单词的意思,不能就输出eh 思路:map的入门级题,直接词典中的词组存到map中,然后直接查询。就是有些细节需要注意 code: #include #include #include #include #include using nam...
分类:其他好文   时间:2014-09-22 22:35:23    阅读次数:179
动物怎么叫
根据给出的基类Animal和main()函数。 1、根据给出的main()函数和运行结果的提示,设计出相关的各个类,注意观察运行结果,提取出每个类中需要的数据成员,并匹配上需要的成员函数。 2、显然,Animal设计为抽象类更合适,Animal不需要能够实例化,是专门作基类使用的。改造程序,使Animal设计为抽象类,这时main()函数中p = new Animal();将出错,将此行删除。...
分类:其他好文   时间:2014-09-22 23:41:53    阅读次数:199
hdu 2072 单词数(STL set写法)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2072 思路简单,但是注意一个细节就是最后可能是空格结束的,就是这儿让我WA啦好多次呀。。。 code: #include #include #include #include #include #include #include using namespace std; int...
分类:其他好文   时间:2014-09-22 22:51:43    阅读次数:184
hdu 5035 Delivery(概率&分部积分)
Delivery Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 156    Accepted Submission(s): 97 Problem Description Today, Matt goes to de...
分类:其他好文   时间:2014-09-22 23:58:13    阅读次数:355
共同体
#include struct { int num; char name[10]; char sex; char job; union { int class1; char position[10]; } category; } p[2];void main() { int i,n; for(i =...
分类:其他好文   时间:2014-09-22 22:17:23    阅读次数:186
DNA Sequence(POJ2778 AC自动机dp+矩阵加速)
传送门DNA SequenceTime Limit: 1000MSMemory Limit: 65536KDescriptionIt's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's ...
分类:其他好文   时间:2014-09-22 22:33:43    阅读次数:276
B树、B-树、B+树
http://blog.csdn.net/manesking/archive/2007/02/09/1505979.aspxB树即二叉搜索树: 1.所有非叶子结点至多拥有两个儿子(Left和Right); 2.所有结点存储一个关键字; 3.非叶子结点的左指针指向小于其关键字的子树,右指针指向大于其关...
分类:其他好文   时间:2014-09-22 22:00:03    阅读次数:226
SoapUI Pro Project Solution Collection-Custom project and setup
import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import com.eviware.soapui.SoapUI; import com.eviware.soapui.SoapUIProSett...
分类:其他好文   时间:2014-09-22 22:33:13    阅读次数:232
HTTP get post详解
一 原理区别 一般在浏览器中输入网址访问资源都是通过GET方式;在FORM提交中,可以通过Method指定提交方式为GET或者POST,默认为GET提交Http定义了与服务器交互的不同方法,最基本的方法有4种,分别是GET,POST,PUT,DELETEURL全称是资源描述符,我们可以这样认 为:一...
分类:其他好文   时间:2014-09-22 22:16:03    阅读次数:324
horizon源码分析(二)
一、简要回顾对于请求:地址:/dashboard/admin/instances/方式:POST参数:instances_filter_q:action:instances__soft_reboot__89a8849b-a3cd-4ce0-9158-c3dd69e8508eURL绑定为:openst...
分类:其他好文   时间:2014-09-22 21:59:03    阅读次数:548
树莓派相关-树莓派串口配置方法(转)
转:http://blog.csdn.net/yangqicong11/article/details/26571787树莓派是否能够使用串口呢,答案是肯定的 ,以下是具体方法1.树莓派的第一排的第三,四,五个分别,也就是下图的6,8,10三个端口分别是地,TX与RX,与被连接设备连接起来。注意树莓...
分类:其他好文   时间:2014-09-22 21:58:43    阅读次数:223
LeetCode Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-09-22 22:48:33    阅读次数:180
leetcode - Search in Rotated Sorted Array I & II
Search in Rotated Sorted Array ISuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2...
分类:其他好文   时间:2014-09-22 23:54:43    阅读次数:271
shell脚本
1. 写一个脚本,利用循环计算10的阶乘#!/bin/shfactorial=1for a in `seq 1 10`do factorial=`expr $factorial \* $a`doneecho "10! = $factorial"2. 写一个脚本,执行后,打印一行提示“Please i...
分类:其他好文   时间:2014-09-22 22:47:53    阅读次数:202
2014/9/22
1System.in 1 public class wori //先用InputStreamReader套System.in,再用BufferedReader套是常用方法 2 { 3 public stat...
分类:其他好文   时间:2014-09-22 23:04:23    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!