开方,乘方易错感悟

像求素数时,欧拉函数时,尽量用i<=sqrt(n),不要用i*i<=n!容易爆范围答案错误!(错了好几次)

宁可开方,也不要乘方!

posted @ 2018-10-14 18:11  RedBlack  阅读(154)  评论(0编辑  收藏  举报