Search found 1 match

by turtleking
Sat Jul 19, 2003 7:12 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 85498

10038WA

#include <stdio.h> int abs(int value) { if (value>=0) {return value;} else {return -value;} } void jolly(int series[4000],int inputnum) { int i,j; int jolly=0; int abs_value; int temp[4000]; for(i=0;i<(inputnum-1);i++) { abs_value = abs(series[i]-series[i+1]); if ((abs_value<=(inputnum-1) )&&(abs_v...

Go to advanced search