15 lines
203 B
Text
15 lines
203 B
Text
|
|
F tau(n)
|
||
|
|
V ans = 0
|
||
|
|
V i = 1
|
||
|
|
V j = 1
|
||
|
|
L i * i <= n
|
||
|
|
I 0 == n % i
|
||
|
|
ans++
|
||
|
|
j = n I/ i
|
||
|
|
I j != i
|
||
|
|
ans++
|
||
|
|
i++
|
||
|
|
R ans
|
||
|
|
|
||
|
|
print((1..100).map(n -> tau(n)))
|