#D. 阶乘分解

    Type: RemoteJudge 1000ms 512MiB

阶乘分解

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给定整数 N(3N106)N (3 \le N \le 10^6),试把阶乘 N!N! 分解质因数,按照算术基本定理的形式输出分解结果中的 pip_icic_i 即可。

输入格式

一个整数 NN

输出格式

N!N! 分解质因数后的结果,共若干行,每行一对 pi,cip_i, c_i,表示含有 picip_i^{c_i} 项。按照 pip_i 从小到大的顺序输出。

5
2 3
3 1
5 1

C24欢度国庆赛

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2024-10-2 14:00
End at
2024-10-2 16:30
Duration
2.5 hour(s)
Host
Partic.
35