码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
班长信息2
/* * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 13 日 * 问题介绍: 班长信息 * 版 本 号:v1.0 */ #include #include using namespace std; class Stu //声明基类 { pu...
分类:其他好文   时间:2014-05-15 15:17:02    阅读次数:241
uva 101 - The Blocks Problem
用 栈 stack 来模拟 题目意思:http://blog.csdn.net/mobius_strip/article/details/12765319 下面的代码有坑,输出格式需要调。 #include #include #include #include #include using namespace std; const int maxn=25+5; stacks[maxn]; i...
分类:其他好文   时间:2014-05-15 07:22:04    阅读次数:273
继承 --判断
/* * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 13 日 * 问题介绍: 继承的判断 * 版 本 号:v1.0 */ #include using namespace std; class A //A为基类 {...
分类:其他好文   时间:2014-05-15 07:03:51    阅读次数:282
HDU 2222-Keywords Search-AC自动机模版题
纯粹的模版。。。 学习模版总会是一个快乐的过程。。。。 #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int...
分类:其他好文   时间:2014-05-15 03:02:53    阅读次数:275
Codeforces 430A Points and Segments (easy)
题意:让你染色点,要求在给出的区间内|红色个数-蓝色个数| 思路:排序后依次交替染色就能达到效果 #include #include #include #include #include using namespace std; const int MAXN = 110; int arr[MAXN]; int n,m,x,y; int main(){ scanf("%d%d",...
分类:其他好文   时间:2014-05-15 02:53:54    阅读次数:205
字符串转日期
//Processing date     struct tm time; std::string date; char dateBuff[128] = {0}; time.tm_year = atoi(md_date.getString().substr(0,4).c_str()) - 1900; time.tm_mon =  atoi(md_date.getString().subs...
分类:其他好文   时间:2014-05-14 21:52:15    阅读次数:248
HDU 4039 The Social Network bfs
算了下复杂度好像是n^3 就感觉不大好做。结果n^31a。。。 #include #include #include #include #include #include #include #include using namespace std; #define eps 1e-9 #define PI acos(-1.0) #define N 1005 #define inf ...
分类:Web程序   时间:2014-05-14 20:11:42    阅读次数:309
string wstring
//只扩展为wstring,不考虑编码 std::wstringString2WString(conststd::string&str) { std::wstringwstr(str.length(),L‘‘); std::copy(str.begin(),str.end(),wstr.begin()); returnwstr; } //只拷贝低字节至string中 std::stringWString2String(conststd::wstring&ws..
分类:其他好文   时间:2014-05-14 15:58:11    阅读次数:262
多重继承--判断
/* * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 13 日 * 问题介绍: 继承的判断 * 版 本 号:v1.0 */ #include using namespace std; class Animal //动物类 { public: ...
分类:其他好文   时间:2014-05-14 15:00:46    阅读次数:199
hdu 开门人和关门人
/* * hdu OpenDoorManAndCloseDoorMan * date 2014/5/13 * state AC */ #include #include #include #include using namespace std; struct DoorMan { char name[20]; int startH,startM,startS; ...
分类:其他好文   时间:2014-05-14 14:58:40    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!