简单模拟。

#pragma comment(linker, "/STACK:1024000000,1024000000")
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<stack>
#include<iostream>
using namespace std;
typedef long long LL;
const double pi=acos(-1.0),eps=1e-;
void File()
{
freopen("D:\\in.txt","r",stdin);
freopen("D:\\out.txt","w",stdout);
}
template <class T>
inline void read(T &x)
{
char c=getchar(); x=;
while(!isdigit(c)) c=getchar();
while(isdigit(c)) {x=x*+c-''; c=getchar();}
} char s[][],t[][]; bool check()
{
if(s[][]!=t[][]) return ;
if(s[][]!=t[][]) return ;
if(s[][]!=t[][]) return ;
if(s[][]!=t[][]) return ;
return ;
} void f()
{
if(s[][]=='X') { swap(s[][],s[][]); return; }
if(s[][]=='X') { swap(s[][],s[][]); return; }
if(s[][]=='X') { swap(s[][],s[][]); return; }
if(s[][]=='X') { swap(s[][],s[][]); return; }
} int main()
{
scanf("%s",s[]);
scanf("%s",s[]);
scanf("%s",t[]);
scanf("%s",t[]); for(int i=;i<=;i++)
{
if(check()) { printf("YES\n"); return ; }
f();
} printf("NO\n");
return ;
}

最新文章

  1. 爬虫的入门以及scrapy
  2. SpringMVC 文件上传
  3. MVC5-6 帮助类
  4. UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0xe5 in position 0: ordinal not in range(128)
  5. angularjs post
  6. ASP.NET MVC自定义AuthorizeAttribute篇知识点讲解—登录限制
  7. python的几个常用内置函数
  8. phpmyadmin导入导出大数据文件的办法
  9. SQLServer中临时表与表变量的区别分析
  10. 【转载】Android通过ksoap2调用.net(c#)的webservice
  11. Poj 1904 King&#39;s Quest 强连通分量
  12. DEDE里有个编码问题,不支持PHP5.4及以上版本!
  13. NDK Jni 开发(1)
  14. sudo 做不到的事
  15. SPOJ D-QUERY
  16. dubbo搭建
  17. Python_day1 Learning record
  18. 20175227张雪莹 2018-2019-2 《Java程序设计》第三周学习总结
  19. Linux学习指导
  20. 【Spark 深入学习-08】说说Spark分区原理及优化方法

热门文章

  1. WindowsService开发遇到的问题
  2. [置顶] Android开发之Thread类分析
  3. python进程池剖析(三)
  4. 【工作笔记四】去掉a标签超链接的虚线框的方法
  5. 松瀚SN8P2501 定时器初始化程序--汇编源码
  6. Javascript多线程引擎(九)
  7. AppCompat v21 — Android 5.0之前版本设备的Material Design实现
  8. WebApi HttpMsgHanler的执行顺序
  9. Winform系列
  10. MVC应用程序请求密码的功能(二)