先放一下重现赛网址
http://acm.hdu.edu.cn/contests/contest_show.php?cid=858
签到题
两个字符串完全一样 输出equal
判断首尾字母是否相同 中间字母是否个数相同 输出结果
#include <iostream>
#include <bits/stdc++.h>
#include <stdio.h>
#include <cstdio>
#include <math.h>
#include <string>
#include <string.h>
#include <algorithm>
using namespace std;
const int inf = 0x3f3f3f3f;
#define ll __int64
const int maxn = 1000005;
int main()
{
//ll d = 1000000000;
//printf("%I64d",d);
//freopen("in.txt","r",stdin);
string a,b;
int aa[165],bb[165];
while(cin>>a>>b)
{
memset(aa,0,sizeof aa);
memset(bb,0,sizeof bb);
if(a==b)
cout<<"Equal"<<endl;
else
{
int l1=a.length()-1;
int l2=b.length()-1;
int flag=1;