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