计算房子间曼哈顿距离(数学)

计算房子间曼哈顿距离 题目大意   房子按S形摆放,如    1 2 3    6 5 4    7 8 ……    现输入每行的宽度w,计算出任意两个房子m、n的曼哈顿距离(横向距离+竖向距离)。ios #include <stdio.h> #include <cmath> #include <cstring> #include <string.h> #include <algorith
相关文章
相关标签/搜索