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 |
第二十题纪念 呵呵其实题目里有暗示前后顺序的我莫名掉了两个等号 呵呵 WA了两三次 if(m<=n) { for(i=m;i<=n;i++) { if(count(i)>=max) max=count(i); } cout<<m<<" "<<n<<" "<<max<<endl; } if(m>n) { for(i=n;i<=m;i++) { if(count(i)>=max) max=count(i); } cout<<m<<" "<<n<<" "<<max<<endl; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator