This is the script that I have used to download the codechef problem statements. Each problem statement gets downloaded and is written in a text file. The file is named according to the code name ...
#define debug1(x) cout <<"### " << x << " ###\n" #define debug2(x,y) cout <<"# " << x <<" : "<< y <<" #\n" ...