SGU---107 水题

题目链接:

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

猜你喜欢

转载自www.cnblogs.com/fzl194/p/9610957.html
今日推荐