#K4351. Check Late Book Returns
Check Late Book Returns
Check Late Book Returns
You are given a list of book returns. Each book return record contains the following information:
- borrower: the name of the borrower (a string)
- title: the title of the book (a string without spaces)
- overdue_days: the number of days the book is overdue (an integer)
Your task is to determine if any book was returned late. A book is considered to be returned late if \(\texttt{overdue_days} > 0\). If at least one book was returned late, print True
; otherwise, print False
.
The input is read from stdin
and the output should be written to stdout
.
inputFormat
The input starts with an integer \(N\) representing the number of book records. Each of the following \(N\) lines contains three space-separated values:
- A string denoting the borrower's name
- A string denoting the title of the book (without spaces)
- An integer representing \(\texttt{overdue_days}\)
outputFormat
Output a single line: True
if at least one book has \(\texttt{overdue_days} > 0\); otherwise, output False
.
0
False