No.3610 CHANGE
レベル :
/ AI推定難易度 : 73
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 1024 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 68
作問者 :
kazuppa
/ テスター :
Tamiji153
Unbakedbread
タグ : / 解いたユーザー数 68
作問者 :
kazuppa
/ テスター :
問題文最終更新日: 2026-08-06 13:35:06
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
Paken新入生コンday1
(順位表)
の他の問題:
Problem Statement
You are given a string $S$ of length $N$ consisting of lowercase English letters. Output the string obtained by changing the $X$-th character of $S$ to $C$.
Constraints
- $1\leq N\leq 100$
- $S$ is a string of length $N$ consisting of lowercase English letters
- $1\leq X\leq N$
- $C$ is a lowercase English letter
- $N,X$ are integers
Input
$N$ $S$ $X\ C$
Output
Output the answer on a single line.
Sample
Sample 1
Input
4 flap 1 c
Output
clap
Changing the $1$-st character of flap to c gives the string clap.
Sample 2
Input
5 witch 2 a
Output
watch
Sample 3
Input
1 a 1 a
Output
a
The string after the change may be the same as the string before the change.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。