This contains codes for various online programming judges, solved by me.  You can use them for your reference.