t | import zipfile | t | import zipfile |
| import sys | | import sys |
| import io | | import io |
| with zipfile.ZipFile(io.BytesIO(bytearray.fromhex(sys.stdin.read())), 'r') as zipalp: | | with zipfile.ZipFile(io.BytesIO(bytearray.fromhex(sys.stdin.read())), 'r') as zipalp: |
| zipff = filter(lambda x: not x.is_dir(), zipalp.filelist) | | zipff = filter(lambda x: not x.is_dir(), zipalp.filelist) |
| not_dir = list(zipff) | | not_dir = list(zipff) |
| print(len(not_dir), end=' ') | | print(len(not_dir), end=' ') |
| print(sum(map(lambda x: x.file_size, not_dir))) | | print(sum(map(lambda x: x.file_size, not_dir))) |