Month: October 2012

3rd Intra University Programming Contest Div-1 Problem B

3rd Intra University Programming Contest, 2012
Problem B
Marks Range

Problem Statement:
Asad studies B.Sc. in CSE program at BUBT. Today their programming teacher returns their mid term examination scripts. There are varieties types of numbers that students got in the examination. The teacher wants to find the mark range of numbers (Maximum and Minimum) that students got in the examination. But it is very difficult to find the mark range manually. Teacher gives assignment to write a program that can be used to find the mark range.
Input:
The input contains two lines. The first line contains a number N(1<=N<=100) denotes the number of students in the class.  The second line contains N different positive numbers that denotes the marks students got in the examination.
Output:
Output contains two lines. The first line contains Lower limit and the second line contains Upper limit of numbers. 
Sample Input/Output:
Sample Input
Sample Output
5
20   15   5   10   25
4
3     0     27     33
Lower Limit: 5
Upper Limit: 25
Lower Limit: 0
Upper Limit: 33


______________________________________________________________________________
Problem setter: Mijanur Rahaman, Lecturer, Dept. of CSE

Bangladesh University of Business and Technology (BUBT)
At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .
Posted by Shipu Ahamed in Contest, 0 comments

3rd Intra University Programming Contest Div-1 Problem A

3rd Intra University Programming Contest, 2012
Problem A


Find the Summation

Problem Statement:
Masud finds that the students of his class are very inactive. They made bad result in their math examination. So masud decided that today he would take a test to the students. For this reason he wrote some numbers on the white board and told the students to find the sum of the series for N terms. The numbers are: 1, 3, 5, 7, 9, 11 …………….. He also decided to write a program for this purpose that would help him to check the answer script.
Input:
The input contains an integer N (1<=N<=100) that denote the nth number of the series.
Output:
The output will print the summation of the series. 

Sample Input/Output:
Sample Input
Sample Output
1
3
5
1
9
25


______________________________________________________________________________
 Problem setter: Md.Saifur Rahman, Asst. Professor, Dept. of CSE
Bangladesh University of Business and Technology (BUBT)
At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .
Posted by Shipu Ahamed in Contest, 0 comments