摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6880 根据长度为n的排列a,构造长度n-1的序列b 思路:DP 官方题解: 代码: #include<iostream> #include<cstdio> #include<cstring> #include<a 阅读全文
posted @ 2020-08-25 22:06 YukiRinLL 阅读(95) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/HDU-6879 题意: 给定S,r,c 构造一个r行c列的阵列。 对于没有炸弹的位置的数值为位置附近8个位置炸弹总数 保证炸弹总数S 代码: #include<iostream> #include<cstdio> #include<cstrin 阅读全文
posted @ 2020-08-25 21:47 YukiRinLL 阅读(96) 评论(0) 推荐(0)