Type: RemoteJudge 1000ms 512MiB

[GESP202412 二级] 寻找数字

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.

题目描述

小杨有一个正整数 aa,小杨想知道是否存在一个正整数 bb 满足 a=b4a=b^4

输入格式

第一行包含一个正整数 tt,代表测试数据组数。

对于每组测试数据,第一行包含一个正整数代表 aa

输出格式

对于每组测试数据,如果存在满足条件的正整数 bb,则输出 bb,否则输出 1-1

3
16
81
10
2
3
-1

提示

对于全部数据,保证有 1t1051\leq t\leq 10^51ai1081\leq a_i\leq 10^8

GESP二级

Not Claimed
Status
Done
Problem
22
Open Since
2025-11-14 0:00
Deadline
2025-11-30 23:59
Extension
24 hour(s)