Start: Dec, 14, 2021 13:30:00
2021年秋季学期程序设计基础(C语言)第三次考试
End: Dec, 25, 2022 16:30:00
Time elapsed:
Time remaining:

简单的 LRU 问题 3006

Time Limit:  1 s      Memory Limit:   256 MB
Submission:5     AC:2     Score:0

Description

/OJ/upload/file/20211213/20211213231443_26389.pdf

Samples

input
3 4 0 1 2 1
output
+------+--------+--------+--------+ | | 0x00 | 0x01 | 0x02 | +------+--------+--------+--------+ | 0x00 | 0x0000 | | | +------+--------+--------+--------+ | 0x01 | 0x0000 | 0x0001 | | +------+--------+--------+--------+ | 0x02 | 0x0000 | 0x0001 | 0x0002 | +------+--------+--------+--------+ | 0x03 | 0x0000 | 0x0002 | 0x0001 | +------+--------+--------+--------+
input
3 4 1 2 65535 255
output
+------+--------+--------+--------+ | | 0x00 | 0x01 | 0x02 | +------+--------+--------+--------+ | 0x00 | 0x0001 | | | +------+--------+--------+--------+ | 0x01 | 0x0001 | 0x0002 | | +------+--------+--------+--------+ | 0x02 | 0x0001 | 0x0002 | 0xffff | +------+--------+--------+--------+ | 0x03 | 0x0002 | 0xffff | 0x00ff | +------+--------+--------+--------+