Run ID:68613

提交时间:2024-03-24 09:20:58

#include<bits/stdc++.h> using namespace std; int main(){ int x1,y1,x2,y2,a,b; cin>>x1>>y1>>x2>>y2; if(x1>x2){ a=x1-x2; } else{ a=x2-x1; } if(x1>x2){ b=y1-y2; } else{ b=y2-y1; } if(a>b){ cout<<a; } else{ cout<<b; } return 0; }