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 |
three for to solve this problemfor(i=2;i<=prime.size();i++) for(j=0;j<prime.size();j++) { int sum=0; for(k=j;k<j+i && k<prime.size();k++) { sum+=prime[k]; } if(sum<10001) result[sum]++; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator