Problem 28504 --璀灿光华

28504: 璀灿光华

Time Limit: 3 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Submit][Status][Web Board][Creator:][下载FPS0元][添加到购物车][下载测试数据0元][40490kb]

Description

Input

Output

Sample Input

2
0 7 2 3
0 8 1 4
4 5 4 1
8 6 3 2
16 3 6 7
32 4 5 8
1 1 8 5
2 2 7 6

Sample Output

0 12

HINT

Source

[Submit][Status]