407162: GYM102697 133 Question-able Difficulty
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
133. Question-able Difficultytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
You consider a string to be a question if its last character is a question mark. Given a string, figure out whether or not it is a question.
InputThe only line of input contains a single string $$$s$$$.
OutputIf the given string is a question (if it has a question mark on the end), output "YES" (no quotes). Otherwise, output "NO" (no quotes).
ExamplesInputWelcome to the CodeRams contest?Output
YESInput
We hope you like the problems!Output
NOInput
Good luck todayOutput
NO