Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:有人解释下我的程序为什么对吗?莫名其妙地过了...In Reply To:有人解释下我的程序为什么对吗?莫名其妙地过了... Posted by:zjx20 at 2008-06-17 23:06:54 > > char n[10] > gets(n) > r=0 //结果 > len=strlen(n) > for(i=0;i<len;i++) > { > p=n[i]-'0'; > if(p>4) p--; > r += r*8+p; > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator