using System;using SystemText;public class B3715 private static void Main byte t=byteParseConsoleReadLine; StringBuilder sb=new StringBuilder; forint j=0;jt;j++ long
package main
import ( "fmt" )
func main() { var t byte fmt.Scan(&t) for j := 0; j < int(t); j++ { var n int64 fmt.Scan(&n) a := int64(1) m := n for i := int64(2); i*i <= n && a <= n; i++ { if n%i == 0 { for n%i == 0 { n /= i a *= i fmt.Print(i, " ") } } } if a < m { fmt.Print(m / a, " ") } fmt.Println() } }
原文地址: http://www.cveoy.top/t/topic/hC5F 著作权归作者所有。请勿转载和采集!