#P2699. 【数学 1】小浩的幂次运算
【数学 1】小浩的幂次运算
Description
Exponentiation makes Xiao Hao a bit annoyed; recently he encountered some problems.
He needs to find all such that , so he turned to you.
Input Format
The input consists of one line with three integers .
Output Format
Output one line with all numbers that satisfy the condition, separated by spaces.
If no number satisfies the condition, output .
1 10 2
1 2 4 8
2 4 5
-1
Hint
Constraints
For of the testdata: , .
Translated by ChatGPT 5
京公网安备 11011102002149号