2022-08-19 08:27:32 +08:00

14 lines
271 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# M - Pairs Forming LCM
* https://vjudge.net/contest/509210#problem/M
### 题意
给n,lcm(i, j) = n and (i ≤ j).
### 做法
质因数分解n=p1^k1*p2^k2
ans*=(2k[i]+1);(i=0~k,j=0~k,去掉重复的k,k)
ans=ans/2+1;(i<=j,补上n,n因为只出现了一次)
### 关键词
### 易错点
*
### 工具箱
*