思路:

1003是大水题

#include<set>
#include<map>
#include<cmath>
#include<queue>
#include<cstdio>
#include<vector>
#include<string>
#include<cstdlib>
#include<cstring>
#include<iostream>
#include<algorithm>
#define pb push_back
#define mp make_pair
#define Maxn 100010
#define Maxm 200010
#define LL __int64
#define Abs(x) ((x)>0?(x):(-x))
#define lson(x) (x<<1)
#define rson(x) (x<<1|1)
#define inf 100000
#define lowbit(x) (x&(-x))
#define clr(x,y) memset(x,y,sizeof(x))
#define Mod 1000000007
using namespace std;
char ss[20]="nanodesu";
int main()
{
    int t,i,j,l;
    int Case=0;
    char str[110];
    scanf("%d",&t);
    while(t--){
        scanf("%s",&str);
        l=strlen(str);
        printf("Case #%d: ",++Case);
        if(l>=4&&str[l-1]=='u'&&str[l-2]=='s'&&str[l-3]=='e'&&str[l-4]=='d'){
            str[l-4]='\0';
            printf("%s",str);
            printf("%s\n",ss);
            continue;
        }
        printf("%s",str);
        printf("%s\n",ss);
    }
    return 0;
}
View Code

相关文章:

  • 2021-09-25
  • 2022-03-10
  • 2022-12-23
  • 2022-01-28
  • 2021-06-06
  • 2022-01-23
  • 2021-09-02
  • 2022-01-10
猜你喜欢
  • 2021-09-25
  • 2022-01-07
  • 2021-12-13
  • 2021-07-04
  • 2021-06-05
  • 2022-01-07
  • 2022-02-19
相关资源
相似解决方案