首页 > 其他 > 详细

2015-11-1-Training(for 2015th)

时间:2015-11-04 10:00:04      阅读:216      评论:0      收藏:0      [点我收藏+]

A:(hdu2081)

Solution:

  get the last five digits, not mod 100000 cause the leading zero.

 

B:(hdu2075)

 

C:(hdu2071)

 

D:(hdu2070)

Solution:

  The 40th fibonacci number is greater the 1e9, so data type long long is necessary.

 

E:(hdu1040)

Solution:

  sort the array and outpt.

  The way to sort may be multitudinous, like bubble sort, merge sort, insert sort, selection sort, heap sort, quick sort, radix sort etc.

  the most useful is(by stealth)

std::sort(arr + l, arr + r);
// to sort array elements in [l, r)

 

F:(hdu1041)

Solution:

  we could get a recursion formula:

  F[n] = F[n-2] + 2^(n-3)

  and the result would be very large, so you should use Java or high precision.

 

G:(hdu2057)
Solution:

  use %X to input and output.

H:(hdu2055)

I:(hdu2101)

  

2015-11-1-Training(for 2015th)

原文:http://www.cnblogs.com/takeoffyoung/p/4935065.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!