Skip to content

GH-13: Solve problem codejam2022PunchedCards #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ A data structure is a data organization, management, and storage format that is
Events of competitive programming

* [🎃 Advent of Code 2022](collections/advent-of-code-2022/)
* [🔰 Google Code Jam 2022](collections/codejam-2022/)

## Contributors

Expand Down
24 changes: 24 additions & 0 deletions collections/codejam-2022/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 🎃 Google Code Jam 2022

* Website: https://codingcompetitions.withgoogle.com/codejam/archive/2022

## Problems

Qualification Round

<table>
<thead>
<th></th>
<th>Statement</th>
<th>Code</th>
</thead>
<tbody>
<tr>
<td>Punched Cards</td>
<td><a href="https://codingcompetitions.withgoogle.com/codejam/round/0000000000876ff1/0000000000a4621b">Link</a></td>
<td>
<a href="../../problems/codejam2022PunchedCards/src/main/solution.cpp"><code>cpp🐀</code></a>
</td>
</tr>
</tbody>
</table>
1 change: 1 addition & 0 deletions problems/codejam2022PunchedCards/.gitginore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
solution
10 changes: 10 additions & 0 deletions problems/codejam2022PunchedCards/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AoC Problem

## Usage

Run program with an example

```
bazel run src/main:solution1 `pwd`/data/input0.txt
bazel run src/main:solution1 `pwd`/data/input1.txt
```
4 changes: 4 additions & 0 deletions problems/codejam2022PunchedCards/data/1.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1
2
3
4
1 change: 1 addition & 0 deletions problems/codejam2022PunchedCards/data/1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
4 changes: 4 additions & 0 deletions problems/codejam2022PunchedCards/data/sample0.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3
3 4
2 2
2 3
20 changes: 20 additions & 0 deletions problems/codejam2022PunchedCards/data/sample0.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Case #1
..+-+-+-+
..|.|.|.|
+-+-+-+-+
|.|.|.|.|
+-+-+-+-+
|.|.|.|.|
+-+-+-+-+
Case #2
..+-+
..|.|
+-+-+
|.|.|
+-+-+
Case #3
..+-+-+
..|.|.|
+-+-+-+
|.|.|.|
+-+-+-+
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3
3 4
2 2
2 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Case #1:
..+-+-+-+
..|.|.|.|
+-+-+-+-+
|.|.|.|.|
+-+-+-+-+
|.|.|.|.|
+-+-+-+-+
Case #2:
..+-+
..|.|
+-+-+
|.|.|
+-+-+
Case #3:
..+-+-+
..|.|.|
+-+-+-+
|.|.|.|
+-+-+-+
82 changes: 82 additions & 0 deletions problems/codejam2022PunchedCards/data/test_set_1/ts1_input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
81
5 2
2 7
7 4
7 10
5 10
8 7
4 9
5 3
7 6
3 8
5 4
8 5
2 2
3 4
6 8
4 8
6 9
8 3
10 6
3 9
7 5
10 9
3 10
4 5
6 10
5 6
5 8
10 10
2 3
4 4
7 9
9 10
4 10
9 6
2 5
8 9
2 9
6 4
5 7
8 4
10 8
4 7
6 6
6 5
10 4
8 8
4 2
7 2
8 2
7 3
8 6
6 2
2 10
6 7
7 8
10 2
2 8
5 9
9 3
3 3
6 3
3 7
10 5
9 8
3 2
4 6
5 5
10 7
4 3
9 5
2 6
3 5
9 9
9 7
7 7
8 10
3 6
9 2
2 4
9 4
10 3
Loading