#68. 字符串前缀判断
字符串前缀判断
String Prefix Check
Background
In daily text processing, we often need to check if a string starts with a specific substring. For example, in a chatbot, we might need to identify if a user's query starts with "hello".
Problem Description
Given a string, return true if the string starts with "hi" and false otherwise.
Input Format
Input is given from standard input in the following format.
s
Output Format
Output is printed to standard output in the following format.
result
Sample
hi there
true
hi
true
hello hi
false
Sample Explanation
In Sample 1, the string "hi there" starts with "hi\