Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

【搜索与回溯】马的遍历(例题)

📝 Solutions 🔵 仅限 C++
Problems Description
<p> <strong>&nbsp;&nbsp;&nbsp;&nbsp;【例5.5】马的遍历</strong> </p> <p> &nbsp;&nbsp;&nbsp;&nbsp;中国象棋半张棋盘如图4(a)所示。马自左下角往右上角跳。今规定只许往右跳,不许往左跳。比如图4(a)中所示为一种跳行路线,并将所经路线打印出来。打印格式为:0,0-&gt;2,1-&gt;3,3-&gt;1,4-&gt;3,5-&gt;2,7-&gt;4,8 </p> <p align="center"> <img src="http://tk.hustoj.com/attached/image/20141224/20141224153423_25302.jpg" alt="" /> </p> <p> <br /> </p>
Input格式
&nbsp;&nbsp;&nbsp; 无输入。
Output格式
&nbsp;&nbsp;&nbsp; 顺序输出马跳过的各点坐标。<br />
Sample
Sample Input 1
no input needed
Sample Output 1
0,0->2,1->3,3->1,4->3,5->2,7->4,8
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token