cf/mirror

Prime Permutation

CF
123A1300· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
abc
Output
YES
abc
Sample 2of 3
Input
abcd
Output
NO
Sample 3of 3
Input
xxxyxxx
Output
YES
xxxxxxy
123A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)