ZipInfo/Stef-Fun | ZipInfo/kv00msu | ||||
---|---|---|---|---|---|
n | n | 1 | import io | ||
1 | import sys | 2 | import sys | ||
n | 2 | import io | n | ||
3 | import zipfile | 3 | import zipfile | ||
t | 4 | zf = zipfile.ZipFile(io.BytesIO(bytearray.fromhex(sys.stdin.read()))) | t | 4 | file = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read())), 'r') |
5 | count_f = 0 | 5 | len = 0 | ||
6 | count_size = 0 | 6 | temp = 0 | ||
7 | for info in zf.infolist(): | 7 | for i in file.infolist(): | ||
8 | if not info.is_dir(): | 8 | if not i.is_dir(): | ||
9 | count_f += 1 | 9 | temp += 1 | ||
10 | count_size += info.file_size | 10 | len += i.file_size | ||
11 | print(count_f, ' ', count_size) | 11 | print(temp, len) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|