Created
January 17, 2015 02:04
-
-
Save theoremoon/df6defdad3c62fd17051 to your computer and use it in GitHub Desktop.
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
/* | |
* 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