Created
April 30, 2019 13:52
-
-
Save luciocf/55f2cf915e6d3efd6a944ae13501f6be to your computer and use it in GitHub Desktop.
Noic - Iniciante - Semana 52 - Problema 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Noic - Iniciante - Semana 52 - Problema 1 | |
// O(1) | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main(void) | |
{ | |
int x1, y1, x2, y2; | |
scanf("%d %d %d %d", &x1, &y1, &x2, &y2); | |
printf("%d\n", max(abs(x1-x2), abs(y1-y2))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment