摘要: #include #include using namespace std; template class Vector{ private:T *p; int size; int n; public: Vector() {p=(T*)malloc(10*sizeof(T)); size=10; n=0;} void Push_ba... 阅读全文
posted @ 2018-02-03 20:35 myyismyy 阅读(135) 评论(0) 推荐(0)
摘要: 一、string转int的方式 二、int转string的方式 阅读全文
posted @ 2018-02-03 16:01 myyismyy 阅读(1149) 评论(0) 推荐(0)
摘要: 题目描述 小W在计算一个数列{An},其中A1=1,A2=2,An+2=An+1+An。尽管他计算非常精准,但很快他就弄混了自己的草稿纸,他找出了一些他计算的结果,但他忘记了这些都是数列中的第几项。 输入描述: 每行包括数列中的一项Ak(k<=100000)。 总行数T<=30。 输出描述: 对于每 阅读全文
posted @ 2018-02-03 15:55 myyismyy 阅读(342) 评论(0) 推荐(0)