Submission #19910832


Source Code Expand

Copy
n=int(input())
 
n2=int(n**(1/2))+1
 
ans=0
for x in range(1,n2):
    if (n-x)%x==0:
        m=(n-x)//x
        if m!=0 and n//m==n%m:
            ans+=m
 
print(ans)
        

Submission Info

Submission Time
Task D - DivRem Number
User yasutakah
Language PyPy3 (7.3.0)
Score 500
Code Size 187 Byte
Status AC
Exec Time 68 ms
Memory 64108 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 25
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, rand_01.txt, rand_02.txt, rand_03.txt, rand_04.txt, rand_05.txt, rand_06.txt, rand_07.txt, rand_08.txt, rand_09.txt, rand_10.txt, rand_11.txt, rand_12.txt, rand_13.txt, rand_14.txt, rand_15.txt, rand_16.txt, rand_17.txt, rand_18.txt, rand_19.txt, rand_20.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 68 ms 61820 KB
hand_02.txt AC 49 ms 62164 KB
hand_03.txt AC 64 ms 64108 KB
rand_01.txt AC 61 ms 63332 KB
rand_02.txt AC 62 ms 63424 KB
rand_03.txt AC 60 ms 63392 KB
rand_04.txt AC 63 ms 63524 KB
rand_05.txt AC 63 ms 63408 KB
rand_06.txt AC 64 ms 63424 KB
rand_07.txt AC 57 ms 63328 KB
rand_08.txt AC 55 ms 63196 KB
rand_09.txt AC 62 ms 63408 KB
rand_10.txt AC 57 ms 63308 KB
rand_11.txt AC 50 ms 62124 KB
rand_12.txt AC 51 ms 62284 KB
rand_13.txt AC 51 ms 62024 KB
rand_14.txt AC 53 ms 63336 KB
rand_15.txt AC 52 ms 62300 KB
rand_16.txt AC 52 ms 63384 KB
rand_17.txt AC 47 ms 62152 KB
rand_18.txt AC 51 ms 62348 KB
rand_19.txt AC 52 ms 62344 KB
rand_20.txt AC 51 ms 62268 KB
sample_01.txt AC 48 ms 62008 KB
sample_02.txt AC 64 ms 63020 KB