#46691: 測資19 TLE


310601@mail.pcsh.ntpc.edu.tw (劉品宏)


用for迴圈搜因數時用for(int a=1;a<=sqrt(value);a++);

#53294: Re: 測資19 TLE


xfan0968@gmail.com (呱呱呱)


用for迴圈搜因數時用for(int a=1;a<=sqrt(value);a++);

可以用for(int i = 1; i * i <= value; ++i) ;