ZipInfo/aberezniker | ZipInfo/artnitolog | ||||
---|---|---|---|---|---|
n | 1 | import io | n | ||
2 | import sys | 1 | import sys | ||
3 | import zipfile | 2 | import zipfile | ||
t | t | 3 | import io | ||
4 | zip_dump = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read())), mode='r') | 4 | z = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | ||
5 | files_size = [file.file_size for file in zip_dump.infolist() if not file.is_dir()] | 5 | files = [f.file_size for f in z.infolist() if not f.is_dir()] | ||
6 | print(len(files_size), sum(files_size)) | 6 | print(len(files), sum(files)) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|