Submission
Status:
x-xxxxxxxx
Subtask/Task Score:
0/100
Score: 0
User: agnes_chan
Problemset: แยกตัวประกอบ
Language: python
Time: 0.010 second
Submitted On: 2026-05-06 11:52:50
N = int(input())
for c in range(2,1+int(N**0.5)):
if N%c: continue
if N<c*c: exit()
print(c,end='^')
k = 0
while N%C==0: N , k = N//c , k+1
print(k,end=' ')