thnx vahid sanei i got AC
plz anyone knows what is the eps tell me or post me a link to read about it
thnx all
Search found 2 matches
- Mon Mar 16, 2009 5:06 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96894
- Mon Mar 16, 2009 1:39 am
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96894
Re: 10200 - Prime Time
i'm getting WA and don't know why
plz help
here is my code
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
bool prime[10000]={0};
bool isprime(long long x)
{
int end=sqrt(double(x))+1;
for(int q=3;q<=end;q+=2)
if(x%q==0)
return false;
return true;
}
void ...
plz help
here is my code
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
bool prime[10000]={0};
bool isprime(long long x)
{
int end=sqrt(double(x))+1;
for(int q=3;q<=end;q+=2)
if(x%q==0)
return false;
return true;
}
void ...