Submission #14785719


Source Code Expand

Copy
import sys
import numba

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

@numba.njit('(i8,)', cache=True)
def main(N):
    x = 0
    for a in range(1, N+1):
        for b in range(1, N//a+1):
            x += a*b
    return x

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 333 Byte
Status
Exec Time 531 ms
Memory 106264 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 489 ms 106260 KB
random_01.txt 527 ms 104980 KB
random_02.txt 511 ms 105528 KB
random_03.txt 526 ms 106076 KB
random_04.txt 504 ms 106112 KB
random_05.txt 520 ms 106264 KB
random_06.txt 490 ms 106108 KB
random_07.txt 518 ms 106072 KB
random_08.txt 502 ms 105560 KB
random_09.txt 531 ms 105956 KB
random_10.txt 477 ms 105580 KB
sample_01.txt 482 ms 105604 KB
sample_02.txt 470 ms 105568 KB
sample_03.txt 525 ms 105320 KB
sq_01.txt 512 ms 105916 KB
sq_02.txt 523 ms 105392 KB
sq_03.txt 515 ms 104648 KB
sq_04.txt 526 ms 105416 KB
sq_05.txt 520 ms 105912 KB
sq_06.txt 525 ms 106116 KB