HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > CEN_114 Midterm B > problem:


3. 50346 - The Biggest Date

CEN_114 Midterm B

Start: May.14.2020 at 12:00:01 AM
Finish: May.31.2020 at 11:59:59 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 10. 51095 - Normal and Trace
• 11. 51089 - Multiply a row and add i...
• 12. 50749 - Min Distance
• 13. 51124 - Easy Tiae words
• 14. 51136 - Class Average 2
• 15. 50734 - Product Info (In Srt)
• 2. 50453 - The Cubic Difference
• 3. 50346 - The Biggest Date
• 5. 50380 - Sum of the Numbers in t...
• 6. 50443 - Dajte Express
• 7. 50496 - Falling Bricks
• 8. 51123 - Mr. Li Criteria
• 9. 50529 - Row to Table

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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