码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
POJ 2019 Power of Cryptography
技巧。 #include #include using namespace std; double n,p; int main(){ while(cin>>n>>p){ cout<<pow(p,1/n)<<endl; } }...
分类:其他好文   时间:2015-04-13 18:54:12    阅读次数:137
nyoj 79 拦截导弹 (动态规划)
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=79题意即求最长单调递减子序列#include#include#includeusing namespace std;#define N 22int h[N];int d[N];int mai...
分类:其他好文   时间:2015-04-13 18:46:03    阅读次数:97
hibernate3.6异常
WARN DTDEntityResolver:73 - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ ins...
分类:Web程序   时间:2015-04-13 18:17:51    阅读次数:193
htmlcxx取指定字段实例
#include #include #include #include #include #include #include using namespace std;using namespace htmlcxx;int main(){ std::string strHtml = "dddddd ....
分类:Web程序   时间:2015-04-13 18:08:14    阅读次数:172
C++运算符重载简单练习 写一个Integer包装类
// Operator.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace std; class Integer { public: //explicit如果添加explicit就不能进行隐式构造 //隐式构造不会导致拷贝构造函数调用 Integer(int num):m_num...
分类:编程语言   时间:2015-04-13 16:42:53    阅读次数:239
【主席树】bzoj3932 [CQOI2015]任务查询系统
先把序列建好,然后区间插入、单点询问等价于在左端点插入,在右端点删除,然后前缀询问。#include#include#includeusing namespace std;#define N 100001typedef long long ll;vectortong[N];typedef vecto...
分类:其他好文   时间:2015-04-13 16:14:33    阅读次数:143
CodeForces Round #298 Div.2
A. Exam果然,并没有3分钟秒掉水题的能力,=_=||n = 5的时候将奇数和偶数分开输出即可保证相邻的两数不处在相邻的位置。 1 #include 2 using namespace std; 3 4 int main() 5 { 6 int n; 7 cin >> n; ...
分类:其他好文   时间:2015-04-13 16:08:28    阅读次数:109
编程之美 大神与三个小伙伴
#include #include using namespace std; const long long great = 1000000007; bool isSame(long long a, long long b, long long c) { if (a == b && b == c) return true; if (a == b) return false; ...
分类:其他好文   时间:2015-04-13 14:42:15    阅读次数:112
C求一个数的二进制1的个数(精版)
#include using namespace std; int Grail(int x) { int N=0; for(;x!=0;x>>=4)//一次左移4位。 { N+="\0\1\1\2\1\2\2\3\1\2\2\3\2\3\3\4"[x&0xf]; } return N; } int main() { cout<<Grail(15)<<endl; }...
分类:其他好文   时间:2015-04-13 14:39:04    阅读次数:115
题目:返回一个二维整数数组中最大子数组的和。
#include #includeusing namespace std;#define M 4#define N 4int maxline(int *array, int len) //求一维数组最大子序列和 { int i, sum = array[0], b = 0,...
分类:编程语言   时间:2015-04-13 14:10:48    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!