UVa 11192

From Algorithmist
Jump to navigation Jump to search

11192 - Group Reverse[edit]

Summary[edit]

A pretty standard string problem. Reverse groups of the string independently of one another.

Explanation[edit]

No explanation needed - simply follow the directions.

Input[edit]

3 ABCEHSHSH
5 FA0ETASINAHGRI0NATWON0QA0NARI0
1 ABCDE
0

Output[edit]

CBASHEHSH
ATE0AFGHANISTAN0IRAQ0NOW0IRAN0
EDCBA

Solutions[edit]