1502 : 比特鹰的高数
- 时间限制Time Limit
- 1 秒Sec
- 内存限制Memory Limit
- 1024 兆MB
- 提交次数Submitted
- 0 次Times
- 通过次数Solved
- 0 次Times
特判评测 Special
读写方式与标准评测相同。答案可能不唯一,是否正确由本题的特判程序判定,输出格式以题面为准。
I/O is the same as standard judge. Several outputs may be valid; this problem’s special judge decides correctness. Follow the output format in the statement.
| 输入Input | 标准输入。Standard input. |
|---|---|
| 输出Output | 标准输出,格式以题面为准。Standard output; format as specified in the statement. |
| 时间与内存Time and memory | 记选手程序的 CPU 时间和内存峰值。判定程序不计入。题目上的限制只约束选手程序。The record is the solution’s CPU time and peak memory. The checker is not included. The limits apply only to the solution. |
题目描述Description
比特鹰给定一个正整数 x ,求三个有理数,使 (\frac{p_1}{q_1})^3 + (\frac{p_2}{q_2})^3 + (\frac{p_3}{q_3})^3 = x
输入格式Input
第一行一个 T \leq 10^4 ,表示有 T 组样例
接下来 T 行,每行一个数字 x_i 表示第 i 组样例的正整数为 x_i
1 \leq x_{i} \leq 10^5
输出格式Output
输出 T 行,每行6个数字 -10^{18} \leq p_1, q_1, p_2, q_2, p_3, q_3 \leq 10^{18} ,表示 (\frac{p_1}{q_1})^3 + (\frac{p_2}{q_2})^3 + (\frac{p_3}{q_3})^3 = x_i
样例Sample
提示Hint
请不要让分母为 0 , 否则比特鹰会生气
出题Author
xx
来源Source
深圳技术大学第五届程序设计竞赛
题目到此结束End of problem