![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
打表
to cling
Everything negative - pressure, challenges - is all an opportunity for me to rise.
展开
-
J. Balanced Tree
2022 Jiangsu Collegiate Programming Contest原创 2022-06-04 22:45:32 · 509 阅读 · 0 评论 -
F. The Answer to the Ultimate Question of Life, The Universe, and Everything.(2019ICPC徐州站)(打表)
题意给出一个x(0≤x≤2000 \le x \le 2000≤x≤200),求解a3+b3+c3=x,其中∣a∣,∣b∣,∣c∣≤5000a^3 + b^3 + c^3 = x,其中|a|,|b|,|c| \le 5000a3+b3+c3=x,其中∣a∣,∣b∣,∣c∣≤5000.若不存在则输出“impossible”。题解打表。具体做法。由于x是大于等于0的,因此,a,b,c只能是全正,或者一正两负,一负两正。但后两者肯定是三对相反数。所以枚举整数a,b,从区间[−5000,5000][-500原创 2021-10-17 21:22:29 · 403 阅读 · 0 评论