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