码迷,mamicode.com
首页 > 其他好文 > 详细

SGU---107 水题

时间:2018-09-08 23:34:15      阅读:269      评论:0      收藏:0      [点我收藏+]

标签:target   problems   .com   def   sgu   span   force   acm   ORC   

题目链接:

http://codeforces.com/problemsets/acmsguru/problem/99999/107

题目大意:

求n位数有多少个的平方末尾是987654321

思路:

暴力求出9位数只有8个,8位数之内都没有解。

所以

n = 9 ans = 9

n = 10 ans = 72

n = 11 ans = 720

 

SGU---107 水题

标签:target   problems   .com   def   sgu   span   force   acm   ORC   

原文地址:https://www.cnblogs.com/fzl194/p/9610957.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!