Canadian Computing Competition: 2004 Stage 1, Junior #3
A simile is a combination of an adjective and noun that produces a phrase such as "Easy as pie" or "Cold as ice".
Write a program to input adjectives and nouns , and print out all possible similes. The first two lines of input will provide the values of and , in that order followed, one per line, by adjectives and nouns.
Your program may output the similes in any order.
3 2 Easy Smart Soft pie rock
Easy as pie Easy as rock Smart as pie Smart as rock Soft as pie Soft as rock
CCC problem statements in large part from the PEG OJ