Logo
(追記) (追記ここまで)

6889번 - Smile with Similes 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB56349445888.932%

문제

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 $n$ adjectives $(1 \le n \le 5)$ and $m$ nouns $(1 \le m \le 5),ドル and print out all possible similes. The first two lines of input will provide the values of $n$ and $m,ドル in that order followed, one per line, by $n$ adjectives and $m$ nouns.

Your program may output the similes in any order.

입력

출력

제한

예제 입력 1

3
2
Easy
Smart
Soft
pie
rock

예제 출력 1

Easy as pie
Easy as rock
Smart as pie
Smart as rock
Soft as pie
Soft as rock

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2004 > CCC 2004 Junior Division 3번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /