Search found 5 matches

by nafi1212
Thu Nov 09, 2006 9:01 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13230

Many Many thanx to ImLazy and gits. But, ImLazy, U forgot to remove code.
R u really that lazy??
by nafi1212
Sun Nov 05, 2006 9:05 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24050

Ur programme doesn't output the result in correct format.
Example

Code: Select all

63
ur prog's output is:

Code: Select all

 
63! = 57 30 14 10  5  4  3  3  2  2  2  1  1  1  1
   1  1  1
But It should be:

Code: Select all

 63! = 57 30 14 10  5  4  3  3  2  2  2  1  1  1  1
           1   1   1
[/list]
by nafi1212
Sat Nov 04, 2006 9:55 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19466

107 - RTE!!!!!!!!!!!! Help!! Plz!!

I donunderstand why i am getting Run time error (floating point exception).Here is my code- #include <cstdio> #include <cmath> using namespace std; int main() { int Hgt;int worker; int cats=0,height=0; int m,N; while(1){ scanf("%d %d", &Hgt, &worker); if(Hgt==0) break; for(m=1;;m++){ double x=pow(po...
by nafi1212
Sun Sep 03, 2006 11:06 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24050

After editing output, GOT AAC, many thanks tan_yui
by nafi1212
Sun Sep 03, 2006 10:17 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24050

160 - Factors and Factorials

I get WA for 160. #include <vector> #include <stdio.h> #include <list> using namespace std; int primes[] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97}; int p160(int x, int i, vector<int>::iterator counter) { if((x%primes )==0){ counter ++; if((x/primes )!=1) p160(x/prime...

Go to advanced search