15 lines
239 B
Python
Executable File
15 lines
239 B
Python
Executable File
#!/usr/bin/env python
|
|
from common import ReportList, is_safe, parse
|
|
|
|
|
|
def solve(input: ReportList) -> int:
|
|
return len(list(filter(is_safe, input)))
|
|
|
|
|
|
def main():
|
|
print(solve(parse("input")))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|