//c语言代码,牺牲空间换时间,替换重复。#include<stdio.h>int main(){ int n,num,a[10]={0}; while(scanf("%d",&num)!=EOF){ while(num!=0){ n=num%10; num/=10; if(a[n]==0){ printf("%d",n); a[n]=1; } } ...