Submission #14785584


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
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 312 Byte
Status
Exec Time 604 ms
Memory 109164 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 551 ms 108624 KB
random_01.txt 602 ms 108292 KB
random_02.txt 591 ms 108864 KB
random_03.txt 598 ms 108908 KB
random_04.txt 576 ms 109164 KB
random_05.txt 590 ms 108860 KB
random_06.txt 566 ms 108532 KB
random_07.txt 603 ms 108616 KB
random_08.txt 588 ms 108528 KB
random_09.txt 601 ms 109148 KB
random_10.txt 555 ms 108384 KB
sample_01.txt 552 ms 108292 KB
sample_02.txt 543 ms 108636 KB
sample_03.txt 595 ms 108224 KB
sq_01.txt 602 ms 108652 KB
sq_02.txt 600 ms 108640 KB
sq_03.txt 600 ms 108472 KB
sq_04.txt 600 ms 108776 KB
sq_05.txt 604 ms 108440 KB
sq_06.txt 599 ms 108896 KB