This file contains hidden or 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
| """ | |
| 全俳句データベース | |
| https://horicun.moo.jp/contents/haiku/index.html | |
| の機能をPythonで実装します。 | |
| haiku.nthHaiku(n): n番目の俳句を表示します。n <= 85 ** (5+7+5)である必要があります。 | |
| haiku.HaikuToNth(s): 与えられた5 7 5の俳句sが何番目の俳句かを検索します。 | |
| """ | |
| basicChars = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをがぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽぁぃぅぇぉゃゅょゎっゐゑーゔん" | |
| haikuLen = 5 + 7 + 5 |
OlderNewer