题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
#include <stdio.h> int main() { int a, b[10]={0}; scanf("%d", &a); while(a>0) { int i = a%10; if(!b[i]) { b[i] = 1; printf("%d", i); } a /= 10; } return 0; }