ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Ad-Hoc > задача:


50346 - The Biggest Date

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50396 - Cinema Tickets - 1
• 50325 - How much time passed?
• 50366 - Student Averages (2 Grades)
• 50406 - Draw Pattern 178
• 50416 - Placing Dominoes on Chess...
• 50477 - Character Pyramids
• 50498 - K-Means
• 50505 - kht Puzzle
• 50346 - The Biggest Date
• 50512 - Coding redundancy
• 50528 - Rock-Scissors-Paper
• 50493 - n-digit kth Prime Number
• 50520 - Filling a Matrix Randomly
• 50357 - Convert Euros into Dollars
• 50355 - Bills of City Water Company
• 50454 - What day is it?
• 50350 - Fahrenheit to Celsius

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

The Biggest Date

Write a program that has a class called Date that your school wants to use to sort students according to their birth dates. Every Date object includes three data members: Day Month and Year. The class should have proper constructors that initialize data members. Provide also overloaded input and output stream operators to get information and show dates. Also provide overloaded greater than operator that compares two dates and returns true if the first date is greater than the second one.

Question: Using the given class above, write a program that reads information for n dates and finds and shows the biggest date.

Input specification
You will be given an integer (n) the number of items dates. Then, in each of the following n lines you will be given three integers: day, month and year where 1 ≤ n ≤ 100.

Output specification
Show the biggest date.

Sample Input
3
1 5 1997
2 3 1997
7 3 1996
Sample Output
1 5 1997


Для отправки решений необходимо выполнить вход.

www.contester.ru