Skip to content

Instantly share code, notes, and snippets.

@luciocf
Created April 30, 2019 13:52
Show Gist options
  • Save luciocf/55f2cf915e6d3efd6a944ae13501f6be to your computer and use it in GitHub Desktop.
Save luciocf/55f2cf915e6d3efd6a944ae13501f6be to your computer and use it in GitHub Desktop.
Noic - Iniciante - Semana 52 - Problema 1
// 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