#B. 字符串翻转

    Type: Default 1000ms 256MiB

字符串翻转

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给你一个字符串SS只由0,1,6,8,90,1,6,8,9组成。

请你将其旋转180180度,并打印结果。也即是对SS使用以下操作并打印结果字符串:

  • SS逆序。
  • 将每个00替换为00,将每个11替换为11,将每个66替换为99,将每个88替换为88,将每个99替换为66

输入格式

第一行包含字符串SS

输出格式

输出字符串翻转之后的结果。

0601889
6881090
01010
01010

提示

【数据范围】

对于所有数据,保证:1S1051\leq |S| \leq 10^5

C23本部开学赛

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2024-3-7 12:35
End at
2024-3-7 14:11
Duration
1.6 hour(s)
Host
Partic.
23