Datasets:

Modalities:
Image
Text
Formats:
parquet
Size:
< 1K
Tags:
code
Libraries:
Datasets
pandas
License:
File size: 2,639 Bytes
b7e8aab
768c919
 
7b2a58c
 
5a3329c
 
 
5e17487
 
 
b7e8aab
3a66dd7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b7e8aab
 
 
 
 
 
 
3a66dd7
 
b7e8aab
 
 
 
 
 
 
 
 
 
3a66dd7
b7e8aab
 
 
 
 
 
 
 
b34c3f8
 
3a66dd7
 
 
 
 
b34c3f8
 
 
 
e89f485
b34c3f8
 
 
e89f485
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
license: apache-2.0
pretty_name: Meta Hacker Cup 2011-2023
tags:
- code
configs:
  - config_name: default
    data_files:
      - split: sample
        path: output_dataset_sample_2023.parquet

---
# Data Preview

The data available in this preview contains two datasets:

1. **Full Dataset ("full")**: This dataset includes data from 2011 to 2023.
2. **Sample Dataset ("sample")**: This is a subset of the full dataset, containing data from 2023.

## Fields

The dataset include the following fields:

- `name` (string)
- `year` (string)
- `round` (string)
- `statement` (string)
- `input` (string)
- `solution` (string)
- `code` (string)
- `sample_input` (string)
- `sample_output` (string)
- `images` (array of base64 image strings)


This dataset contains every Facebook/Meta Hacker Cup problem from 2011 through 2023. For each problem, you'll find these files:

* `<problem_name>.md`: The problem statement formatted in Markdown
* `<problem_name>.in`: The full input file
* `<problem_name>.out`: The full output file
  * Note that some problems accept multiple possible outputs, in which case the full output file is simply an example of an output that would be accepted
* `<problem_name>_sample_input.txt`: The sample input provided by the problem statement
* `<problem_name>_sample_output.txt`: The sample output provided by the problem statement
 
Note that for problems from 2011 thorugh 2019, the problems were initially typeset in html. For those problems you can find:

* `<problem_name>.html`: The problem statement formatted in HTML

For these problems, the Markdown version of the statement (`<problem_name>.md`) was automatically generated from the HTML version and may contain errors.

For some problems, written solutions/analyses are available:

* `<problem_name>.sol.md`
** 
For some problem, code solutions are available:

* `<problem_name>.(cpp|py|java)`

Some problems contains references to images that look like this:

* `{{PHOTO_ID:<photo_id>}}`, example: `{{PHOTO_ID:923060468192530}}`

In the same folder as the problem statement, you can find `<photo_id>.jpg` or `<photo_id>.gif`

## Notes

- Solutions prior to 2019 do not contain markdown solution files.
- The 2019 markdown solutions are not included in the dataset but can be found in `.cpp` files.

## Citation

If you use this dataset, please cite it as follows:

```bibtex
@misc{2024hackercupai,
  title = {2024 Hacker Cup Dataset},
  author = {May, Wesley and Harmeyer, David and Yang, Weiwei and Saroufim, Mark and Isaacson, Joe and Antiga, Luca and Bowyer, Greg and Guessous, Driss and Puhrsch, Christian and Rao, Supriya and Li, Margaret},
}
```