#30953: python AC tip


forkidlai (forkidlai)

School : No School
ID : 192336
IP address : [114.33.29.134]
Last Login :
2022-12-11 21:02:34
c184. 盈虧互補 -- 板橋高中教學題 | From: [220.130.18.196] | Post Date : 2022-06-24 11:58

真因數和須優化處理,才能AC
gsum = 1
    for i in range(2,int(n**0.5)+1):
        if n % i == 0:
            gsum += i + (n // i)
 
ZeroJudge Forum