algorithm training.

algorithm training in scut.. all of them are written in C,C++,JAVA