ZipInfo/dfrant | ZipInfo/ilyagerelyuk | ||||
---|---|---|---|---|---|
n | n | 1 | import zipfile | ||
1 | import sys | 2 | import sys | ||
2 | import io | 3 | import io | ||
t | 3 | import zipfile | t | ||
4 | a = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | 4 | archive = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | ||
5 | print(len([file for file in a.filelist if not file.is_dir()]), sum([file.file_size for file in a.filelist])) | 5 | print(len([file for file in archive.filelist if not file.is_dir()]), sum([elem.file_size for elem in archive.filelist])) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|