流水依依

希望朋友们有个好的身体,开开心心工作与学习。

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页

2013年10月12日 #

摘要: BOOL CMEcomDlg::OnInitDialog(){ ..... ..... // TODO: 在此添加额外的初始化代码 CString year ,month ,day; for(int i=0; i<=50 ;i++){ year.Format(_T("%d"),2013-i) ; M_year.InsertString(i,year) ; } for(int i=0; i<12; i++){ month.Format(_T("%d"),i+1) ; M_month.InsertString(i,month) ; } retur 阅读全文
posted @ 2013-10-12 19:11 流水依依 阅读(213) 评论(0) 推荐(0)

摘要: CString.Format的详细用法(转)在MFC程序中,使用CString来处理字符串是一个很不错的选择。CString既可以处理Unicode标准的字符串,也可以处理ANSI标准的字符串。CString的Format方法给我们进行字符串的转换带来了很大的方便,比如常见的int、float和double这些数字类型转换为CString字符串只需一行代码就可以实现。 先看看Format用于转换的格式字符: %c 单个字符 %d 十进制整数(int) %ld 十进制整数(long) %f 十进制浮点数(float) %lf 十进制浮点数(double) %o 八进制数 %s 字... 阅读全文
posted @ 2013-10-12 16:03 流水依依 阅读(309) 评论(0) 推荐(0)

2013年10月11日 #

摘要: Point.hclass Point{private: int X ; int Y ;public: Point(); Point(int x ,int y) ; Point & operator =(Point &A) ; Point operator +(Point A) ; int get_X() ; int get_Y() ; ~Point(void);};Point.cpp#include "Point.h"Point::Point(void){}Point::~Point(void){}Point::Point(int x ,int y):X(x 阅读全文
posted @ 2013-10-11 23:57 流水依依 阅读(411) 评论(0) 推荐(0)

2013年10月8日 #

摘要: Party Games You've been invited to a party. The host wants to divide the guests into 2 teams for party games, with exactly the same number of guests on each team. She wants to be able to tell which guest is on which team as she greets them as they arrive, and as easily as possible, without havin 阅读全文
posted @ 2013-10-08 20:08 流水依依 阅读(688) 评论(0) 推荐(0)

2013年10月7日 #

摘要: Skill Yasser is an Egyptian coach; he will be organizing a training camp in Jordan. At the end of camp, Yasser was quiet amazed that the participants solved all of the hard problems he had prepared; so he decided to give them one last challenge: Print the number of integers having N digits where t.. 阅读全文
posted @ 2013-10-07 13:56 流水依依 阅读(555) 评论(0) 推荐(0)

摘要: Fegla and the Bed Bugs Fegla, also known as mmaw, is coaching a lot of teams. All these teams train together in one place, unfortunately this place doesn’t have any good ventilation and is quite small relative to the number of teams. All these circumstances resulted in a strange creature appearing!. 阅读全文
posted @ 2013-10-07 12:49 流水依依 阅读(488) 评论(2) 推荐(0)

摘要: 题目1544:数字序列区间最小值时间限制:1 秒内存限制:128 兆特殊判题:否题目描述:给定一个数字序列,查询任意给定区间内数字的最小值。输入:输入包含多组测试用例,每组测试用例的开头为一个整数n(1#include #include #include #include #include #include #include #include #include #include #define Max(a,b) ((a)>(b)?(a):(b))#define Min(a,b) ((a)>1 ; make_tree(L,mid,id*2) ; make_tree(mid+1,R.. 阅读全文
posted @ 2013-10-07 09:36 流水依依 阅读(393) 评论(0) 推荐(0)

2013年10月6日 #

摘要: 题目1543:无限完全二叉树的层次遍历时间限制:1 秒内存限制:128 兆特殊判题:否题目描述:有一棵无限完全二叉树,他的根节点是1/1,且任意一个节点p/q的左儿子节点和右儿子节点分别是,p/(p+q)和(p+q)/q。如下图:它的层次遍历结果如下:1/1, 1/2, 2/1, 1/3, 3/2, 2/3, 3/1,...有如下两类问题:1.找到层次遍历的第n个数字。如,n为2时,该数字为1/2;2.给定一个数字p/q,输出它在层次遍历中的顺序,如p/q为1/2时,其顺序为2;输入:输入包含多组测试用例,输入的第一行为一个整数T,代表共有的测试用例数。接下去T行每行代表一个测试用例,每个测试 阅读全文
posted @ 2013-10-06 22:37 流水依依 阅读(362) 评论(0) 推荐(0)

2013年10月5日 #

摘要: 1307: City TourTime Limit:1 SecMemory Limit:128 MB[Submit][Status][Web Board]DescriptionAlice想要从城市A出发到城市B,由于Alice最近比较穷(不像集训队陈兴老师是个rich second),所以只能选择做火车从A到B。不过Alice很讨厌坐火车,火车上人比较多,比较拥挤,所以Alice有很严格的要求:火车的相邻两站间的最大距离尽可能的短,这样Alice就可以在停站的时候下车休息一下。当然Alice希望整个旅途比较短。Input有多组测试数据。每组测试数据的第一行有两个整数N,M,A,B(N=2, A 阅读全文
posted @ 2013-10-05 23:05 流水依依 阅读(213) 评论(0) 推荐(0)

摘要: 1314: ZZY的困惑Time Limit:2 SecMemory Limit:128 M[Submit][Status][Web Board]DescriptionZZY有很多爱好~~比如足球、电影、三国杀、A题,而他希望在这些爱好中能收获一些东西~~但是并不是所有爱好对所有目标都是起积极作用的..ZZY十分的困惑..于是列了下自己想获得的收获并且给每个目标设立了最小要达到的权值...并且给自己的爱好对每个收获目标进行了评值..这个值若是负则代表不利于获得某个收获~~为0代表没影响~~为正的代表利于获得某种收获..现在ZZY已经制作好了这些数据想请你帮帮忙~~在保证所有的目标最低要求都能达 阅读全文
posted @ 2013-10-05 21:38 流水依依 阅读(375) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页