View Single Post
Old 08-03-2005, 06:10 PM   #21
Unknown Hero
Home Sweet Abandonia

 
Join Date: Aug 2004
Location: Split, Croatia
Posts: 1,028
Default

Today was holded regional contest in programming in Croatia.

I didn't make it up to national contest, but NrmMyth will maybe make it with his score! (great job mate) k: k:

Here are exams:

1. Abbrevation(shortcut)
Read a sentence which consists of one or more words that are separated with one space.
We make an abbrevation of read sentence by picking up the begining letter of every word in sentence, excapt if that word is one of the following: 'i','pa','te','ni','niti','a','ali','nego','no' , and 'ili'
In that case we ignore the word. BUT, if the sentence begins with one of the words, we consider that word very importants, so we don't ignore it (at the begining, later on, we ignore it).
Write a program that will determine a abbrevation for a read sentence. Abbrevation MUST be written with CAPS ('A' instead of 'a').

Entering parameters:
In first and only line, there is a sentence. Only permited characters inside the sentence are small letters of english alphabet ('a'...'z') and space.
Sentence wont have more than 100 characters.

Exiting parameters:
In first and only line write a abbrevation of read sentence.

Test examples:
abb.in
mirko soft
abb.out
MS

abb.in
biti ali i ne biti
abb.out
BNB

abb.in
ali ja sam i jucer jeo
abb.out
AJSJJ
Unknown Hero is offline                         Send a private message to Unknown Hero
Reply With Quote