提取不重复的整数
提取不重复的整数
http://www.nowcoder.com/questionTerminal/253986e66d114d378ae8de2e6c4577c1
#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; }