Search found 3 matches

by if11026
Sun Jun 27, 2004 9:39 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 59924

Why WA ? Problem 495

Why does my code produce WA ?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>




long double FibTab[5000];
void Fib(long n)
{
long i,j;
FibTab[0] = 0;
FibTab[1] = 1;


for( i = 2; i <= n; i++)
{
FibTab[i] = FibTab[i-1] + FibTab[i-2];
}


}


int ...
by if11026
Fri Jul 11, 2003 6:53 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152635

10038 WA

Could anybody tell me what's wrong with my code ?

[c]
/* @JUDGE_ID: 10038 C */

#include <stdio.h>
#include <stdlib.h>
#define true 1
#define false 0
#define boolean unsigned int

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main()
{
boolean Jolly;
int jumdata,i;
int j ...
by if11026
Thu Jul 03, 2003 7:13 am
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 41802

136 WA

What is wrong with my code ?
can anybody tell me ? I think I've missunderstood the problem..

[c]/* UGLY NUMBER */

#include <stdio.h>

#define true 1
#define false 0
#define boolean unsigned int

boolean IsPrime (int x);
/* Determine if x is a prime number or not*/

boolean Is235 (int x);
boolean ...

Go to advanced search