Skip to content

Instantly share code, notes, and snippets.

@theoremoon
Created January 17, 2015 02:04
Show Gist options
  • Save theoremoon/df6defdad3c62fd17051 to your computer and use it in GitHub Desktop.
Save theoremoon/df6defdad3c62fd17051 to your computer and use it in GitHub Desktop.
/*
* AOJ 2253
* give up
*/
#include <iostream>
#include <utility>
#include <cmath>
using namespace std;
typedef pair<int, int> pos;
const int MAX_N = 31;
pair xs[MAX_N];
int dist(pos a, pos b) {
int c = abs( max(a.first, a.second) - min(b.first, b.second) ),
d = abs( min(a.first, a.second) - max(b.first, b.second) );
return max(c, d);
}
int main() {
int ts, xnum; cin >> ts >> xnum;
pos p;
for (int i = 0; i < xnum; ++i)
cin >> xs[i].first >> xs[i].second;
cin >> p.first >> p.second;
int cango = ts;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment