1 #include<cstdio> 2 #include<iostream> 3 #define M 1000000007 4 using namespace std; 5 int f[16][16][16][16][16][6],ma[16][16][16][16][16][6],a[6],k;
分类:
其他好文 时间:
2016-03-02 23:54:52
阅读次数:
191
#include <iostream> using namespace std; int m,n,res; char s[105][105]; void dfs(int x,int y) { s[x][y]='*'; for(int i=-1;i<=1;i++) for(int j=-1;j<=1;
分类:
其他好文 时间:
2016-03-02 23:54:17
阅读次数:
201
题目传送门:http://poj.org/problem?id=3264 这道题就是简单的求最大值求最小值。 #include<cstdio> #include<cstring> #include<iostream> using namespace std; const int maxn=50010
分类:
其他好文 时间:
2016-03-02 23:39:41
阅读次数:
208
题目链接:http://poj.org/problem?id=1164 1、深搜,每个点都访问一次,没有标记的话,就做深搜,同时标记。 #include <iostream> #include <algorithm> #include <cstring> using namespace std; i
分类:
其他好文 时间:
2016-03-02 23:30:39
阅读次数:
193
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { en
分类:
编程语言 时间:
2016-03-02 22:04:37
阅读次数:
232
原题例如以下: Implement the following operations of a stack using queues. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the st
分类:
其他好文 时间:
2016-03-02 21:48:27
阅读次数:
143
1 // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include<iostream> 6 #include"TEST2.h" 7 #include<exception> 8 using name
分类:
编程语言 时间:
2016-03-02 20:07:12
阅读次数:
215
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
分类:
其他好文 时间:
2016-03-02 17:54:11
阅读次数:
152
Html.BeginForm():该方法用于构建一个From表单的开始, 他的构造方法为:Html.BeginForm("ActionName","ControllerName",FormMethod.method) 1、Views代码 1 @using (Html.BeginForm("add",
分类:
Web程序 时间:
2016-03-02 17:43:38
阅读次数:
243
以每个字符为中心,分两种情况向两边扩展。 manacher算法参见http://www.cnblogs.com/houkai/p/3371807.html AC代码: #include <string> #include <cstdio> #include <iostream> using name
分类:
其他好文 时间:
2016-03-02 16:31:42
阅读次数:
142