Codeforces Round #378 (Div. 2), problem: (D) Kostya the Sculptor Solution In C
#include #include #define N 100000 #define M 1000000007 #define MIN(A, B) ((A) < (B) ? (A) : (B)) int i1, i2, k; double max; struct item { int i, a, b, c; struct item *next; …