#include <stdio.h>
int main() {
int a[4];
int b[4];
int x=0,y=0;
for(int d=0;d<4;d++)
{
scanf("%d %d",&a[d],&b[d]);
}
for(int c=0;c<4;c++)
{
a[c]=+a[c];
b[c]=-b[c];
x=a[c]-b[c];
if(x>y)
y=x;
}
printf("%d",y);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: