跳到正文

剪贴板

剪贴板 ygxx1qik

原文
剪贴板信息

剪贴板信息

收录
更新
makefile
compile:
	g++ tree.cpp -std=c++14 -O2 -lm -Wall -Wextra -static

debugc:
	g++ tree.cpp -std=c++14 -lm -g -Wall -Wextra -fsanitize=address,undefined -D_GLIBCXX_DEBUG -O0

test1:
	cp tree1.in tree.in
	ulimit -sv 524288; time ./a.out
	diff -Zb tree1.ans tree.out

test2:
	cp tree2.in tree.in
	ulimit -sv 524288; time ./a.out
	diff -Zb tree2.ans tree.out

test3:
	cp tree3.in tree.in
	ulimit -sv 524288; time ./a.out
	diff -Zb tree3.ans tree.out

test4:
	cp tree4.in tree.in
	ulimit -sv 524288; time ./a.out
	diff -Zb tree4.ans tree.out

test5:
	cp tree5.in tree.in
	ulimit -sv 524288; time ./a.out
	diff -Zb tree5.ans tree.out

test: compile test0 test1 test2 test3 test4 test5
	echo ok all testcases passed

debug: debugc test0 test1 test2 test3 test4 test5
	echo ok all testcases passed