题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1279
#include<stdlib.h>
#include<time.h>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <string>
using namespace std; int main()
{
int num,n,flag;
cin>>num;
while(num--)
{
cin>>n;
flag=;
while(n!=)
{
if(n% == )
{
n=n/;
} else
{
if(flag != )
printf(" ");
printf("%d",n);
n=n*+;
flag++;
} }
if(flag == )
printf("No number can be output !");
printf("\n");
}
return ;
}