博客版权已保护:转载请注明出处,谢谢。

2018年5月4日

E - Leading and Trailing

摘要: 这道题来说,解题的思路非常的重要,不是暴力能解决的题目。n*k = (10^x) * (10^y) .y的部分是决定位数上面具体的值。因此得到y之后在int first =10^(y+2) ,就是前三位数字。解决这道题必须要用上<cmath> 之下的很多函数,fmod,pow,log10等等。代码之 阅读全文

posted @ 2018-05-04 20:23 superhero11 阅读(139) 评论(0) 推荐(0) 编辑

导航