Scala Code for some problems @ www.codeforces.com