![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学问题
洋葱ycy
坚持,从容
展开
-
hdu 1018 计算一个数阶乘的位数
In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you h原创 2014-08-12 17:00:13 · 432 阅读 · 0 评论 -
hdu 1065 计算几年腐蚀到所在位置
2 1.0 1.0 25.0 0.0 Sample Output Property 1: This property will begin eroding in year 1. Property 2: This property will begin eroding in year 20. END OF OUTPUT. #include #include原创 2014-08-12 17:18:10 · 293 阅读 · 0 评论 -
hdu 2715 数分解为几个连续数的和
给出一个数 #include int main() { int n,i,j,sum,num; while(scanf("%d",&n)!=EOF) { num=0; for(i=1;i { sum=0; for(j=i;j {原创 2014-08-15 19:27:39 · 772 阅读 · 0 评论 -
求n^nd的根
#include int main() { int n,i,m; while(scanf("%d",&n)!=EOF) { m=n; for(i=2;i { m=(m*n)%9; } if(m) printf("%d\n",m); else printf("9\n"); } return 0; }原创 2014-11-20 13:10:40 · 332 阅读 · 0 评论