#1351. 皇后搬金币
皇后搬金币
Background
Special for beginners, ^_^
Description
8*8的国际象棋棋盘上的每个格子中都有一些金币,你可以放置任意数量的皇后,要去这些皇后们不能互相攻击,皇后可以搬走所在格子中的金币,问做多能搬走多少枚金币。
Format
Input
Two integers x and y, satisfying .
Output
One integer, the sum of x and y.
Samples
1
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24
25 26 27 28 29 30 31 32
33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48
48 50 51 52 53 54 55 56
57 58 59 60 61 62 63 64
260
Limitation
1s, 1024KiB for each test case.