#E. 考级202012-5:求满足条件的 3 位数

    Type: Default 1000ms 128MiB

考级202012-5:求满足条件的 3 位数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

编写程序,按从小到大的顺序寻找同时符合条件 1 和 2 的所有 3 位数,条件为:

1.该数为完全平方数

2.该数至少有 2 位数字相同

例如,100 同时满足上面两个条件。

输入格式

输入一个数 n,n 的大小不超过实际满足条件的 3 位数的个数。

输出格式

输出为第 n 个满足条件的 3 位数(升序)

输入数据 1

1

输出数据 1

100

数据范围与提示

还有一级(第5轮)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-27 9:30
End at
2023-8-19 7:30
Duration
550 hour(s)
Host
Partic.
18