USacogate is a training site prepared by the American middle school students to cultivate students who are interested in competitions. But no matter what people can be used.
When I played this 5 years ago, I was almost sleepless. But unfortunately hard drive crashes, reimbursed all my documents. Now I am busy thinking about it, I find that I actually remember to remember it. I write some experience. SHARE. I am not in the algorithm, and the university is just a matter. USACO is the starting point to arouse my interest in Algorithmic Programming. I don't know whether it is my Chongqing, or the teaching of foreigners is better than us? USACO can now use the program submitted Java, do not know how to calculate time, Java is not very slow. . .
USACO's machine is very cattle B in my impression, and the Code running 3s on my machine is running within 1st on his machine. But now I don't know. Knowing his machine and your machine's performance ratio, there is a probably impression that there is a direction when it is satisfied with the code. The rookie did not pursue 0s, and the paste passed the first goal, but the embarrassment;) Some topics are really difficult to have perfect Performen, those 0s guys are called Speed Monster: D
In general, the restriction is within 5s running, 16m data capacity, 1M stack capacity. Look, it seems to be full, but a recursive may make your program fail, be careful to pay attention to your own recursive time. And it is not good, not only Stack is not enough, but there will be a lot of Function Call, and time is eaten. Also note that he is Linux OS, some variables are in Windows OK, but there is a system variable in him, such as MMAP. This is enough to ask you to depressed. Don't declare the variables that don't need, it seems to pass his compilation.
Also, don't cheat, Rob is very cattle, he will use a variety of ways to detect you is cheating. For example, direct PrintF answers -_- !, such stupid behavior causes Account to be directly KILL.
My point is that it is meaningless in this above, and there is a large number of USACO answers and analyzes online. I don't look at myself, and he does not specify time, nor does it give you pressure. Have As Much Fun As Possible, this is a talk of ROB.
Finally, due to the versatility of C / C , Rob gives some HINTs, such as some functions, ITOA (). For example, compare the precautions of floating point numbers, such as integers, and so on.自己 Check. If you have any questions, you can ask him. . . . . . Ask me, do your best, it is :)
OK, GO! GO! GO!