传统题 1000ms 256MiB

只留 A / A

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Problem Statement

You are given a string SS consisting of uppercase English letters.

Output the string obtained by replacing every character in SS other than A with ..

Constraints

  • SS is a string of length between 11 and 100100 (inclusive) consisting of uppercase English letters.

Input

The input is given from Standard Input in the following format:

  • SS

Output

Output the answer.

ATCODER
A......

Since the first character is the only occurrence of A in SS, output the string obtained by changing the second through seventh characters of SS to ..

BANANA
.A.A.A

SS may contain two or more occurrences of A.

CORRECT
.......

SS may contain no occurrence of A.

ABC472 赛后模拟赛 ✅

未参加
状态
已结束
规则
IOI
题目
7
开始于
2026-8-22 21:40
结束于
2026-9-5 21:40
持续时间
336 小时
主持人
参赛人数
52