Search found 2 matches

by akashs
Mon Nov 08, 2010 9:40 pm
Forum: Algorithms
Topic: Maximum interval sum
Replies: 1
Views: 3681

Maximum interval sum

pls anyone tell the basic step in the maximum interval sum.
by akashs
Mon Nov 08, 2010 9:29 pm
Forum: Volume 107 (10700-10799)
Topic: 10789 - Prime Frequency
Replies: 38
Views: 27523

10789 - Prime frequency

i got WA . but i do not know why i get WA. pls someone help me.
my code is given below:




#include<stdio.h>

#include<math.h>

#include<string.h>

#include<algorithm>

using namespace std;

int prime(int num)

{

int f,n;

if( num==2 )

return 1;

if(num==1 || num==0 || num%2==0)

return 0 ...

Go to advanced search