A:8min才过???

#include<iostream> 
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define int long long
char getc(){char c=getchar();while ((c<'A'||c>'Z')&&(c<'a'||c>'z')&&(c<'0'||c>'9')) c=getchar();return c;}
int gcd(int n,int m){return m==0?n:gcd(m,n%m);}
int read()
{
    int x=0,f=1;char c=getchar();
    while (c<'0'||c>'9') {if (c=='-') f=-1;c=getchar();}
    while (c>='0'&&c<='9') x=(x<<1)+(x<<3)+(c^48),c=getchar();
    return x*f;
}
signed main()
{
/*#ifndef ONLINE_JUDGE
    freopen("a.in","r",stdin);
    freopen("a.out","w",stdout);
    const char LL[]="%I64d\n";
#endif*/
    char a=getc(),b=getc();
    for (int i=0;i<5;i++)
    {
        char x=getc(),y=getc();
        if (a==x||b==y) {cout<<"YES";return 0;}
    }
    cout<<"NO";
    return 0;
    //NOTICE LONG LONG!!!!!
}
View Code

相关文章:

  • 2021-08-02
  • 2021-04-02
  • 2021-09-06
  • 2022-12-23
  • 2021-09-21
  • 2021-07-11
  • 2021-10-09
  • 2021-06-15
猜你喜欢
  • 2022-01-25
  • 2022-02-21
  • 2021-12-18
  • 2021-05-21
  • 2021-10-31
  • 2021-09-08
相关资源
相似解决方案