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

Reply
 
Thread Tools Display Modes
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
Old 08-03-2005, 06:35 PM   #22
Unknown Hero
Home Sweet Abandonia

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

2. Exam
Luka dislikes learning, but anyways, he will like to pass the most difficulty exam on the first year. During his last visit to university's canteen, he overheard that all students of second year know which questions will be in his exam. The truth is that no one actually knows it, but everyone thinks that someone else knows.
Luka now chooses person A from the second year and asks him what questions will be in the exam. Person A responds that he doesn't know, but that he thinks that person B knows. Then Luka asks the same question to person B, etc.
Write a program that will determine which student Luka should first ask about the exam, so that the number of questioned students is the biggest possible.

Entering parameters:
In the first line there is a whole number N, 2<=N<=1000, the number of students. Students are marked with numbers from 1 to N.
In every of next N lines there is one number. First number determines ordinal number of student that first student will send Luka to ask him about the exam, second number determines ordinal number of student that second student will send Luka to ask him about Exams, and so on.

Exiting parameters:
In first and only line write an ordinal number of student that Luka have to ask first about the exam, so that the number of students that he will meet on that way could be the biggest possible.
If there are more these students, then write a number of that student that has the smallest ordinal number.

Test examples:
exam.in
3
3
3
1
exam.out
2

exam.in
4
2
3
4
1
exam.out
1

exam.in
6
2
3
4
3
1
1
exam.out
5




Two more to go. I will post those two after at least one of members tries to solve one or both of previous two exams. k:
Unknown Hero is offline                         Send a private message to Unknown Hero
Reply With Quote
Old 08-03-2005, 07:27 PM   #23
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

Thanks for commend.
But i think the lowest points are 50% of all points(which I don't have).
Sorry for disapointment. k:

I think that's a great ideat to translate the exams in this topic.
Salute!

???If it were more time!!! :
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 10-03-2005, 06:37 PM   #24
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

For the library program I have to tell you that it will be done until next sunday (after this) [] becouse I have to write my work from math for tuesday. And it is large!
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 20-03-2005, 09:24 PM   #25
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

If you want to be tested. Try USACO.
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 22-03-2005, 05:58 PM   #26
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

Quote:
Originally posted by NrmMyth@Mar 20 2005, 10:24 PM
If you want to be tested. Try USACO.
Today the March competition has ended.
Final results will be at thursday.
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 04-04-2005, 07:33 AM   #27
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

IMO this topic should be cleaned of trash and pined. k:

By trash i mean all posts that aren't problems and their solutions.

Also it has to be nicely done!
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 04-04-2005, 02:49 PM   #28
Kon-Tiki
[BANNED]

 
Join Date: Sep 2004
Location: Dentergem, Belgium
Posts: 1,811
Default

What I see better, is to get together and set up some exams with different difficulty rating, along with possible solutions in pseudo-code for them, then pin it and lock it. These questions can then still be discussed in here.
Kon-Tiki is offline                         Send a private message to Kon-Tiki
Reply With Quote
Old 04-04-2005, 06:20 PM   #29
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

Great, why not do this then, I'll help if I can. k:
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote
Old 04-04-2005, 06:33 PM   #30
Kon-Tiki
[BANNED]

 
Join Date: Sep 2004
Location: Dentergem, Belgium
Posts: 1,811
Default

Let's see if there're any others who want to join in too k:
Kon-Tiki is offline                         Send a private message to Kon-Tiki
Reply With Quote
Reply


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 02:51 PM (GMT)

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