This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <cctype> | |
#include <cstdlib> | |
#include <cmath> | |
#include <ctime> | |
#include <iostream> | |
#include <map> | |
#include <set> | |
#include <list> |
This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
#define rep(i, n) for (int i = 0; i < (int)(n); i++) | |
#define foreach(it, v) for (typeof((v).end()) it = (v).begin(); it != (v).end(); it++) | |
const int MAX_N = 100005; | |
struct Node { |
This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <bitset> | |
#include <queue> | |
#include <stack> |
This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <bitset> | |
#include <queue> | |
#include <sstream> |
This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <bitset> | |
#include <queue> | |
#include <sstream> |
This file contains hidden or 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
#include <cstdio> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <bitset> | |
#include <queue> | |
using namespace std; |
NewerOlder