2019CCPC湘潭邀请赛 | 题目 + 题解

本文分享了2019年CCPC湘潭邀请赛的题目及部分解题思路,包括签到题G题‘Can you raed it croretcly?’和K题‘SSY and JLBD’的解析,以及E题和B题的个人实现代码链接。此外,还提供了官方题解PPT的下载链接。
摘要由CSDN通过智能技术生成

先放一下重现赛网址

http://acm.hdu.edu.cn/contests/contest_show.php?cid=858

G题 Can you raed it croretcly?

签到题

两个字符串完全一样 输出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;
       
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值