www.pudn.com > zhejiang_university_acm_onlinejudge_code.rar > zp1146.cpp
#include#include using namespace std; int main(int argc, char* argv[]) { int i,j,k,s,n; int w[15][10]={ {1,1,1,0,1,1,1}, {0,0,1,0,0,1,0}, {1,0,1,1,1,0,1}, {1,0,1,1,0,1,1}, {0,1,1,1,0,1,0}, {1,1,0,1,0,1,1}, {1,1,0,1,1,1,1}, {1,0,1,0,0,1,0}, {1,1,1,1,1,1,1}, {1,1,1,1,0,1,1} }; string st; cin>>s>>st; n=st.length(); while (s>0 || !(n==1 && st[0]=='0')) { cout<<' '; for (j=0;j >s>>st; n=st.length(); } return 0; } //---------------------------------------------------------------------------