Browse Source

Init: description and makefile template

main
André Palmborg 5 years ago
parent
commit
16d41a674e
  1. 8
      README.md
  2. 11
      c11-template/Makefile

8
README.md

@ -1 +1,9 @@
# competitive-programming
Solutions to problems from various competitive programming sites.
Beware of old, questionable-looking, code.
* More general solutions can be found under the directory 'algorithms-and-datastructures'
* Problems found at 'Open Kattis' have been put in directory named after the problem title.
* Problems I could only find through 'Online Judge' (UVa) are prepended with a 'u' and the problem number at UVa.

11
c11-template/Makefile

@ -0,0 +1,11 @@
EXECUTABLE=tst
CC=g++
CFLAGS=-lm -lcrypt -O2 -std=c++11 -Wall -Wextra -Werror -pipe -DONLINE_JUDGE
OBJ=main.cpp
$(EXECUTABLE): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ)
.PHONY: clean
clean:
rm -rf $(EXECUTABLE)
Loading…
Cancel
Save