david_Yakhin_312 ZipInfo 9099
Алмаз Сейтхазин (КФ МГУ, кафедра НДС) ZipInfo 9282
t1import syst1import sys
2import zipfile2import zipfile
3import io3import io
44
5def main():5def main():
6    data = sys.stdin.read()6    data = sys.stdin.read()
7    hex_str = ''.join(data.split())7    hex_str = ''.join(data.split())
8    try:8    try:
9        bytes_data = bytes.fromhex(hex_str)9        bytes_data = bytes.fromhex(hex_str)
10    except Exception:10    except Exception:
11        print('0 0')11        print('0 0')
12        return12        return
13    try:13    try:
14        with zipfile.ZipFile(io.BytesIO(bytes_data), 'r') as zf:14        with zipfile.ZipFile(io.BytesIO(bytes_data), 'r') as zf:
15            total_size = 015            total_size = 0
16            count = 016            count = 0
17            for info in zf.infolist():17            for info in zf.infolist():
18                if not info.is_dir():18                if not info.is_dir():
19                    count += 119                    count += 1
20                    total_size += info.file_size20                    total_size += info.file_size
21            print(count, total_size)21            print(count, total_size)
22    except Exception:22    except Exception:
23        print('0 0')23        print('0 0')
24if __name__ == '__main__':24if __name__ == '__main__':
25    main()25    main()
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op