Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Given a list of N students. List dates of birth and the number of students on that date. Birthdays are listed in ascending order.
Input
The first line shows the number of students N (N ≤ ~10^{5}~).
The ~ith~ line in the following N lines is the date of birth of the ~ith~ student. Birthdate consists of 3 integers respectively date of birth.
All birthdays are valid.
Output
- List each date of birth and the number of students on the same date on one line. Birth date as DD/MM/YYYY.
Sample Input:
5
10 3 1993
15 2 1995
15 2 1995
10 2 1994
10 3 1993
Sample Output:
10/03/1993 2
10/02/1994 1
15/02/1995 2
Bình luận