8623

P8623 [蓝桥杯 2015 省 B] 移动距离

算出两个数字的坐标,然后返回曼哈顿距离。 #include <iostream> #include <stdio.h> #include <algorithm> #include <cstring> #include <cmath> using namespace std; int w, m, n, ......
蓝桥 P8623 8623 2015

【洛谷 8623】[蓝桥杯 2015 省 B] 移动距离

# [蓝桥杯 2015 省 B] 移动距离 ## 题目描述 X 星球居民小区的楼房全是一样的,并且按矩阵样式排列。其楼房的编号为 $1,2,3, \cdots $ 。 当排满一行时,从下一行相邻的楼往反方向排号。 比如:当小区排号宽度为 $6$ 时,开始情形如下: ```1 2 3 4 5 612 ......
蓝桥 8623 2015
共2篇  :1/1页 首页上一页1下一页尾页