問題一覧 > 通常問題

No.400 鏡

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 718
作問者 : nmnmnmnmnmnmnm / テスター : Tawara
お気に入りにしたユーザー ProblemId : 1044 / 自分の提出
問題文最終更新日: 2026-06-25 00:55:12
Mirror
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. Show the original
yukicoder contest 143 (順位表) の他の問題:

Problem Statement

There is a string consisting of "<" and ">".
What does the string look like when it is reflected in a mirror and flipped horizontally?
(See the samples for details. Please look at Sample 2 in particular.)

Input

S

S is a string consisting of "<" and ">". $1\le Sの長さ \le 20$.

Output

Output the string flipped by the mirror on one line.
Print a newline at the end.

Sample

Sample 1
Input
<<<
Output
>>>

This is what a horizontal flip means.

Sample 2
Input
<>>
Output
<<>

Sample 3
Input
>>><<<
Output
>>><<<

If the string is left-right symmetric, it stays the same after a horizontal flip.

Sample 4
Input
><<><<<><><
Output
><><>>><>><

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。