平方

正の整数 n が与えられたとき、1以上でその数の平方が n を超えないようなすべての数を見つけるのがあなたの課題です。プログラムはこれらの数の平方を出力するべきです。

入力

出力

15

1 4 9

16

1 4 9 16

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue