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

9951번 - Word Extraction 다국어

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

문제

I am trying to create a dictionary of all the words in common use by my students. To do this, I am planning to feed text from their work, discussion forum entries, and emails through a program that extracts the words.

To make it easy to check if a word has been seen before, I am formatting the text carefully. Firstly I put everything in lower case, then I strip out all punctuation leaving the words separated by single spaces. If the punctuation comes within a word (i.e. there is a letter on either side of it), it is removed. If a "word" consists only of digits, it is ignored. Finally, I sort the words into alphabetical order, removing duplicates.

입력

Input will consist of a number of lines, each line representing a piece of text to be analysed, and terminated by a single #. No line will contain more than 250 characters.

출력

Output will be the qualifying words extracted from the text, one per line, in alphabetical order within each set. Each set of words from a piece of text will be separated from the next set by a blank line.

제한

예제 입력 1

Can I please have the spec for the Programming 3 assignment? B.T.W. I haven't got the lecture notes either!
Our guest speaker is Mr Hartley-Jones. He shouldn't need any introduction - you all met him last semester, didn't you?
When you said "give me your best 5 examples", did you mean just from this year - or can we use any? I'd like to use one from2006.
#

예제 출력 1

assignment
btw
can
either
for
got
have
havent
i
lecture
notes
please
programming
spec
the
all
any
didnt
guest
hartleyjones
he
him
introduction
is
last
met
mr
need
our
semester
shouldnt
speaker
you
any
best
can
did
examples
from
from2006
give
id
just
like
me
mean
one
or
said
this
to
use
we
when
year
you
your

힌트

출처

ICPC > Regionals > South Pacific > South Pacific Region > New Zealand Programming Contest > NZPC 2007 E번

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

출처

대학교 대회

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

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