上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 以结构体point为例,成员变量x,y,定义加法和输出流方式。 阅读全文
posted @ 2016-08-23 10:59 Yan_Bin 阅读(146) 评论(0) 推荐(0)
摘要: 考虑这样一个题目: 输入的每行是若干整数,要求输出每行所有整数的和。 实例代码: 阅读全文
posted @ 2016-08-23 10:53 Yan_Bin 阅读(376) 评论(0) 推荐(0)
摘要: 1.set集合中如果存储string类,那么集合元素将按照字典序全部排好。 2.set集合的遍历: set<string>::iterator it; for(it = dict.begin() ; it != dict.end() ; it++) cout << *it << endl; 阅读全文
posted @ 2016-08-23 00:16 Yan_Bin 阅读(164) 评论(0) 推荐(0)
摘要: Andy’s First Dictionary Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words t 阅读全文
posted @ 2016-08-23 00:14 Yan_Bin 阅读(148) 评论(0) 推荐(0)
摘要: The Blocks Problem Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Practice UVA 101 uDebug The Blocks Problem Submit Stat 阅读全文
posted @ 2016-08-22 23:51 Yan_Bin 阅读(190) 评论(0) 推荐(0)
摘要: 1.Vector数组可以认为是大小的数组。 2.它可以实现排序,函数是sort(v.begin(),v.end() 。 3.它可以实现二分查找功能,函数是lower_bound(v.begin(),v.end(),x)。查找的是值x,返回第一个大于或者等于小的值的指针。如果查找返回的是指针v.end 阅读全文
posted @ 2016-08-22 23:20 Yan_Bin 阅读(2973) 评论(1) 推荐(0)
摘要: Where is the Marble? Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Practice UVA 10474 uDebug Where is the Marble? Submi 阅读全文
posted @ 2016-08-22 23:17 Yan_Bin 阅读(323) 评论(0) 推荐(0)
摘要: Packets Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 1017 Description A factory produces products pac 阅读全文
posted @ 2016-08-22 22:56 Yan_Bin 阅读(247) 评论(0) 推荐(0)
摘要: 524 Prime Ring ProblemA ring is composed of n (even number) circles as shown in diagram. Putnatural numbers 1; 2; : : : ; n into each circle separatel 阅读全文
posted @ 2016-08-21 15:19 Yan_Bin 阅读(264) 评论(0) 推荐(0)
摘要: Yogurt factory Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice OpenJ_Bailian 2393 Description The cows hav 阅读全文
posted @ 2016-08-21 13:26 Yan_Bin 阅读(337) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页