Page not loading? Try clicking here.
Placeholder

#5063

중복 단어 검토 1s 32MB

Problems

공백이 포함된 문장을 두줄 입력받아 두 문장에서 겹치는 단어들을 사전순으로 출력하시오.​ ​ 


Input

3 <= 각 문장의 길이 <= 1000

한 문장에 중복되는 단어는 없다.​​ 


Example

apple banana cat dog egg fruit gold height isolation jack

jack has a dog loves to swim
dog jack

Source

JUNGOL - klee
You must sign in to write code.