No testdata at current.
塔子哥在一个3*3的矩阵上,准备放置x个狗,y个猫,要求猫和猫之间,狗和狗之间不能相邻(上下左右都是相邻)。塔子哥想知道,有多少种不同的放置方案?
两个整数x,y,用空格隔开
0≤x+y≤9
一个整数,代表放的方案数。
输入
0 1
输出
9
输入
9 0
输出
0
扫码备注加群即可,期待您的到来~
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.