remove duplicates in tried problem IDs and accepted problem IDs.