Search found 1 match

by cse08_konok
Sun Dec 13, 2009 1:36 pm
Forum: Volume 2 (200-299)
Topic: 263 - Number Chains
Replies: 45
Views: 15826

263

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX 50000

int compare (const void * a, const void * b)
{
return ( *(char*)b - *(char*)a );
}
int mysearch(long long i,long long *judge, long long j)
{
long low=1,mid,high;
high=j-1;
mid=(low+high)/2;
while(low<=high){
if(i<judge ...

Go to advanced search