会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
莫负韶华
部分博文从我的csdn迁移而来: http://blog.csdn.net/mofushaohua_ln
博客园
首页
联系
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
38
下一页
2017年9月15日
UVA - 12504 Updating a Dictionary
摘要: /* 法一借鉴自: http://blog.csdn.net/wcr1996/article/details/41050253 总结: 1. 写一个IsValid()函数,是十分必要的。因为这题有一个潜在的坑点,就是 key:value 这个对应关系中,...
阅读全文
posted @ 2017-09-15 20:11 mofushaohua
阅读(155)
评论(0)
推荐(0)
2017年9月11日
析构函数与运行错误
摘要: 今天在做数据结构的实验课作业时,突然一直运行错误,可我检查了几次代码,也没有发现哪里有错(也并没有经常导致运行错误的,数组越界那些),经过20min左右的试探和摸索,终于发现了这次运行错误的时间,并且,还和析构函数有些关系 (而且,最尴尬的是,在我发现以后,我才...
阅读全文
posted @ 2017-09-11 16:12 mofushaohua
阅读(572)
评论(1)
推荐(0)
2017年9月10日
UVA - 1597 Searching the Web
摘要: /* 法一借鉴自bolg:http://blog.csdn.net/code4101/article/details/39587211 收获: 1. typedef定义数组类型,格式应为 typedef int int_array[80]; 此后int_...
阅读全文
posted @ 2017-09-10 17:00 mofushaohua
阅读(265)
评论(0)
推荐(0)
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区) C. Coconut
摘要: //基础题#include #include using namespace std;const int N = 1e3 + 5;int supply[N];int cost_day[N];int main(){ int t, n, b; cin >> t; whil...
阅读全文
posted @ 2017-09-10 16:57 mofushaohua
阅读(211)
评论(0)
推荐(0)
2017年9月9日
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区) A. Banana
摘要: /* 本题收获: 1. map > 的插入 格式如下: typedef map,int> mymap; mymap m; m.insert(pair,int>(vs,100)); //pair,int>可简写为 make_pair 有关博客: http://...
阅读全文
posted @ 2017-09-09 14:13 mofushaohua
阅读(579)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
38
下一页
公告