摘要: 先来介绍一下stl中的map这个功能 头文件#include<map> map是STL的一个关联容器,它提供一对一的数据处理能力 就像一个人对应一个编号一样 定义 为 map<int, string> mapPeople;<!--?xml:namespace prefix = "o" /--> in 阅读全文
posted @ 2016-02-23 21:50 Not-Bad 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Description 我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。 Input 输入数据的第一行是一个整数C,表示测试实例的个数,然后是C 行数据,每行包含 阅读全文
posted @ 2016-02-23 20:41 Not-Bad 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Description In a k bit 2's complement number, where the bits are indexed from 0 to k-1, the weight of the most significant bit (i.e., in position k-1) 阅读全文
posted @ 2016-02-23 20:07 Not-Bad 阅读(389) 评论(0) 推荐(0) 编辑