ZipInfo/s02190253 | ZipInfo/dfrant | ||||
---|---|---|---|---|---|
f | 1 | import sys | f | 1 | import sys |
n | n | 2 | import io | ||
2 | import zipfile | 3 | import zipfile | ||
t | 3 | import io | t | ||
4 | extracted_files = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | 4 | a = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | ||
5 | print(sum([1 for f in extracted_files.filelist if not f.is_dir()]), sum([f.file_size for f in extracted_files.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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|