Type: RemoteJudge 1000ms 125MiB

跳马问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

在爱与愁的故事第一弹第三章出来前先练练四道基本的回溯/搜索题吧……

题目描述

中国象棋半张棋盘如图 11 所示。马自左下角 (0,0)(0,0) 向右上角 (m,n)(m,n) 跳。规定只能往右跳,不准往左跳。比如图 11 中所示为一种跳行路线,并将路径总数打印出来。

输入格式

只有一行:两个数 nnmm

输出格式

只有一个数:总方案数 totaltotal

4 8
37

提示

对于 100%100\% 的数据:n,m18n, m\leq 18

C23天河寒假作业2-基础数据结构

Not Claimed
Status
Done
Problem
14
Open Since
2024-1-30 0:00
Deadline
2024-3-31 23:59
Extension
24 hour(s)