For Python code: I generally solve the two parts of the problem with two different scripts. Run with ./sol1.py input
For Zig code: The Zig program usually solves both parts at the same time. Simplest way to run: zig build run -- input
.
A couple solutions are greatly sped up by providing -Doptimize=ReleaseFast
right after zig build
.
Zig version used:
$ zig version
0.12.0-dev.706+62a0fbdae
|
|