码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
bzoj 1079: [SCOI2008]着色方案
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
hd 1241
#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
[POJ3368]Balanced Lineup
题目传送门: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
深度优先搜索(dfs),城堡问题
题目链接: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
(LeetCode)两个队列来实现一个栈
原题例如以下: 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
c++异常模板复习
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
ASP.NET MVC Html.BeginForm用法1
Html.BeginForm():该方法用于构建一个From表单的开始, 他的构造方法为:Html.BeginForm("ActionName","ControllerName",FormMethod.method) 1、Views代码 1 @using (Html.BeginForm("add",
分类:Web程序   时间:2016-03-02 17:43:38    阅读次数:243
1040 the longest symmetric
以每个字符为中心,分两种情况向两边扩展。 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!