Monkey Party Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1699 Accepted Submission(s): 769 Problem Description Far away from our world, there is a banana forest. And many lovely monkeys l
看了下感觉区间dp就是一种套路,直接上的板子代码就好了. 基础题ac代码:石子归并 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; ][]={{,},{,},{,},{,-},{-,},{-,-},{,-},{-,}}; #define pi acos(-1) #define ls rt<<1 #define rs rt<<