Created
October 29, 2017 20:00
-
-
Save kosciCZ/bb1792b4d54113765a73c0f8bc530f92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nahrani listu adres | |
prefix = Vstup od uzivatele z argumentu | |
jestli jsou to pismena | |
z listu adres vyber mesta, ktera zacinaji s timto prefixem | |
jestli je jedine mesto, ktere zacina timto prefixem | |
vypis mesto | |
return | |
jestli ma vice mest tenhle prefix | |
na klavesnici ukaz vsechna mozna dalsi pismena, ktera mohou nasledovat za timto prefixem | |
return | |
jestli to nejsou pismena | |
napis uzivateli, ze nezadal pismeno, at zada pismeno |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment