A - Find the Missing Letter
解説
/
/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
表示言語
/ /Score : 100 points
Problem Statement
flakepym was typing the string SCSC on his computer and accidentally omitted one character. Find the missing character.
Constraints
- The string S has length 3 and consists only of the uppercase letters
SandC. - The given string can be obtained by removing exactly one character from
SCSC.
Input
The input is given from Standard Input in the following format:
S
Output
Output the omitted character as an uppercase letter.
Sample Input 1
CSC
Sample Output 1
S
Sample Input 2
SSC
Sample Output 2
C
表示言語
/ /점수 : 100 점
문제
flakepym은 컴퓨터에서 문자열 SCSC를 입력하다가 실수로 한 글자를 빠뜨렸다. 빠진 한 글자를 찾아보자.
제한
- 문자열 S는 길이가 3이고
S,C로만 이루어져 있다. - 주어지는 문자열은
SCSC에서 문자 하나를 제거해서 얻을 수 있는 문자열이다.
입력
입력은 다음 형식으로 표준 입력으로 주어진다.
S
출력
빠진 글자를 알파벳 대문자로 출력한다.
입력 예 1
CSC
출력 예 1
S
입력 예 2
SSC
출력 예 2
C
表示言語
/ /配点 : 100 点
問題文
flakepymはコンピュータで文字列 SCSC を入力している途中で,誤って 1 文字を抜かしてしまいました.抜かした文字を求めてください.
制約
- 文字列 S の長さは 3 で,英大文字
S,Cのみからなる. - 与えられる文字列は,
SCSCから 1 文字を削除して得られる文字列である.
入力
入力は以下の形式で標準入力から与えられる.
S
出力
抜かした文字を英大文字で出力せよ.
入力例 1
CSC
出力例 1
S
入力例 2
SSC
出力例 2
C