#B. [GESP202412 二级] 1. 寻找数字

    Type: Default 1000ms 256MiB

[GESP202412 二级] 1. 寻找数字

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.

题目描述

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

输入格式

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

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

输出格式

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

样例

3
16
81
10
2
3
-1

提示

对于全部数据,保证有 1t105,1a1081≤t≤10^5,1≤a≤10^8

C++ GESP 2024年12月 二级

Not Attended
Status
Done
Rule
OI
Problem
3
Start at
2025-1-4 15:30
End at
2025-1-12 23:30
Duration
200 hour(s)
Host
Partic.
25