103350: [Atcoder]ABC335 A - 202<s>3</s>
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:7
Solved:0
Description
Score : $100$ points
Problem Statement
You are given a string $S$ consisting of lowercase English letters and digits.
$S$ is guaranteed to end with 2023
.
Change the last character of $S$ to 4
and print the modified string.
Constraints
- $S$ is a string of length between $4$ and $100$, inclusive, consisting of lowercase English letters and digits.
- $S$ ends with
2023
.
Input
The input is given from Standard Input in the following format:
$S$
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
$S$ is guaranteed to end with 2023
, possibly being 2023
itself.
Sample Input 4
20232023
Sample Output 4
20232024
Output
得分:100分
问题描述
给你一个由小写英文字母和数字组成的字符串$S$。
字符串$S$保证以2023
结尾。
将$S$的最后一个字符改为4
并打印修改后的字符串。
限制条件
- $S$是一个长度在4到100之间的字符串,由小写英文字母和数字组成。
- $S$以
2023
结尾。
输入
输入通过标准输入给出,格式如下:
$S$
输出
打印答案。
样例输入1
hello2023
样例输出1
hello2024
将hello2023
的最后一个字符改为4
得到hello2024
。
样例输入2
worldtourfinals2023
样例输出2
worldtourfinals2024
样例输入3
2023
样例输出3
2024
$S$保证以2023
结尾,可能是2023
本身。
样例输入4
20232023
样例输出4
20232024
HINT
将字符串最后面的4位2023改成2024