Skip to content

quadratech188/baekjoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS Library

solutions/

Contains solutions for acmicpc.net (though they are often sourced from somewhere else) problems.

For C++ solutions, there are usually 2 files for each problem:

  • $(PROBLEM).cpp: Actual code, #includes headers defined in modules/
  • $(PROBLEM)-noinclude.cpp: Contains submittable code with headers generated (copied over) by cpp-merge

Due to the ever-changing nature of modules/, $(PROBLEM).cpp will very often fail to compile.

bin/

Contains comp and merge, 2 utility scripts.

  • comp PROBLEM compiles $(PROBLEM).cpp with debug symbols.
  • merge PROBLEM merges $(PROBLEM).cpp, saves it to $(PROBLEM)-noinclude.cpp, and copies it to the clipboard (for Wayland users)

modules/

Contains C++ headers for problem solving. Unlike other PS libraries, these headers are meant to be #included, not modified. It uses heavy templating to achieve this.

These headers were not carefully designed. On the contrary, they are an amalgamation of:

  • camelCase and snake_case
  • West const and East const
  • size_t and int and uint as indices
  • Unnecessary explicit this
  • Features that already exist in C++
  • Headers that were used once and never again
  • Ideas that were used once and never again
  • Headers that were immediately given up on
  • Headers that straight-up don't work

testcases/

Contains testcases for acmicpc.net problems. They can either be testcases found in some dusty corner of the internet, or testcases generated by a python script. The former will contain .out files, the latter will not.

About

Personal PS files & library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages