Skip to content

v0.1.7

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Mar 04:33

Install

Package managers (when configured):

  • Homebrew: brew tap BansonVuong/homebrew-tap && brew install cptui
  • Scoop (Windows): scoop bucket add bansonvuong https://github.com/BansonVuong/scoop-bucket && scoop install cptui

Run

Run from a directory that contains ./problems, or specify --problems-dir.

On the first ever run, CPTUI launches a setup flow that:

  • checks for a compatible C++ compiler with bits/stdc++.h support
  • prints install guidance if no compatible compiler is found
  • offers to download and extract the sample problems archive automatically

You can trigger the setup again manually:

./cptui --init

Use a custom problems directory:

cptui --problems-dir /path/to/problems

A C++ compiler is required to run this program.

Use a GCC/g++ toolchain (needed for bits/stdc++.h):

Demo

The only file that is guaranteed to work without <bits/stdc++.h> support is bf1easy. Otherwise, you may need to install a compiler with support for <bits/stdc++.h>.

Install using brew or scoop, then it will prompt you to download the sample problems folder in your current folder.