摘要:
Sample Input 5 2 0 0 1 2 0 2 0 0 0 4 3 2 3 7 1 0 0 0 0 0 2 0 2 0 0 Sample Output 8 题解 这是一道比较困难的DP,因为它分层,所以很容易想到DP,具体实现参考代码: include include using name 阅读全文
摘要:
Sample Input 7 2 2343223 4 1 2234 Sample Output 2243233 2334 题解 这是一道找规律题,发现233 223 233 223...此时就可以写出正解. include include include include define file(a) 阅读全文