-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDefine.h
66 lines (47 loc) · 1.29 KB
/
Define.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
///////////////////////////////////////////////////////////////////////////////
// File name: Define.h
// This file defines some commonly used basic data types.
// Lantao Liu, Dec 3, 2011
///////////////////////////////////////////////////////////////////////////////
#ifndef DEFINE_H
#define DEFINE_H
#include <iostream>
#include <vector>
#include <queue>
#include <list>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <assert.h>
//#define DEBUG // to toggle the debug mode (verbose info.)
#define INTEGER // data type if using randomly generated input
#define MAX_RANDOM 100 // max value of random generator
#ifdef DEBUG
#define _cout(expr) std::cout<<expr
#else
#define _cout(expr)
#endif
#define ROW_SIZE 5
#define COL_SIZE 5
#define DOUBLE_EPSILON 1e-7 //For double type comparison: <= as valid, > invalid
#define SEED 0
//#define OUTPUT_FILE "out.txt"
#define DEBUG_FILE "debug.txt"
#define VERBOSE_LEVEL 1
#define DISPLAY_WIDTH 10
#define POS_INF 10e8
#define NEG_INF -10e8
#define EXCEPTION_BROKEN -0x01
#define EXCEPTION_WRONG -0x02
/*
#ifndef min
#define min(x, y) (((x) > (y)) ? (y) : (x))
#endif
#ifndef max
#define max(x, y) (((x) > (y)) ? (x) : (y))
#endif
*/
using namespace std;
typedef unsigned int uint;
typedef vector<vector<double> > mat;
#endif