#abc335a. A - 202<s>3</s>
A - 202<s>3</s>
Score : points
问题描述
你将得到一个由小写英文字母和数字组成的字符串 。
保证 以 2023
结尾。
将 的最后一个字符改为 4
,并输出修改后的字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string consisting of lowercase English letters and digits.
is guaranteed to end with 2023
.
Change the last character of to 4
and print the modified string.
Constraints
- is a string of length between and , inclusive, consisting of lowercase English letters and digits.
- ends with
2023
.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
hello2023
Sample Output 1
hello2024
Changing the last character of hello2023
to 4
yields hello2024
.
Sample Input 2
worldtourfinals2023
Sample Output 2
worldtourfinals2024
Sample Input 3
2023
Sample Output 3
2024
is guaranteed to end with 2023
, possibly being 2023
itself.
Sample Input 4
20232023
Sample Output 4
20232024
update @ 2024/3/10 01:22:52