while True: try: n=int(input()) line1=input() line2=input() res=1 if line2[-1]=='X': print(-1) break if n==1: print(1) break for i in range(1,n): temp=0 if line1[i]=='.': temp+=1 if line2[i]=='.': temp+=1 if temp==0: print(-1) break res*=temp print(res) except: break
点赞 6

相关推荐

05-29 22:11
门头沟学院 Java
Elastic90:抛开学历造假不谈,这公司的招聘需求也挺怪的,Java开发还要求你有图文识别、移动端开发和c++的经验,有点逆天了。
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务