i'm sorry, i'm new to this.... but , if i get rid of the array statements it's going to take a lot of cpu time this i used to store the already computed values... what should i use for caching then?
thank you for your comments
maybe it's because you're using signed integers and when it tests for large numbers it's not calculating right. I tested the program and it didn't work. You should use unsigned ints and i believe the compiler complains when not using that int main() { return 0; } format. I haven't looked at the ...
hi, i just got my code accepted but i'm wasting too much memory... I don't know how to reduce it. I tried allocating memory for each case depending on the range given , but this increases cpu time.... can somebody help me out. This is the code i have.
Hi, i wanted to know if somebody could tell me what's wrong with this code... it compiles fine in my computer but the judge won't take it... thanks! :D [cpp] #include <iostream> #include <cstdio>
using namespace std;
struct action{ unsigned int block1; unsigned int block2; char instruction[5 ...
hi guys, i know you get a lot of postings on problem 100 ... but i've tried everything on this problem and i still get a wrong answer!!! : ( and lots of memory used, i know is because of the array but... Can anybody take a look at it and help me a little bit :D [cpp]