![]() |
#21 | ||
![]() ![]() ![]() Join Date: Aug 2004
Location: Split, Croatia
Posts: 1,028
|
![]() 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) 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 |
||
![]() ![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discussion Of Exams | Kon-Tiki | Programming | 8 | 30-03-2007 07:27 PM |
How Often Do You Cheat On Exams / Tests | nace | Blah, blah, blah... | 40 | 16-10-2006 07:57 PM |
Solution To Exams | Kon-Tiki | Programming | 0 | 08-08-2005 05:37 PM |
Exams | Unknown Hero | Programming | 0 | 12-04-2005 08:40 PM |
|
|
||
  |