cswork / OA打开练习工作台

MetaOA #7

Cyclic Vowel Shift

估计简单可在线判题

考点(AI 标注)字符串

Cyclically shift the lowercase vowels a, e, i, o, u in the string one position to the right in order of appearance: each vowel moves to the position of the next vowel, and the last one moves to the position of the first. All other characters stay in place. If there are no vowels, output the string unchanged.

输入格式

A single line of printable ASCII text of length 1..1000, which may contain spaces; only the lowercase aeiou count as vowels.

输出格式

Output the answer as described; separate multiple results with spaces in order, and output an empty line for an empty array.

样例 1

输入:

codesignal

输出:

cadosegnil

样例 2

输入:

plain text

输出:

plean tixt

样例 3

输入:

xyz

输出:

xyz

样例说明

Example 1: the vowels of codesignal are o, e, i, a in order; after rotating right they become a, o, e, i, and writing them back into the original vowel positions gives cadosegnil. The output must keep all original spaces and end with a newline.