
其他
洛神之思
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
初学STL——map
//感觉STL真的很好用,有现成的模版供使用,真的不错。 //而map是按字典序排序的。源代码:#include#include //map容器#include //迭代器using namespace std;int main(){map map1;map:: iterator mapter;原创 2012-08-25 19:32:03 · 384 阅读 · 0 评论 -
0—1背包的引用
题目源地址:http://121.249.217.157:8080/contest/view.action?cid=45#problem/Ahttp://acm.hdu.edu.cn/showproblem.php?pid=2955借鉴地址:http://blog.youkuaiyun.com/aacm1992/article/details/7763965转载 2013-04-29 23:04:17 · 617 阅读 · 0 评论 -
OUC——1058(通过这个题才知道不是每4年一闰年)
题目链接地址:http://121.249.217.157/JudgeOnline/problem.php?id=1058题目:(公元1年1月1日星期一,求公元后的任意年的月日是星期几)(在网上有个泰勒公式,是快速求这个问题的)#includeusing namespace std;int num[13]={0,31,28,31,30,31,30,31,31,30,31,30,原创 2013-04-17 18:40:11 · 682 阅读 · 0 评论 -
学习(输出运行时间和随机读取函数)
源代码:#include#include#include#includeusing namespace std;int main(){int a[10000];int n;while(cin>>n){srand((int)time(0));for(int i=0;i a[i]=(int)rand(); //随机读取数据(以时间作为种子原创 2012-09-11 10:55:09 · 463 阅读 · 0 评论 -
ubuntu下mysql datetime类型错误 Out of range value for column
导入csv数据到mysql遇到的问题:(1)使用load data infile filePath into table tableName fields terminated by ',' lines terminated by'\r\n'; 语句向tableName表中导入csv文件,出现 Out of range value for column(#1264)问题。原创 2015-04-14 17:48:48 · 2265 阅读 · 0 评论