摘要: A. The Way to Home time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A frog lives on the ax 阅读全文
posted @ 2022-01-23 17:41 666dy 阅读(131) 评论(0) 推荐(0)
摘要: Monocarp is playing a computer game. Now he wants to complete the first level of this game. A level is a rectangular grid of 22 rows and nn columns. M 阅读全文
posted @ 2022-01-23 17:37 666dy 阅读(153) 评论(0) 推荐(0)
摘要: 题目描述 原题来自:POJ 1915 编写一个程序,计算一个骑士从棋盘上的一个格子到另一个格子所需的最小步数。骑士一步可以移动到的位置由下图给出。 输入格式 第一行给出骑士的数量 n。在接下来的 3n行中,每 3 行描述了一个骑士。其中, 第一行一个整数 L 表示棋盘的大小,整个棋盘大小为 L×L; 阅读全文
posted @ 2022-01-23 17:30 666dy 阅读(304) 评论(0) 推荐(0)