Search found 3 matches

by SeregiB
Sun Dec 20, 2009 12:45 pm
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 21363

Re: 10061 - How Many Zeros and How Many Digits?

Hi! Any idea, what is wrong with this code? #include <stdio.h> #include <limits.h> #include <math.h> #include <stdlib.h> unsigned int digits(unsigned int n, unsigned int base) { return (unsigned int)(floor((log10(2*M_PI*n)/2+n*(log10(n)-log10(M_E)))/log10(base)+1e-9)+1); } unsigned int legendre(int ...
by SeregiB
Sun Oct 26, 2008 7:44 pm
Forum: Volume 115 (11500-11599)
Topic: 11538 - Chess Queen
Replies: 9
Views: 2190

Re: 11538 - Chess Queen

Hello!

Use unsigned long long int. ;)
by SeregiB
Wed Aug 06, 2008 9:32 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 18237

Re: 11462 - Ages Sort

Hello!

Perhaps may help to you this sentence:
You know that no individual in that country lives for 100 or more years.

Go to advanced search