P384 Square Friends

Square Friends

题目描述

For any given positive integer nn, two positive integers AA and BB are called Square Friends if by attaching 33 digits to every one of the nn consecutive numbers starting from AA, we can obtain the squares of the nn consecutive numbers starting from BB.

For example, given n=3n = 3, A=73A = 73 and B=272B = 272 are Square Friends since:

  • 73984=272273984 = 272^2
  • 74529=273274529 = 273^2
🔒
登录后查看完整题面
登录后查看题目

统计