码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
尺取法
#include#include#include#include#include#include#includeusing namespace std;int n,S,sum,a[1010];int main(){ int t=0,s=0,res; scanf("%d%d",&n,&S)...
分类:其他好文   时间:2015-02-11 20:34:14    阅读次数:106
组合数学 + dp
//CodeForces 232B//原先 T 了的代码 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 const int ...
分类:其他好文   时间:2015-02-11 20:22:03    阅读次数:160
HDU 4352
1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL __int64 7 using namespace std; 8 9 LL dp[25][1>=1;27 }28 return ret...
分类:其他好文   时间:2015-02-11 20:18:09    阅读次数:129
javascript的跨域调用
【服务端】[WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.None)] [ToolboxItem(false)] [System.Web.Scri...
分类:编程语言   时间:2015-02-11 20:15:27    阅读次数:264
POJ 1041 John's trip (欧拉回路)
题目地址:POJ 1041 题目要求是字典序,所以要先对边号进行排序,使得每次总是先遍历到边号较小的点。用vector比较方便。 代码如下: #include #include #include #include #include #include #include #include #include using namespace std; #define LL long...
分类:其他好文   时间:2015-02-11 18:43:41    阅读次数:178
HDU 1247 Hat's words(字典树Trie)
解题思路: 判断给出的单词是否恰好由另外两个单词组成,用栈保存每个子字符串的节点,从这个节点出发判断剩下的字符串是否在字典树中即可。 #include #include #include #include #include #include #include #include #include using namespace std; const int MAXN = 500...
分类:其他好文   时间:2015-02-11 18:41:50    阅读次数:158
C# 建立UDP服务器并接收客户端数据
服务器端对象类库: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Sockets; using System.Net; using System.Threading; using System.IO; namespace Ud...
分类:Windows程序   时间:2015-02-11 18:39:01    阅读次数:556
HDU 1671 Phone List(字典树Trie)
解题思路: 判断是否有一个字符串是另一个字符串的前缀,直接用字典树搞。 #include #include #include #include #include #include #include #include #include #include #define LL long long using namespace std; typedef struct Trie_...
分类:其他好文   时间:2015-02-11 18:35:42    阅读次数:138
C++程序设计实践指导1.15找出回文数改写要求实现
改写要求1:用单链表实现#include #include using namespace std;struct LinkNode{ int data; LinkNode *next;};class PALINDROME{ int low,up; int ...
分类:编程语言   时间:2015-02-11 18:28:20    阅读次数:145
dsfghsdfhdgsdf
#include#includeusing namespace std;struct edge{ int u , v , w ;}e[10000 * 2];int p[110] , n , built , mid ;void init (){ for (int i = 0 ; i...
分类:其他好文   时间:2015-02-11 18:24:33    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!