prelude_to_doublets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
prelude_to_doublets [2011/09/05 11:48] – jtkorb | prelude_to_doublets [2011/09/05 11:57] – jtkorb | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Input ===== | ===== Input ===== | ||
- | Like Doublets, the input consists of a dictionary of words, one per line, followed by pairs of words, one per line. The dictionary and word pairs are separated by a blank line and there is a blank line after the last pair of words. | + | Like Doublets, the input consists of a dictionary of words, one per line, followed by pairs of words, one per line. The dictionary and word pairs are separated by an empty line. |
===== Output ===== | ===== Output ===== | ||
- | For each line of input, print "set" if the integers form a complete set from smallest to largest without duplicates; otherwise print "not a set". | + | Print the number of words in the dictionary, in the format below. |
===== Sample Input ===== | ===== Sample Input ===== | ||
Line 24: | Line 24: | ||
booster roasted | booster roasted | ||
coastal postal | coastal postal | ||
+ | rooster fooster | ||
</ | </ | ||
prelude_to_doublets.txt · Last modified: 2011/09/06 13:00 by jtkorb