01 重复局面
CCF对CSP历次认证真题拥有版权,所以不放题目了。我的代码记一下。
http://118.190.20.162/view.page?gpid=T170
无脑,简单,果断python,AC
def issame(L1, L2):
for i in range(8):
for j in range(8):
if L1[i][j] != L2[i][j]:
return False
return True
n = int(input())
all_L = []
for i in range(n):
L = []
for j in range(8):
L.append(list(input()))
cnt = 1
for ii in all_L:
if issame(ii, L):
cnt += 1
print(cnt)
all_L.append(L)