Spend time here. If you are unable to get a solution, try harder. Read comments to get hints. Use Google search to get hints. After trying for some 30 or so minutes, if you don’t get a solution, try searching for solution on Google — ‘SPOJ X solution’ where X is the problem code.