Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 89f05d8

Browse files
committed
add syntax highlighted code blocks
1 parent f066cd4 commit 89f05d8

File tree

14 files changed

+55
-49
lines changed

14 files changed

+55
-49
lines changed

competition/bytecode/prob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Additionally, every `<name>` consists of three lowercase letters exactly.
9595
## Example
9696

9797
Consider the following sequence of instructions.
98-
```
98+
```text
9999
JUMP str
100100
LABEL pqr
101101
JUMP end
@@ -128,7 +128,7 @@ The following instructions will be executed:
128128
At the end, the **namespace** contains the variables `a` with value `6` and `b` with value `8`.
129129
The **output register** contains the value `2`.
130130
Hence, the output in this case should be
131-
```
131+
```text
132132
14 2
133133
```
134134
since the sum of all variables in the namespace is 14.

competition/comp.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---toml
22
[times]
3-
start = "2025-06-24T11:30:00+1000" # 11:30am AEST
3+
start = "2025-06-25T11:30:00+1000" # 11:30am AEST
44
# start = "2025-05-24T12:00:00+1000"
5-
finish = "2025-06-24T03:30:00+1000" # 3:30pm AEST
5+
finish = "2025-06-25T03:30:00+1000" # 3:30pm AEST
66
freeze = 60
77
---
88

@@ -12,18 +12,22 @@ ProgSoc @ TechFest
1212

1313
## Runsheet
1414

15-
- 11:30 - Event start, teams set up
16-
- 12:00 - Competition start
17-
- 1:00 - Lunch comes (sandwiches/wraps)
18-
- 3:00 - Scoreboard freeze
19-
- 4:00 - Competition end, scoreboard unfreeze, announcing winners
15+
- 9:00 am - Set-up for organisers
16+
- 11:00 am - Competitors arrive and sign-in
17+
- 11:30 am - Questions open
18+
- 12:30 pm - Lunch arrives (Sandwiches)
19+
- 3:30 pm - Questions close, Verification of solutions
20+
- 3:50 pm - Winners announced
21+
- 4:00 pm - Event Concludes
2022

2123
## Solving questions
2224

2325
Each question requires processing your generated problem input. Just as an example, here's a simple python program that reads a line from standard input and then prints it out again:
2426

27+
```python
2528
line = input()
2629
print(line)
30+
```
2731

2832
However, we've created a scaffold for each question that does that for you to make life easier.
2933

@@ -35,12 +39,14 @@ To upload a file, make sure you're logged in, then you should have a submit butt
3539

3640
There are 2 points systems:
3741

38-
The team with the most answered questions wins
39-
If there is a tie, the second system is used:
42+
The team with the most answered questions wins
43+
If there is a tie, the second system is used:
4044

41-
Each time you answer a question, you get "points" for how many minutes passed between the beginning of the competition and when you solved it
42-
Out of the tied teams, the team with the lowest total "points" wins
45+
Each time you answer a question, you get "points" for how many minutes passed between the beginning of the competition and when you solved it
46+
Out of the tied teams, the team with the lowest total "points" wins
4347

4448
## Prizes
4549

46-
1st place: $1500 2nd place: $900 3rd place: $600
50+
1st place: $1500
51+
2nd place: $900
52+
3rd place: $600

competition/intervals/prob.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The input will be a parenthesised expression containing intervals
5353
There will be whitespace in between any parenthesis, interval, or operator.
5454

5555
For example,
56-
```
56+
```text
5757
( ( ( 10-45 | 31-93 ) & ( 80-84 | 8-15 ) ) | ( ( 42-82 | 71-76 ) & ( 9-86 | 41-100 ) ) )
5858
```
5959

@@ -72,21 +72,21 @@ which is the **number of integers** that satisfy the given input expression.
7272
In this case, the integers that satisfy the above example input are
7373
10 to 14 (inclusive on both ends) and 42 to 83 (inclusive on both ends),
7474
meaning the answer is:
75-
```
75+
```text
7676
47
7777
```
7878

7979
## Detailed Example
8080

8181
Here's a detailed example to explain what this question is asking.
8282
Consider the following input.
83-
```
83+
```text
8484
( ( ( 1-5 | 2-6 ) & ( 3-7 | 8-9 ) & ( 5-9 | 6-7 ) ) | ( ( 7-9 | 8-10 ) & ( 1-7 | 5-10 ) ) )
8585
```
8686
To make it easier to read, let's format this over multiple lines,
8787
label each section of the expression,
8888
and rewrite the `&` and `|` symbols as `AND` and `OR` respectively.
89-
```
89+
```text
9090
(
9191
# Clause A:
9292
(

competition/lights/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Given the 3D positions and RGB hexcodes of several point light sources, find the
1717

1818
## Input Format
1919
Each line of the input represents a light source. Each line contains a hexcode (with hash) followed by 3 numbers representing the position all separated by spaces. For example:
20-
```
20+
```text
2121
#ff0000 1.0 2.0 3.0
2222
#00ff00 4.0 5.0 6.0
2323
```

competition/manhattan/prob.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ A cost is incurred every single time you move from one building to another.
4848
## Example
4949

5050
Consider the following input prompt.
51-
```
51+
```text
5252
aaa eee
5353
aaa(0, 0, 0): bbb(4), ccc(5)
5454
bbb(0, 1, 1): aaa(3), ccc(2), eee(10)
@@ -71,7 +71,7 @@ The first line contains two space-separated names:
7171
the first being the building you start at, and the second being the building you end at.
7272

7373
The rest of the lines are in the format of:
74-
```
74+
```text
7575
<building name>(<location coordinates>): [<building name>(<cost>)] ...
7676
```
7777

@@ -86,6 +86,6 @@ Your output will be a single integer, representing the cost of the shortest path
8686
from the given start building to the given end building.
8787

8888
In the above example, it will be a single integer as follows.
89-
```
89+
```text
9090
13
9191
```

competition/midi/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Each line represents a [MIDI message](https://www.mixagesoftware.com/en/midikit/
2121
* The two relevant MIDI opcodes are `0x8c` for note off and `0x9c` for note on.
2222
* The note number is an integer between 0 and 127.
2323

24-
```
24+
```text
2525
0 156 60
2626
1000 140 60
2727
500 156 64

competition/potoroo/prob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ A single integer representing the minimum number of tasty bush snacks you need t
3636
## Example
3737

3838
### Input
39-
```
39+
```text
4040
1 0 2
4141
```
4242

4343
### Output
44-
```
44+
```text
4545
5
4646
```
4747

competition/quantum-conveyor-belts/prob.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Here's a small example to demonstrate the question being asked.
4444
Consider the following layout of conveyor belts and stations,
4545
where you start your journey in the `aaa` station.
4646
In this setup, there are only two kinds of letters that will appear: `x` and `y`.
47-
```
47+
```text
4848
aaa: drift(bbb); x(bbb, ccc); y(ccc)
4949
bbb: drift(); x(); y(ddd)
5050
ccc: drift(ddd); x(); y(bbb)
@@ -88,7 +88,7 @@ Meanwhile, if you press the `y` key, you will go back to `{bbb, ccc, ddd}`.
8888
In this example, there are no more new superpositions that can be reached.
8989
Thus, the only 4 reachable superpositions are `{aaa, bbb}`, `{bbb, ccc, ddd}`, `{ccc, ddd}`, and `{}`.
9090
This means that the there are **12 unreachable** superpositions, as follows:
91-
```
91+
```text
9292
{aaa}, {bbb}, {ccc}, {ddd},
9393
{aaa, ccc}, {aaa, ddd}, {bbb, ccc}, {bbb, ddd},
9494
{aaa, bbb, ccc}, {aaa, bbb, ddd}, {aaa, ccc, ddd}, {aaa, bbb, ccc, ddd}.
@@ -102,11 +102,11 @@ with each line in the input representing the outgoing conveyor belts from a sing
102102
The first line will always be the station (not superposition) that you start your journey in.
103103

104104
The format of each line is as follows:
105-
```
105+
```text
106106
<station name>: drift(<comma-separated list of stations>); <letter>(<list of stations>); ...
107107
```
108108
For example,
109-
```
109+
```text
110110
aju: drift(bkv); a(bkv, clw); b(clw)
111111
```
112112
means that from the station `aju`, you can move to station `bkw` for free
@@ -125,7 +125,7 @@ If you press the `b` key in `aju`, you will end up in `clw`.
125125
### Example
126126

127127
Here's another example of the question input.
128-
```
128+
```text
129129
aju: drift(bkv); a(bkv, clw); b(clw)
130130
bkv: drift(dmx); a(bkv); b(bkv)
131131
clw: drift(); a(eny); b(bkv)
@@ -153,6 +153,6 @@ In the above example, there are 6 *reachable* superpositions:
153153
* `{bkv, clw, dmx, eny}`
154154

155155
Therefore, in this example, there are 26 *unreachable* superpositions, and the output should be
156-
```
156+
```text
157157
26
158158
```

competition/slime-chunk-farm/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ It's up to you to help steve find the **smallest area of land** that contains at
2222
## Input Format
2323
The input is a 100x100 grid of characters. Each character represents a chunk, which is a 16x16 area of land. A Slime chunk is denoted by an "**S**" while normal chunks are denoted by "**.**"
2424

25-
```
25+
```text
2626
...S.
2727
.S...
2828
.....

competition/time-traveler/prob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ corresponding in the order by which the test cases were provided.
4949
In this example, `T` is `1`.
5050
The next two lines are thus part of the one and only test case in this example.
5151
Here, `N` is `9`, followed by a single line with 9 space-separated integers.
52-
```
52+
```text
5353
1
5454
9
5555
10 5 4 7 9 12 6 2 10
@@ -58,7 +58,7 @@ Here, `N` is `9`, followed by a single line with 9 space-separated integers.
5858
### Output
5959

6060
Here, the solution is a single line containing the solution of the one test case we are provided.
61-
```
61+
```text
6262
20
6363
```
6464

0 commit comments

Comments
 (0)