Submission #14785429


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def main(N):
    x = 0
    for a in range(1, N+1):
        for b in range(a, N+1, a):
            x += b
    return x

if sys.argv[-1] == 'ONLINE_JUDGE':
    import numba
    from numba.pycc import CC
    i8 = numba.int64
    cc = CC('my_module')

    def cc_export(f, signature):
        cc.export(f.__name__, signature)(f)
        return numba.njit(f)

    main = cc_export(main, (i8, ))
    cc.compile()

from my_module import main

N = int(read())
print(main(N))

Submission Info

Submission Time
Task D - Sum of Divisors
User maspy
Language Python (3.8.2)
Score 400
Code Size 615 Byte
Status
Exec Time 206 ms
Memory 27408 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 400 / 400 hand_01.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt, sample_03.txt, sq_01.txt, sq_02.txt, sq_03.txt, sq_04.txt, sq_05.txt, sq_06.txt
Case Name Status Exec Time Memory
hand_01.txt 109 ms 27000 KB
random_01.txt 200 ms 27020 KB
random_02.txt 179 ms 27092 KB
random_03.txt 202 ms 27064 KB
random_04.txt 158 ms 27004 KB
random_05.txt 194 ms 27048 KB
random_06.txt 147 ms 27020 KB
random_07.txt 203 ms 27128 KB
random_08.txt 170 ms 27012 KB
random_09.txt 206 ms 27408 KB
random_10.txt 116 ms 27020 KB
sample_01.txt 111 ms 27296 KB
sample_02.txt 109 ms 27104 KB
sample_03.txt 200 ms 27064 KB
sq_01.txt 196 ms 27064 KB
sq_02.txt 201 ms 27184 KB
sq_03.txt 200 ms 27280 KB
sq_04.txt 201 ms 27364 KB
sq_05.txt 201 ms 27360 KB
sq_06.txt 195 ms 27292 KB