Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108642 | 于铁林 | 07切比雪夫距离 | C++ | Wrong Answer | 1 MS | 264 KB | 249 | 2025-01-21 09:54:37 |
#include<iostream> #include<cmath> using namespace std; int main(){ char x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; if(abs(x2-x1)>abs(y2-y1)){ cout<<abs(x2-x1); } else{ cout<<abs(y2-y1); } return 0; }
------Input------
37 85 25 78
------Answer-----
12
------Your output-----
5