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 |
有人解释下我的程序为什么对吗?莫名其妙地过了...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