Search found 1 match

by ulgerang
Sun Dec 10, 2006 3:56 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 30526

#106 Time Limit Exceeded

I had "Time Limit Exceeded
I don't know what wrong is.
please , give me advice.



#include <stdio.h>
#include <math.h>

#define N 1000000
#define SQRT_N 1000

bool RP_map[SQRT_N+1][SQRT_N+1];
bool integers[N+1];



void fill_RP_map( )
{
int i,j;

for(i=0;i<=SQRT_N;i++)
{
RP_map [0]=false;
RP ...

Go to advanced search