Search found 3 matches

by maurelio1234
Thu Oct 30, 2003 3:01 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 33826

your aswers: 1. i don't know, but i treated this case, so if (L>H) swap(L,H) 2. yes 3. no 4. i used unsigned int, so if there were any negative inputs... Wrong Answer... 5. the length is 3 8) 6. i don't know 7. I think these inputs are not valid... the specification says that no element in any seque...
by maurelio1234
Wed Oct 29, 2003 10:13 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 33826

I got AC in this question right now and the phrase: "The largest value in the sequence will not be larger than can be accomodated in a 32-bit Pascal LongInt or C long." is true... I used unsigned int and it was ok... ps: how can i optimize this program? i calculated it using a recursive fu...
by maurelio1234
Wed Sep 17, 2003 6:37 pm
Forum: Volume 1 (100-199)
Topic: 134 - Loglan-A Logical Language
Replies: 45
Views: 5600

I don't know what's wrong with my code, I tested it with all inputs here and in the program especification and it ran well, what's wrong with it? [cpp] #include <iostream> #include <cstdlib> #include <cstdio> #define MAX_PAL 80 #define NUM_PAL 5000 #define cm(x) (strcmp(x,p)==0) #define v(x) (x=='a'...

Go to advanced search