题解 | #明明的随机数#
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
标记法
int main() { int num; int count; int exits[501] = {0}; scanf("%d", &count); while(scanf("%d", &num) > 0) { exits[num] = 1; } for(int i=1; i<501; i++) if(exits[i]) printf("%d\n", i); return 0; }