#abc244a. A - Last Letter
A - Last Letter
Score : points
问题描述
给定一个长度为 的由小写英文字母组成的字符串 ,打印出 的最后一个字符。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Given a string of length consisting of lowercase English alphabets, print the last character of .
Constraints
- is an integer.
- is a string of length consisting of lowercase English alphabets.
Input
Input is given from Standard Input in the following format:
Output
Print the last character of .
Sample Input 1
5
abcde
Sample Output 1
e
The last character of abcde
is e
, so e
should be printed.
Sample Input 2
1
a
Sample Output 2
a
update @ 2024/3/10 10:28:21