摘要: 1、迭代器是一种对象,它能够用来遍历STL容器中的部分或全部元素,每个迭代器对象代表容器中的确定的地址。迭代器修改了常规指针的接口,所谓迭代器是一种概念上的抽象:那些行为上象迭代器的东西都可以叫做迭代器。然而迭代器有很多不同的能力,它可以把抽象容器和通用算法有机的统一起来。2、迭代器提供一些基本操作... 阅读全文
posted @ 2016-07-26 21:49 Lawliet__zmz 阅读(132) 评论(0) 推荐(0) 编辑
摘要: The Blocks ProblemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5404 Accepted: 2314DescriptionMany areas of Computer Science use simple, a... 阅读全文
posted @ 2016-07-26 21:09 Lawliet__zmz 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int sum[1002];char str[1000];int main(){ while(scanf("%s",str)&&strcmp(str,"0")) { int len... 阅读全文
posted @ 2016-07-26 10:55 Lawliet__zmz 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 必须去掉前导0和后导0,一个特殊数据是对000.00这样的输出0#include#includeusing namespace std;int main(){ string r; int n,dianwei; const int R_LEN=150;//存下的极限数位大小 s... 阅读全文
posted @ 2016-07-26 09:16 Lawliet__zmz 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Modular multiplication of polynomialsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4516 Accepted: 2033DescriptionConsider po... 阅读全文
posted @ 2016-07-26 00:13 Lawliet__zmz 阅读(272) 评论(0) 推荐(0) 编辑