|
|
вернуться в форумI'd used binary search and got TL. ( Code here ) HELP!! Where is my mistake?? Edited by author 19.02.2008 00:26 Re: I'd used binary search and got TL. ( Code here ) Help!!!!!!! Re: I'd used binary search and got TL. ( Code here ) It's part of my code: {...} int i,s=0,p=0; for(i=0;i<n;i++) {cin>>c; p+=c; s+=p; } At the end I use as answer: (n*a+b-2*s)/(n+1), where a means a[0] b means a[n+1] Good luck!!! Edited by author 17.02.2008 19:18 Re: I'd used binary search and got TL. ( Code here ) Thank you!!! AC!!! |
|
|