Prime Permutation
123A1300· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
abc
Output
YESabc
Sample 2of 3
Input
abcd
Output
NO
Sample 3of 3
Input
xxxyxxx
Output
YESxxxxxxy
58%
123A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
abc
YESabc
abcd
NO
xxxyxxx
YESxxxxxxy