src2020/1655_goodlooknum/Readme.md

23 lines
610 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 孪生漂亮数
[问题描述]
教学案例,必须使用函数完成求解!
  如果一个自然数的每个质因数都至少是二重的即每个质因数乘方次数都大于或等于2 那么这个自然数称为“漂亮数” 比如42^2、93^2、722^3×3^2、100=2^2×5^2我们称4、9、72、100等为漂亮数如果两个相邻的自然数都是“漂亮数”那么称这两个数为“孪生漂亮数”例如相邻的自然数89是最小的一对“孪生漂亮数”。
  8=2^3
  9=3^2
  试编程找出下一对“孪生漂亮数”。
  [注] 2^3表示2的3方2^3=2*2*23^5=3*3*3*3*3。
[输入格式]
  无输入。
[输出格式]
  一行,两个整数。
[输入样例]
[输出样例]