CY_

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年4月28日

摘要: Problem DescriptionFibonacci数列,定义如下:f(1)=f(2)=1f(n)=f(n-1)+f(n-2) n>=3。计算第n项Fibonacci数值。Input输入第一行为一个整数N,接下来N行为整数Pi(1#includeusing namespace std;string add(string x,string y){ string ans ; int lenx = x.length(); int leny = y.length(); if(lenx=0;i--) { temp = x[i] - '0' + y[i] -... 阅读全文
posted @ 2014-04-28 16:33 CY_ 阅读(441) 评论(0) 推荐(0) 编辑

摘要: 转自博客园:http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html相信使用过MFC编程的朋友对CString这个类的印象应该非常深刻吧?的确,MFC中的CString类使用起来真的非常的方便好用。但是如果离开了MFC框架,还有没有这样使用起来非常方便的类呢?答案是肯定的。也许有人会说,即使不用MFC框架,也可以想办法使用MFC中的API,具体的操作方法在本文最后给出操作方法。其实,可能很多人很可能会忽略掉标准C++中string类的使用。标准C++中提供的string类得功能也是非常强大的,一般都能满足我们开发项目时使用。 阅读全文
posted @ 2014-04-28 16:03 CY_ 阅读(224) 评论(0) 推荐(0) 编辑

摘要: Problem DescriptionOneof the first users of BIT's new supercomputer was Chip Diller. He extended hisexploration of powers of 3 to go from 0 to 333 and he explored taking varioussums of those numbers.``This supercomputer is great,'' remarked Chip. ``I only wish Timothy were hereto see the 阅读全文
posted @ 2014-04-28 15:54 CY_ 阅读(270) 评论(0) 推荐(0) 编辑

摘要: 题目描述Cainiao is a university student who loves ACM contest very much. It is a festival for him once when he attends ACM Asia Regional Contest because he always can find some famous ACMers there.Cainiao attended Asia Regional Contest Fuzhou Site on November 20, 2011. After he got seat map, he wanted t 阅读全文
posted @ 2014-04-28 09:46 CY_ 阅读(160) 评论(0) 推荐(0) 编辑