摘要: POJ-2996 #include <algorithm> #include <cstring> #include <cstdio> #include <iostream> #include <utility> #include <vector> #include <cmath> #define f 阅读全文
posted @ 2021-08-17 16:38 liv_vil 阅读(29) 评论(0) 推荐(0)
摘要: https://vjudge.net/article/6 1.枚举 POJ-1753 题意:4X4枚正反面的硬币 任意翻 翻成同一面最小步数 翻一枚 上下左右全翻 思路:枚举 第一行 0000~1111 16种翻法 因为下一行总能把上一行翻成同一面 用下一行控制上一行 看最后一行满足不满足条件 更新 阅读全文
posted @ 2021-08-17 15:02 liv_vil 阅读(336) 评论(0) 推荐(0)