时间限制 内存限制
1000 ms 65536 KB

# 题目描述

每当临接比赛 ddl,助教们的答疑压力就会格外地大。请你帮助程序设计课程组开发一个答疑机器人,以下是一些常见的问题和回答:

1.
Q: My dear TA, my code sample is correct, why did it get WA? 
A: If it's right locally, you got WA means there's something wrong with the review machine!
2.
Q: My dear TA, why is my code can't pass the sample test cases?
A: You can output some variables.
3.
Q: My dear TA, my code gets TLE for large cases. What should I do?
A: Looks like your algorithm is too slow or you have an Endless loop.
4.
Q: My dear TA, why does my program end without output?
A: Maybe you accessed an illegal space.
5.
Q: I see! Thank you, my dear TA!
A: You're welcome!

# 输入格式

不定组输入,保证不超过 1010 组。

每组输入一行字符串,保证不超过 100100 个字符。

# 输出格式

对于每组输入,若输入是问答表中的输入,输出对应的回答;否则输出 Wait a minute, let me have a look.

# 输入样例

My dear TA, my code sample is correct, why did it get WA?
My dear TA, what's the difference between pointer constants and constant Pointers

# 输出样例

If it's right locally, you got WA means there's something wrong with the review machine!
Wait a minute, let me have a look.

# 题解:模拟

直接按照题意模拟即可。

时间复杂度O(L)O(L),其中 LL 为所有字符串长度之和。

参考代码:

#include <stdio.h>
#include <string.h>
char q[100];
int main()
{
    // freopen("W.in", "r", stdin);
    // freopen("W.out", "w", stdout);
    while (gets(q) != NULL)
    {
        if (!strcmp(q, "My dear TA, my code sample is correct, why did it get WA?"))
            puts("If it's right locally, you got WA means there's something wrong with the review machine!");
        else if (!strcmp(q, "My dear TA, why is my code can't pass the sample test cases?"))
            puts("You can output some variables.");
        else if (!strcmp(q, "My dear TA, my code gets TLE for large cases. What should I do?"))
            puts("Looks like your algorithm is too slow or you have an Endless loop.");
        else if (!strcmp(q, "My dear TA, why does my program end without output?"))
            puts("Maybe you accessed an illegal space.");
        else if (!strcmp(q, "I see! Thank you, my dear TA!"))
            puts("You're welcome!");
        else
            puts("Wait a minute, let me have a look.");
    }
    return 0;
}