Daffodil International University

IT Help Desk => Programming Language => Programming Competition => Topic started by: Nazmul on June 20, 2010, 03:12:49 PM

Title: DIU Summer Contest - 2010 was Held
Post by: Nazmul on June 20, 2010, 03:12:49 PM
Dear Students of FSIT (Faculty of Science & Information Technology) are hereby notified that we had arranged a programming contest in this summer.

Contest Particulars:
Contest Date   : 17/06/2010 (Thursday)
Time      : 1:00 PM-4:00 PM
Room       : Lab#205 (Browsing Lab)

DIU Summer Contest - 2010
(Final Standing)

Rank   Name   Solved   Time       A           B           C           D       Total att/solv
1   Tania Sultana   4       541     2/44      2/162   3/169   1/86       8/4
2   Shabab           3       369     4/69      2/98   0/--           1/122    7/3
3   Tomal Jannat   2       240     1/60      0/--   0/--           1/180    2/2
4   Parumita           1       56     2/36      0/--   1/--       2/--       5/1
5   Aziz Nazmul   1       90     3/50      0/--   0/--       6/--       9/1
6   Anas                   1       142     6/42      0/--   0/--       6/--       12/1
7   Ashiq Tonmoy   1       230     9/70      0/--   0/--       0/--       9/1
8   Towfic Aziz   0       0     8/--      0/--   0/--       0/--       8/0

Submitted/1st Yes/Total Yes      35/36/7   4/98/2   4/169/1   16/86/2   59/12

Created by CSUS PC^2 8.7 20081028 00
http://www.ecs.csus.edu/pc2/
Last updated Thu Jun 17 16:21:05 BDT 2010

Contest Judges:
â€¢   Mohammad Nazmul Haque [NH], Lecturer, Dept. Of CSE
â€¢   Kaeser Md. Sabrin [KMS], Lecturer, Dept. Of CSE
Title: Re: DIU Summer Contest - 2010 was Held
Post by: Nazmul on June 20, 2010, 03:17:16 PM
Problem A: Loopers

This is a very easy problem. You have to control a loop either in an ascending or descending order.

In this problem you are given an integer n as input per line. You have to print all integer in range 1 to n (separated by a single space) in ascending order if n is positive and descending order when n is negative per line. A zero as input indicates end of input. You have not process this line.

Sample Input
10
-10
0
Output for Sample Input
1 2 3 4 5 6 7 8 9 10
10 9 8 7 6 5 4 3 2 1

Problem By: NH

Problem B: Telephone Number Helper

Some companies like to G4S (group-4-securex) uses a number that has a special connection to something about their business (e.g., 0171-GROUP4S). Create a program that allows a user to enter a phone number in the format of 01XX-XXXXXXX, where â€œXâ€ is an alphanumeric character. All parts of the phone number that are alphabetic characters should be converted to a number based on the following standard mapping found on most phone keypads.

You may assume that the input is perfectly formed (dashed separators always provided number starts with 01, and no illegal characters are given). Thus, you do not need to perform any specific validation checks on the input, in order to make your program simpler.

Your input and output should resemble the following examples.

Sample Input
0171-GROUP4S
0171-3493DIU

Output for Sample Input
0171-4768747
0171-3493348

Problem By: NH

Problem C: Word Reverse

In this problem you will have to reverse the words of a given sentence. A word is defined as consecutive letters or digits and words will be separated by spaces. Your output sentence must have all the words of the input sentence in reverse order. Input will be terminated with the sentence â€œENDâ€.

Sample Input
My name is Khan
Daffodil International University
END

Sample Output
Khan is name My
University International Daffodil

Problem By :KMS

Problem D: Reverse and Add

In this problem you will be given a number as input. Your job is to reverse the digits of the given number, add it with the given number and output the result. Input will be terminated with a -1.

Sample Input
1234
21212
-1

Sample Output
5555
42424

Problem By: KMS

Title: Re: DIU Summer Contest - 2010 was Held
Post by: Shamim Ansary on June 20, 2010, 03:24:16 PM
I congratulate all the participants for flourishing their talents.

It is really a good initiative.

This kind of successful programs will definitely uphold the pledge of DIU to the society.

I wish, respective people of the departments will come forward to organize such events regularly.