摘要:
弱化版的费解的开关。 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 110; 4 char a[N], b[N]; 5 void turn(int i) { 6 if (a[i] == '*') { 7 a[i] 阅读全文
posted @ 2020-04-27 11:26
kyk333
阅读(162)
评论(0)
推荐(0)
摘要:
这道题目和费解的开关https://www.cnblogs.com/fx1998/p/12767815.html类似一点点。 解题思路: 一共有16个开关,每个开关可以选择按一下或不按这两种状态。 所以可能的结果一共有2^16=65536,对于每种情况,再遍历一下4*4的矩阵看是否全是打开的,再乘以 阅读全文
posted @ 2020-04-27 10:52
kyk333
阅读(162)
评论(0)
推荐(0)

浙公网安备 33010602011771号