K - MaratonIME bot

简介: K - MaratonIME bot

Statements

As you probably already know, all members of MaratonIME use Telegram to communicate, for its amazing web and desktop apps, its bots and, of course, its stickers.

As time goes by, members eventually graduate and leave the group, a sad event for all. Victor "Sena" Sena, a member of MaratonIME, is tired of countless goodbyes, and has decided to do something about the void that fills his noble soul.

Sena realized that people in Brazil are becoming more and more alike, expressing themselves in the same way, with expressions like "kk eae men", "ata" and "zapzap". The members of MaratonIME are very similar as well, but they use different expressions.

Peculiarly, whenever someone asks a question, everyone answers "7". This is a tradition, from unknown origins, passed on by Germano "Germs" UnionFind. Besides, whenever someone says a sentence (that is not a question) and he mentions the dear member Gabriel "Sussu" Fernandes, all members yell in unison "AI SUSSU!". For any other sentence that doesn't fit any of these rules, the answer is "O cara é bom!" (this guy is good).

Figuring out these patterns, and using his incredible knowledge of software engineering, Sena decided to create a Telegram bot that simulates retired members of MaratonIME. He developed the whole platform, he just need the part that prints the answer for a given sentence, can you help him?

It has been agreed that a sentence is a question if it's last character is ?. Also, it is only said that there was a mention to Sussu's great name if one of the words in the sentence is exactly Sussu.

Input

The input consists of a single sentence, that is, a non-empty line, with space-separated words (strings with lower or upper case letters). The last character is always one among ., ! and ?. The line has at most 200 characters.

Output

Print what a MaratonIME member would answer to that sentence.

Examples

Input

Na viagem o Sussu comeu gelo achando que era gelatina.


Output

AI SUSSU!


Input

O Carlinhos zuou o Sussu!


Output

AI SUSSU!


Input

Bojack Horseman eh a melhor serie do Netflix.


Output

O cara é bom!


Input

Voce acredita na conjectura de Goldbach?


Output

7


Input

Eu estava andando e de repente sussu Susu SUSSU Sussussu Sussuzodia foi muito interessante.


Output

O cara é bom!

题目大意及思路:判断字符串中有没有单独的“Russu”,和“?”,如果有“?”直接输出7,有“Russu”输出“

AI SUSSU!”都没有的话,输出“O cara é bom!”

判断“Russu”时,判断在字符串的最开始,中间,最后面

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char a[1001000];
    int i;
    int flag = 1;
    memset(a,0,sizeof(a));
    gets(a);
    int len = strlen(a);
    if(a[len-1] == '?')
    {
        printf("7\n");
    }
    else
    {
        for(i = 0; i <= len; i++)
        {
            if(a[len-6] == 'S' && a[len-5] == 'u' && a[len-4] == 's' && a[len-3] == 's' && a[len-2] == 'u')
            {
                printf("AI SUSSU!\n");
                flag = 0;
                break;
            }
            else if(a[0] == 'S' && a[1] == 'u' && a[2] == 's' && a[3] == 's' && a[4] == 'u' && a[5] == ' ')
            {
                printf("AI SUSSU!\n");
                flag = 0;
                break;
            }
            else if(a[i] == ' ' && a[i+1] == 'S' && a[i+2] == 'u' && a[i+3] == 's' && a[i+4] == 's' && a[i+5] == 'u' && a[i+6] == ' ')
            {
                printf("AI SUSSU!\n");
                flag = 0;
                break;
            }
        }
        if(flag == 1)
        {
            printf("O cara é bom!\n");
        }
    }
    return 0;
}


相关文章
|
8月前
Baidu千帆大模型4——ERNIE-Bot 4.0角色
Baidu千帆大模型4——ERNIE-Bot 4.0角色
304 0
|
8月前
|
人工智能 搜索推荐
ERNIE-Bot 4.0提示词格式
ERNIE-Bot 4.0提示词格式
66 0
|
Ubuntu NoSQL JavaScript
[转]Yunzai Bot搭建教程
一款QQ机器人的搭建教程
3482 1
|
4月前
|
人工智能 搜索推荐 UED
Bot 商店 + 一键优化提示词 Prompt,开启AI新体验!| Botnow上新
Botnow 迎来了重大更新,新增了 Bot 商店功能,并优化了 Bot 编排,提升了 AI 使用效率。用户可在 Bot 商店中轻松浏览和体验各类官方及用户发布的 Bots,并可一键发布或下架自己的 Bot。此外,还推出了一键优化 Prompt 功能,帮助用户生成清晰、精准的指令,提升对话质量。新老用户快来体验吧![链接]
180 4
|
5月前
|
机器学习/深度学习 存储 自然语言处理
基于知识库快速搭建智能客服问答 Bot
在数字化转型的大潮中,智能客服系统成为提升企业客户体验与运营效率的关键工具。Botnow平台集成智能体创作与分发功能,提供一站式智能客服问答Bot搭建服务。本文详细介绍了如何利用Botnow的知识库功能及RAG(Retrieve-Augmented Generation)方案快速构建智能客服问答Bot。通过Botnow平台,用户可以轻松创建知识库、配置智能体,并关联知识库以实现智能回答。该方案广泛适用于对话沟通、行业知识库建设、企业内部信息检索及内容创作等多个场景。Botnow平台以其可视化编排、低技术门槛等特点,助力企业轻松实现智能客服系统的搭建与优化,成为数字化转型的重要推手。
278 1
|
5月前
|
机器学习/深度学习 安全
Prompt攻击
【8月更文挑战第5】
245 3
|
5月前
|
存储 自然语言处理 机器人
【Azure 机器人】微软Azure Bot 编辑器系列(1) : 创建一个天气对话机器人(The Bot Framework Composer tutorials)
【Azure 机器人】微软Azure Bot 编辑器系列(1) : 创建一个天气对话机器人(The Bot Framework Composer tutorials)
|
5月前
|
自然语言处理 机器人 API
【Azure 机器人】微软Azure Bot 编辑器系列(3) : 机器人对话流中加入帮助和取消按钮功能 (The Bot Framework Composer tutorials)
【Azure 机器人】微软Azure Bot 编辑器系列(3) : 机器人对话流中加入帮助和取消按钮功能 (The Bot Framework Composer tutorials)
|
5月前
|
机器学习/深度学习 自然语言处理 机器人
【Azure 机器人】微软Azure Bot 编辑器系列(6) : 添加LUIS,理解自然语言 (The Bot Framework Composer tutorials)
【Azure 机器人】微软Azure Bot 编辑器系列(6) : 添加LUIS,理解自然语言 (The Bot Framework Composer tutorials)
|
5月前
|
存储 JSON 机器人
【Azure 机器人】微软Azure Bot 编辑器系列(2) : 机器人/用户提问回答模式,机器人从API获取响应并组织答案 (The Bot Framework Composer tutorials)
【Azure 机器人】微软Azure Bot 编辑器系列(2) : 机器人/用户提问回答模式,机器人从API获取响应并组织答案 (The Bot Framework Composer tutorials)