#include <stdio.h> int main(void) { int array[10] = { 0 }; int length; scanf("%d", &length); for(;0 < length;length /= 10) if (!array[length % 10]) { array[length % 10] = 1; printf("%d", length % 10); } return 0; }
#include <stdio.h> int main(void) { int array[10] = { 0 }; int length; scanf("%d", &length); for(;0 < length;length /= 10) if (!array[length % 10]) { array[length % 10] = 1; printf("%d", length % 10); } return 0; }