Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Similar Threads
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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 05:52 AM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.