Submission #16859509


Source Code Expand

Copy
import sys
import numpy as np

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

# A * B < N となる A, B を数える

N = int(read())
A = np.arange(1, N + 1)
B = (N - 1) // A
print(B.sum())

Submission Info

Submission Time
Task C - A x B + C
User maspy
Language Python (3.8.2)
Score 300
Code Size 261 Byte
Status
Exec Time 131 ms
Memory 42356 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
× 3
× 37
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-small-01.txt, 01-small-02.txt, 01-small-03.txt, 01-small-04.txt, 01-small-05.txt, 01-small-06.txt, 01-small-07.txt, 01-small-08.txt, 01-small-09.txt, 01-small-10.txt, 02-min-01.txt, 03-random-01.txt, 03-random-02.txt, 03-random-03.txt, 03-random-04.txt, 03-random-05.txt, 05-highly-composite-number-01.txt, 05-highly-composite-number-02.txt, 05-highly-composite-number-03.txt, 05-highly-composite-number-04.txt, 05-highly-composite-number-05.txt, 06-highly-composite-number-01.txt, 06-highly-composite-number-02.txt, 06-highly-composite-number-03.txt, 06-highly-composite-number-04.txt, 06-highly-composite-number-05.txt, 07-highly-composite-number-01.txt, 07-highly-composite-number-02.txt, 07-highly-composite-number-03.txt, 07-highly-composite-number-04.txt, 07-highly-composite-number-05.txt, 08-max-01.txt, 08-max-02.txt, 08-max-03.txt
Case Name Status Exec Time Memory
00-sample-01.txt 113 ms 26980 KB
00-sample-02.txt 113 ms 27232 KB
00-sample-03.txt 127 ms 42092 KB
01-small-01.txt 115 ms 27056 KB
01-small-02.txt 115 ms 27064 KB
01-small-03.txt 113 ms 27052 KB
01-small-04.txt 114 ms 26972 KB
01-small-05.txt 109 ms 26928 KB
01-small-06.txt 110 ms 26708 KB
01-small-07.txt 114 ms 26932 KB
01-small-08.txt 111 ms 27056 KB
01-small-09.txt 108 ms 26972 KB
01-small-10.txt 111 ms 26976 KB
02-min-01.txt 108 ms 26944 KB
03-random-01.txt 109 ms 28172 KB
03-random-02.txt 127 ms 40332 KB
03-random-03.txt 112 ms 31616 KB
03-random-04.txt 114 ms 28448 KB
03-random-05.txt 115 ms 27048 KB
05-highly-composite-number-01.txt 120 ms 37824 KB
05-highly-composite-number-02.txt 120 ms 37240 KB
05-highly-composite-number-03.txt 122 ms 35356 KB
05-highly-composite-number-04.txt 116 ms 28456 KB
05-highly-composite-number-05.txt 118 ms 27324 KB
06-highly-composite-number-01.txt 123 ms 37864 KB
06-highly-composite-number-02.txt 124 ms 37232 KB
06-highly-composite-number-03.txt 127 ms 35384 KB
06-highly-composite-number-04.txt 115 ms 28260 KB
06-highly-composite-number-05.txt 113 ms 27180 KB
07-highly-composite-number-01.txt 128 ms 37780 KB
07-highly-composite-number-02.txt 123 ms 36904 KB
07-highly-composite-number-03.txt 118 ms 35104 KB
07-highly-composite-number-04.txt 106 ms 28044 KB
07-highly-composite-number-05.txt 109 ms 26924 KB
08-max-01.txt 131 ms 42204 KB
08-max-02.txt 122 ms 42140 KB
08-max-03.txt 128 ms 42356 KB