/* * NOTE: it is recommended to use this even if you don't * understand the following code. */ #include #include // constraints #define MAXN 500 // input data int D, N, i; // comment those arrays if you want to use the struct int X[MAXN]; int R[MAXN]; int T[MAXN]; int K[MAXN]; int dir[MAXN]; // uncomment this struct if you want to use it. Remember to change the lines for // reading the input! // typedef struct { // int x, r, t, k, dir; // } crane_t; // crane_t cranes[MAXN]; int main() { // uncomment the following lines if you want to read/write from files // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); assert(2 == scanf("%d%d", &D, &N)); for (i = 0; i < N; i++) { // comment this line if you want to use the struct assert(5 == scanf("%d%d%d%d%d", &X[i], &R[i], &T[i], &K[i], &dir[i])); // uncomment this if you want to use the struct // assert(5 == scanf("%d%d%d%d%d", &cranes[i].x, &cranes[i].r, &cranes[i].t, &cranes[i].k, &cranes[i].dir)); } // insert your code here printf("%d\n", 42); // print the result return 0; }