Search found 2 matches

by hwj1593
Thu Jul 25, 2013 9:36 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 23166

Re: 10042 smith number wa>>>>

thanks to brianfry713 !! time limit t. t
by hwj1593
Tue Jul 23, 2013 10:03 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 23166

10042 smith number wa>>>>

#include <stdio.h> unsigned Factorize(unsigned u); int sumPosNumber(unsigned number); int main() { unsigned number = 29716; unsigned smith= 0; unsigned result = 1; unsigned max; scanf("%ld",&max); for(unsigned i=0;i<max;i++){ scanf("%ld",&number); number++; while(smith != result ) { result = Factori...

Go to advanced search