#30953: python AC tip


forkidlai (forkidlai)

School : No School
ID : 192336
IP address : [220.130.18.196]
Last Login :
2024-05-27 16:44:38
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