solution code for several OJ systems