简单的 LRU 问题

 1 Sec 256 MB |  Markdown 获取标签

 

题目描述

输入格式

输出格式

样例输入 #1

3 4
0 1 2 1

样例输出 #1

+------+--------+--------+--------+
|      |  0x00  |  0x01  |  0x02  |
+------+--------+--------+--------+
| 0x00 | 0x0000 |        |        |
+------+--------+--------+--------+
| 0x01 | 0x0000 | 0x0001 |        |
+------+--------+--------+--------+
| 0x02 | 0x0000 | 0x0001 | 0x0002 |
+------+--------+--------+--------+
| 0x03 | 0x0000 | 0x0002 | 0x0001 |
+------+--------+--------+--------+

样例输入 #2

3 4
1 2 65535 255

样例输出 #2

+------+--------+--------+--------+
|      |  0x00  |  0x01  |  0x02  |
+------+--------+--------+--------+
| 0x00 | 0x0001 |        |        |
+------+--------+--------+--------+
| 0x01 | 0x0001 | 0x0002 |        |
+------+--------+--------+--------+
| 0x02 | 0x0001 | 0x0002 | 0xffff |
+------+--------+--------+--------+
| 0x03 | 0x0002 | 0xffff | 0x00ff |
+------+--------+--------+--------+

 

 您尚未登录,无法进行代码提交