1039 URAL 1039 Anniversary Party(트리 DP) #include <stdio.h> #define MAX_EMPLOYEES 6000 #define MAX(x, y) ( (x) > (y) ? (x) : (y) ) int numOfEmployees; int convivialityRate[MAX_EMPLOYEES + 1]; typedef struct Subordinate{ int subordinate; int next; }Subordinate; ... dppartyanniversary나무모양1039ural
URAL 1039 Anniversary Party(트리 DP) #include <stdio.h> #define MAX_EMPLOYEES 6000 #define MAX(x, y) ( (x) > (y) ? (x) : (y) ) int numOfEmployees; int convivialityRate[MAX_EMPLOYEES + 1]; typedef struct Subordinate{ int subordinate; int next; }Subordinate; ... dppartyanniversary나무모양1039ural