Run ID:108641

提交时间:2025-01-21 09:51:20

#include<iostream> #include<cmath> using namespace std; int main(){ int 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; }