ZipInfo/artnitolog | ZipInfo/FrBrGeorge | ||||
---|---|---|---|---|---|
n | n | 1 | """ | ||
2 | """ | ||||
3 | import zipfile | ||||
1 | import sys | 4 | import sys | ||
n | 2 | import zipfile | n | ||
3 | import io | 5 | import io | ||
4 | z = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | 6 | z = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read()))) | ||
t | 5 | files = [f.file_size for f in z.infolist() if not f.is_dir()] | t | 7 | f = [I.file_size for I in z.infolist() if not I.is_dir()] |
6 | print(len(files), sum(files)) | 8 | print(len(f), sum(f)) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|