#include #include #include using namespace std; const long long int maximum = 1e17; // 17자리씩 담아야지~ typedef struct big{ // 17자리씩 담아야지~ long long int high = 0; long long int low = 0; }big; big operator+(big a, big b) { big c; c.high = a.high + b.high; if (a.low + b.low > maximum) { c.low = a.low + b.low - maximum; c.high++; } else { c.low = a.low + b.low; } return c; } big memo[101][101]; big rec(..