| action22k ZipInfo 8706 | Михаил Авраменко, 441 группа ZipInfo 9220 | ||||
|---|---|---|---|---|---|
| t | 1 | import sys | t | 1 | import sys |
| 2 | import io | 2 | import io | ||
| 3 | import zipfile | 3 | import zipfile | ||
| 4 | with zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) as z: | 4 | with zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) as z: | ||
| 5 | files = [info for info in z.infolist() if not info.filename.endswith | 5 | files = [info for info in z.infolist() if not info.filename.endswith | ||
| > | ('/')] | > | ('/')] | ||
| 6 | print(len(files), sum((info.file_size for info in files))) | 6 | print(len(files), sum((info.file_size for info in files))) | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||