int cnt[] = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841}; { int c; --cnt[my_gc()-'0'];my_gc(); while (0<=(c=my_gc()-'0')){ --cnt[c]; } int l,h; rep(i,10){if(cnt[i]<0)l=i;if(cnt[i]>0)h=i;} wt(l,h); }