ZipInfo/Beka00 | ZipInfo/VoMaKu | ||||
---|---|---|---|---|---|
f | 1 | import sys | f | 1 | import sys |
2 | import zipfile | 2 | import zipfile | ||
t | 3 | import io | t | 3 | from io import BytesIO as BTSIO |
4 | zipf = zipfile.ZipFile(io.BytesIO(bytes.fromhex(sys.stdin.read())), 'r') | 4 | zipf = zipfile.ZipFile(BTSIO(bytes.fromhex(sys.stdin.read())), 'r') | ||
5 | (len, c) = (0, 0) | 5 | (count, volume) = (0, 0) | ||
6 | for i in zipf.infolist(): | 6 | for line in zipf.infolist(): | ||
7 | if not i.is_dir(): | 7 | if not line.is_dir(): | ||
8 | c += 1 | 8 | count += 1 | ||
9 | len += i.file_size | 9 | volume += line.file_size | ||
10 | print(c, len) | 10 | print(count, volume) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|