摘要: 1 #include <iostream> 2 using namespace std; 3 long long dp[1001][1001]; 4 const long long mod=1e9+7; 5 int main() 6 { 7 int n,m; 8 cin>>n>>m; 9 for(i 阅读全文
posted @ 2018-05-10 20:48 凌乱风中 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 第一种解法(超时) 1 #include <iostream> 2 using namespace std; 3 #define ll long long 4 ll a[500005]; 5 int dp[500005]; 6 7 int main() 8 { 9 int n; 10 cin>>n; 阅读全文
posted @ 2018-05-10 20:33 凌乱风中 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 int dp[600][600]; 4 5 int main() 6 { 7 int n; 8 cin>>n; 9 for(int i=1;i<=n;i++){ 10 for(int j=1;j<=n;j+ 阅读全文
posted @ 2018-05-10 18:01 凌乱风中 阅读(81) 评论(0) 推荐(0) 编辑