Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118096 | 何旻慧 | 07切比雪夫距离 | C++ | Accepted | 1 MS | 280 KB | 279 | 2025-04-23 19:22:13 |
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int a,b,c,d,e,f; cin>>a>>b>>c>>d; e=abs(a-c); f=abs(b-d); if(e>f){ cout<<e; } else{ cout<<f; } return 0; }