- 博客(2)
- 收藏
- 关注
原创 HDU-1133Buy the Ticket
Problem DescriptionThe \\\\\\\"Harry Potter and the Goblet of Fire\\\\\\\" will be on show in the next few days. As a crazy fan of Harry Potter, you will go to the cinema and have the first sight, won...
2018-07-05 15:59:01 225
转载 hdu1018(求n!的位数)
求大数的位数,要想到使用log的方法!!n的位数 =(int)log10(n)+1这样一来,本题就变为求 log10(n!)+1log内的乘法可以转化为log外的加法:log10(n!) = log10(n) + log10(n-1) + log10(n-2) + ...+ log10(2)#include <iostream> #include <stdio.h> #in...
2018-07-05 14:42:31 186
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人