Commits

Seonghoon Kang committed 8675550

snapshot

Comments (0)

Files changed (5)

 	mv ... data/input.txt
 	make dump               # produces data/input*.txt and others
 	make solve              # produces analysis/ and output/
-	make verify             # optional, but it's helpful to double-check
-	                        # and it often patches a last-minute error.
+	make verify             # checks if the output in output/ is correct.
+	                        # often patches a last-minute error, and
+	                        # stores the solutions to archive/
 	make zip                # produces result.7z and code.tar.gz
+	                        # from the best solutions in archive/
 
 You require bash, GNU make, p7zip, Python (2 only, PyPy is just fine), any
 optimizing C++ compiler. I've also used a modified version of Golly for fast
 // unstable and highly likely to decompose by itself.
 
 #include <stdio.h>
+#include <unistd.h>
 #include <set>
-#include <map>
-#include <vector>
-#include <utility>
 #include "gol.h"
 using namespace std;
 
 	write_rle(fp, itable);
 	fclose(fp);
 
+	fflush(stdout);
+	_exit(0); // no need to wait for deallocation
 	return 0;
 }
 
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <set>
-#include <map>
-#include <vector>
-#include <utility>
 #include "gol.h"
 using namespace std;
 
 	write_rle(fp, itable);
 	fclose(fp);
 
+	fflush(stdout);
+	_exit(0); // no need to wait for deallocation
 	return 0;
 }
 
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
+#include <unistd.h>
 #include <set>
 #include <map>
 #include <vector>
 	}
 	fclose(fp);
 
+	_exit(0); // no need to wait for deallocation
 	return 0;
 }
 
 		fclose(fp);
 	}
 
+	_exit(0); // no need to wait for deallocation
 	return 0;
 }