Uva 6177 The King's Ups and Downs

Sample Input 4 1 1 2 3 3 4 4 20 Sample Output 1 l 2 4 3 10 4 740742376475050 #include<iostream> #include<string> typedef long long ll; using namespace std; ll dp[30][30]; ll ans[30]; void init() { dp
相关文章
相关标签/搜索