#include#include int main( ){ char ch[1100][20]; int d[1100],visit[1100],N,M,i,j,t; while(scanf("%d",&N),N) { t=0; for(i=0;i<=N;i++) d[i]=1; memset(visit,0,sizeof(visit)); for(i=0;i t) { t=d[i]; j=i; } printf("%s\n",ch[j]); } return 0;}
本文共 426 字,大约阅读时间需要 1 分钟。
#include#include int main( ){ char ch[1100][20]; int d[1100],visit[1100],N,M,i,j,t; while(scanf("%d",&N),N) { t=0; for(i=0;i<=N;i++) d[i]=1; memset(visit,0,sizeof(visit)); for(i=0;i t) { t=d[i]; j=i; } printf("%s\n",ch[j]); } return 0;}
转载于:https://www.cnblogs.com/tangcong/archive/2011/05/03/2035361.html