A higher resolution is required to access the IDE
- 633
Learning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
Goal
This program problem find out the consecutive string fromYou can move
if there is a
Rewrites all nonconsecutive strings of letters
In other words, this problem only displays the consecutive string from
Answer to output , as follows.
Example:
10
qadnhwbnyw
iiopcygydk
bahlfiojdc
cfijtdmkgf
dzhkliplzg
efgrmpqryx
loehnovstw
jrsacymeuv
fpnocpdkrs
jlmsvwvuih
The answer to this is...
----------
----------
ba--------
c-ij------
d-hkl---z-
efg-mpqryx
----no-stw
--------uv
----------
----------
As above, only the string alphabetically from
Input
Line 1: An integer n for the size of the string figure.
Next n Lines: multi-line string m.
Next n Lines: multi-line string m.
Output
Output only strings alphabetically from a to z should be displayed in multi-line string m, and the other parts should be - .
Constraints
10<=n<=30
m consists only of lowercase alphabetical characters.
There may be more than onea .
There is only oneabcdefghijklmnopqrstuvwxyz in the string figure.
m consists only of lowercase alphabetical characters.
There may be more than one
There is only one
Example
Input
10 vkbjbzmbgb abcccpzouv fedopwlmcl glmnqrszyw hkrhiutymj ijqcmvwxoc pcvlpqzphl hsgvoklcxy urdjusmbmz rchbcausnp
Output
---------- abc------- fedop----- glmnqrsz-- hk---uty-- ij---vwx-- ---------- ---------- ---------- ----------
A higher resolution is required to access the IDE