17 lines
416 B
Makefile
17 lines
416 B
Makefile
CXXFLAGS=-Wall -Wextra -std=c++11 -g
|
|
SHELL=bash
|
|
|
|
.PHONY: run
|
|
|
|
run:
|
|
make $$P && { head $$S.in | cut -c-80 ; echo ; \
|
|
time ./$$P < $$S.in ; echo ; \
|
|
cat $$S.ans ; echo ; \
|
|
diff -Naur <( ./$$P < $$S.in ) $$S.ans ; }
|
|
|
|
run_py:
|
|
head $$S.in | cut -c-80 ; echo ; \
|
|
time python $$P.py < $$S.in ; echo ; \
|
|
cat $$S.ans ; echo ; \
|
|
diff -Naur <( python $$P.py < $$S.in ) $$S.ans
|