2015年5月8日

hdu1099其实并不能算是水题,想了好久好久的

摘要: 题意就是说你有n种彩票,现在想积齐n种,问等概论的情况下,你平均要买多少张下面说一下自己的思路已经买了i张时,买中剩下的概率为(n-i)/n,则要买的张数为n/(n-i)所以呢要买(n/n+n/n-1+n/n-2+............n/1)然后呢留给我的就是写很长的代码这个来求这个整数或者带... 阅读全文

posted @ 2015-05-08 20:55 AC_WQYYY 阅读(114) 评论(0) 推荐(1)

hdu1066之数学题

摘要: 以前好像做过一些,但是没有总结过,现在想重新的做一遍,好好的总结一下!Problem DescriptionThe expression N!, read as "N factorial," denotes the product of the first N positive integers, ... 阅读全文

posted @ 2015-05-08 16:15 AC_WQYYY 阅读(186) 评论(0) 推荐(1)

hdu1065计算几何

摘要: Problem DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he le... 阅读全文

posted @ 2015-05-08 12:50 AC_WQYYY 阅读(89) 评论(0) 推荐(1)

导航