#include #include #include #include #include using namespace std; const int MAX_X = 1000000; const int MAX_N = 1000; const int MAX_V = 1000; int testcase_num; int v_walk, v_metro; int x_min, y_min, x_max, y_max; int x_start, y_start; int x_end, y_end; vector x_metro, y_metro; void save(string testcase_id) { char filename[100]; sprintf(filename, "data/secret/%02d_%s.in", testcase_num, testcase_id.c_str()); cout << "saving: " << filename << endl; testcase_num++; ofstream out(filename); out << v_walk << " " << v_metro << endl; out << x_min << " " << y_min << " " << x_max << " " << y_max << endl; out << x_start << " " << y_start << endl; out << x_end << " " << y_end << endl; out << x_metro.size() << endl; for (int i=0; i