google-deepmind / code_contests

Apache License 2.0
2.04k stars 200 forks source link

Print other features for each problem #8

Closed arghavanMor closed 2 years ago

arghavanMor commented 2 years ago

Hi, Thank you for this great dataset. I have two questions:

  1. How can we print the description of the problems and solutions (including correct, wrong, etc) and test cases? do you have any list of features that can help us to fetch other attributes?
  2. for example "CODEFORCES 1569_A" as a source, means the problem is fetched from codeforces but what is 1569_A or_B? It seems more than an index to me.

Thank you :)

KareemAlaa2001 commented 2 years ago

Not an author so don't have an exact answer, but check out this tutorial if you haven't already, it outlines how to use proto2 files for simple I/O in python (and what the file contents actually mean!)

davidhchoi commented 2 years ago
  1. Lines 41 and 42 of print_names_and_sources.py might be a good place to start, along with the linked tutorial about using protos. For example, the description would be problem.description.
  2. 1569 is the contest ID and A is the problem index in the contest (which typically has 5-9 problems). You can see the same numbers and letters on the Codeforces website.
arghavanMor commented 2 years ago

Thank you, I will try.