莫名其妙卡很久的題目,照題意不難解,只是有些例外要多想一下。
Sample Input:
3
RSAEIO
2
5
RTSSKAEAGE
GRSCAV
RGSSCAV
RUSIQO
RUSSGAACEV JEGIITOOGR
AABBCCDDEEFFGHVXYZ
28
3
AJAAGBNNQ
AAAACBBJBQQ
AZAAABBBB
ABC
5
3
AFBBFCCFA
AXB
AFBBFCCFAAFBBFCCFAAFBBFCCFA
Sample Output:
RICE
error in encryption
EAT
error in encryption
SEAT HERE
HELLO
YAHOO
XYZ
AAA
VSW
AAAAAAAAA
沒有留言:
張貼留言