Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116280 | 胡海峰老师 | 07切比雪夫距离 | C++ | Wrong Answer | 1 MS | 260 KB | 312 | 2025-04-07 20:33:09 |
#include <iostream> using namespace std; int main(){ int x1,y1, x2,y2; int x12 = x1-x2; // 正,负 if (x12<0) x12 = x12*-1; int y12 = y1-y2; if( y12 <0) y12 = y12*-1; if (x12>y12) cout<<x12; else cout<< y12;//如果相等,在这里输出。 return 0; }
------Input------
37 85 25 78
------Answer-----
12
------Your output-----
0