2013年9月10日
摘要: 要想通这个题目应该很容易,由于斐波纳契数在近100项之后很大,早就超出long long了。而输入最长的序列才40个数字,所以大约保留前50位,前40位是没有误差的!!!其实,想想我们判断double数字相等时fabs(a-b) 2 #include 3 #include 4 using namespace std; 5 const int maxlen=100000; 6 const int maxn=maxlen+1010; 7 char target[60]; 8 int active_id,active_idx; 9 void ccplus(char *&ch,int & 阅读全文
posted @ 2013-09-10 21:26 男神发量 阅读(267) 评论(0) 推荐(0) 编辑