Parse codeforces test cases