• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
CharlotteY
我们都是颜色不一样的海。
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2012年11月18日

hdu 1505
摘要: City GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2743Accepted Submission(s): 1099Problem DescriptionBob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by are 阅读全文
posted @ 2012-11-18 15:18 CharlotteY 阅读(135) 评论(0) 推荐(0)
 
 

2012年11月12日

hdu 3466
摘要: Proud MerchantsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1365Accepted Submission(s): 562Problem DescriptionRecently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a resul 阅读全文
posted @ 2012-11-12 22:11 CharlotteY 阅读(161) 评论(0) 推荐(0)
 
关于sort和qsort
摘要: 做题中常会用到排序,之前一直都在用最笨的冒泡法,一遍一遍的写下了连自己都受不了自己了,所以打算开始学一下新的排序方法,就从sort和qsort学起吧(话说这两个最简单了)。sort包含在c++的<algorithm>头文件中,个人认为用法要比qsort简单。先说sort的用法:头文件:#include <algorithm>using namespace std;1.默认的sort函数是按升序排。sort(a,a+n); //两个参数分别为待排序数组的首地址和尾地址2.可以自己写一个cmp函数,按特定意图进行排序。例如:int cmp( const int &a 阅读全文
posted @ 2012-11-12 11:09 CharlotteY 阅读(226) 评论(0) 推荐(0)
 
hdu 1789
摘要: Doing Homework againTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3190Accepted Submission(s): 1855Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline 阅读全文
posted @ 2012-11-12 10:47 CharlotteY 阅读(150) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3