← 返回 openai 的题目列表Chatbot Development
类型:online_judge
Design a simple chatbot program. The program should be able to take user input and return responses based on a simple set of rules. The chatbot should recognize greetings, simple questions, and farewells, and respond appropriately. The system should handle more than 1000 concurrent requests efficiently. Test cases should include: 1) Input: ‘Hello’ Output: ‘Hello! I am a chatbot.’; 2) Input: ‘How is the weather today?’ Output: ‘Sorry, I don't know the weather.’; 3) Input: ‘Goodbye’ Output: ‘Goodbye, have a nice day!’.
Example
Input
Hello