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