|
1 | 1 | /*
|
2 |
| - * FILE: {untitled} |
3 |
| - * |
4 |
| - * @author: {developer} <{mail}> |
5 |
| - * |
6 |
| - * LINK: |
7 |
| - * |
8 |
| - * DATE CREATED: {datetime} |
9 |
| - * LAST MODIFIED: |
10 |
| - * |
11 |
| - * VERDICT: |
12 |
| - * |
13 |
| - * DEVELOPMENT HISTORY: |
14 |
| - * Date Version Description |
15 |
| - * -------------------------------------------------------------------- |
16 |
| - * {date} {version} {description} |
17 |
| - * |
18 |
| - * _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ |
19 |
| - * _/ _/ _/_/ _/ _/ _/_/ _/ |
20 |
| - * _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ |
21 |
| - * _/ _/ _/ _/ _/_/ _/ _/ _/_/ |
22 |
| - * _/_/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ |
| 2 | + * Problem: $(PROBLEM) |
| 3 | + * URL: $(URL) |
| 4 | + * Judge: $(JUDGE) |
| 5 | + * Contest: $(CONTEST) |
| 6 | + * DATE CREATED: $(DATE) |
| 7 | + * Memory Limit: $(MEMLIM) |
| 8 | + * Time Limit: $(TIMELIM) |
| 9 | + * VERDICT: undefined |
23 | 10 | */
|
24 | 11 |
|
25 |
| -/////////////////////////////////////////////////////////////////////// |
26 |
| - |
27 |
| -#include <iostream> |
| 12 | +#include <stdint.h> //uint32_t |
| 13 | +#include <unistd.h> // unsigned int sleep(unsigned int seconds); |
| 14 | +#include <algorithm> |
| 15 | +#include <bitset> |
| 16 | +#include <cctype> |
28 | 17 | #include <climits>
|
29 | 18 | #include <cmath>
|
30 |
| -#include <cstring> |
31 |
| -#include <cctype> |
32 | 19 | #include <cstdio>
|
33 | 20 | #include <cstdlib>
|
| 21 | +#include <cstring> |
| 22 | +#include <deque> |
| 23 | +#include <functional> |
34 | 24 | #include <iomanip>
|
35 |
| -#include <utility> |
36 |
| -#include <sstream> |
37 |
| -#include <algorithm> |
38 |
| -#include <stack> |
39 |
| -#include <set> |
| 25 | +#include <iostream> |
| 26 | +#include <iterator> // std::istream_iterator |
40 | 27 | #include <list>
|
41 | 28 | #include <map>
|
42 |
| -#include <unordered_map> |
43 | 29 | #include <queue>
|
44 |
| -#include <deque> |
45 |
| -#include <vector> |
| 30 | +#include <set> |
| 31 | +#include <sstream> |
| 32 | +#include <stack> |
46 | 33 | #include <tuple>
|
47 |
| -#include <iterator> // std::istream_iterator |
48 |
| -#include <stdint.h> //uint32_t |
49 |
| -#include <functional> |
50 |
| -#include <bitset> |
51 |
| -#include <unistd.h> // unsigned int sleep(unsigned int seconds); |
| 34 | +#include <unordered_map> |
| 35 | +#include <utility> |
| 36 | +#include <vector> |
52 | 37 |
|
53 | 38 | using namespace std;
|
54 | 39 |
|
55 |
| -typedef long long ll; |
56 |
| -typedef double lf; |
57 |
| -typedef long double llf; |
58 |
| -typedef unsigned long long ull; |
59 |
| -typedef pair<int, int> pii; |
60 |
| -typedef vector<pii> vpii; |
61 |
| -typedef vector<int> vi; |
62 |
| -typedef vector<long long> vl; |
| 40 | +typedef long long ll; |
| 41 | +typedef double lf; |
| 42 | +typedef long double llf; |
| 43 | +typedef unsigned long long ull; |
| 44 | +typedef pair<int, int> pii; |
| 45 | +typedef vector<pii> vpii; |
| 46 | +typedef vector<int> vi; |
| 47 | +typedef vector<long long> vl; |
63 | 48 |
|
64 | 49 | #define _USE_MATH_DEFINES
|
65 | 50 |
|
66 |
| -#define forr(i, a, b) for (__typeof (a) i = (a); i <= (b); i++) |
67 |
| -#define rof(i, b, a) for (__typeof (a) i = (b); i >= (a); i--) |
68 |
| -#define rep(i, n) for (__typeof (n) i = 0; i < (n); i++) |
69 |
| -#define forit(i, s) for (__typeof ((s).end()) i = (s).begin(); i != (s).end(); ++i) |
70 |
| -#define all(ar) ar.begin(), ar.end() |
71 |
| -#define fill(a, val) memset((a), (val), sizeof((a))) |
72 |
| -#define clr(a) memset((a), 0, sizeof((a))) |
73 |
| -#define sz(a) (int) a.size() |
| 51 | +#define forr(i, a, b) for (__typeof(a) i = (a); i <= (b); i++) |
| 52 | +#define rof(i, b, a) for (__typeof(a) i = (b); i >= (a); i--) |
| 53 | +#define rep(i, n) for (__typeof(n) i = 0; i < (n); i++) |
| 54 | +#define forit(i, s) \ |
| 55 | + for (__typeof((s).end()) i = (s).begin(); i != (s).end(); ++i) |
| 56 | +#define all(ar) ar.begin(), ar.end() |
| 57 | +#define fill(a, val) memset((a), (val), sizeof((a))) |
| 58 | +#define clr(a) memset((a), 0, sizeof((a))) |
| 59 | +#define sz(a) (int)a.size() |
74 | 60 |
|
75 |
| -#define pb push_back |
| 61 | +#define pb push_back |
76 | 62 |
|
77 | 63 | #ifndef ONLINE_JUDGE
|
78 |
| - #define nl cerr << '\n' |
79 |
| - #define sp cerr << ' ' |
80 |
| - #define ckk cerr << "###############\n" |
81 |
| - #define debug1(x) cerr << #x << ": " << (x) << '\n' |
82 |
| - #define debug2(x, y) cerr << #x << ": " << (x) << '\t' << #y << ": " << (y) << '\n' |
83 |
| - #define debug3(x, y, z) cerr << #x << ": " << (x) << '\t' << #y << ": " << (y) << '\t' << #z << ": " << (z) << '\n' |
| 64 | +#define nl cerr << '\n' |
| 65 | +#define sp cerr << ' ' |
| 66 | +#define ckk cerr << "###############\n" |
| 67 | +#define debug1(x) cerr << #x << ": " << (x) << '\n' |
| 68 | +#define debug2(x, y) \ |
| 69 | + cerr << #x << ": " << (x) << '\t' << #y << ": " << (y) << '\n' |
| 70 | +#define debug3(x, y, z) \ |
| 71 | + cerr << #x << ": " << (x) << '\t' << #y << ": " << (y) << '\t' << #z << ": " \ |
| 72 | + << (z) << '\n' |
84 | 73 | #else
|
85 |
| - #define nl |
86 |
| - #define sp |
87 |
| - #define ckk |
88 |
| - #define debug1(x) |
89 |
| - #define debug2(x, y) |
90 |
| - #define debug3(x, y, z) |
| 74 | +#define nl |
| 75 | +#define sp |
| 76 | +#define ckk |
| 77 | +#define debug1(x) |
| 78 | +#define debug2(x, y) |
| 79 | +#define debug3(x, y, z) |
91 | 80 | #endif
|
92 | 81 |
|
93 |
| -#define PI acos(-1.0) |
94 |
| -#define INF 0x7fffffff |
95 |
| -#define MOD 1000000007 |
96 |
| -#define EPS 1e-7 |
97 |
| -#define MAX 10000007 //1e7+7 |
| 82 | +#define PI acos(-1.0) |
| 83 | +#define INF 0x7fffffff |
| 84 | +#define MOD 1000000007 |
| 85 | +#define EPS 1e-7 |
| 86 | +#define MAX 10000007 // 1e7+7 |
98 | 87 |
|
99 |
| -////////////////////////// START HERE ////////////////////////// |
100 | 88 |
|
101 | 89 | int main() {
|
102 |
| - ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); |
103 |
| - return 0; |
| 90 | + ios_base::sync_with_stdio(false); |
| 91 | + cin.tie(0); |
| 92 | + cout.tie(0); |
| 93 | + |
| 94 | + return 0; |
104 | 95 | }
|
105 | 96 |
|
0 commit comments