Codeforces Round #408 (Div. 2), problem: (E) Exam Cheating Solution in C/C++

By |2017-04-11T10:24:05+00:00April 11th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <stdio.h> #include <string.h> #include <stdbool.h> #include <assert.h> #define clr(ar) memset(ar, 0, sizeof(ar)) #define read() freopen("lol.txt", "r", stdin) short dp[2][1052][1052]; int n, p, k, A[10010], B[10010], C[10010]; int solve(int lim){ int i, j, p, x, u, v, a, b, res; clr(dp); for (p = [...]