Run ID:7061

提交时间:2025-04-04 16:14:37

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,s,d,f; cin>>a>>s>>d>>f; int b=d-a,c=f-s; if(b<0){ b=b*(-1); } else{ if(c<0){ c=c*-1; } else{ if(c<b);{ cout<<b; else{ cout<<c; } } } } return 0; }